-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #465 from gassmoeller/fix_docker_image_for_apptainer
Fix geodynamics/rayleigh docker image for apptainer
- Loading branch information
Showing
2 changed files
with
29 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,26 @@ | ||
FROM geodynamics/rayleigh-buildenv-jammy:latest | ||
|
||
# expose the port for Jupyter | ||
EXPOSE 8888 | ||
|
||
RUN useradd \ | ||
--create-home \ | ||
rayleigh_user | ||
# define Rayleigh directory | ||
ENV RAYLEIGH_DIR /opt/Rayleigh | ||
|
||
USER rayleigh_user | ||
RUN git clone 'https://github.com/geodynamics/Rayleigh.git' ${RAYLEIGH_DIR} | ||
|
||
WORKDIR /home/rayleigh_user | ||
|
||
RUN git clone 'https://github.com/geodynamics/Rayleigh.git' | ||
|
||
WORKDIR /home/rayleigh_user/Rayleigh | ||
WORKDIR ${RAYLEIGH_DIR} | ||
|
||
RUN ./configure \ | ||
-debian-mkl \ | ||
&& make \ | ||
&& make install \ | ||
&& make clean | ||
|
||
ENV RAYLEIGH_DIR /home/rayleigh_user/Rayleigh | ||
|
||
# Add Rayleigh to the path | ||
ENV PATH="${RAYLEIGH_DIR}/bin:${PATH}" | ||
|
||
ENV PYTHONPATH="${RAYLEIGH_DIR}/post_processing${PYTHONPATH:+:$PYTHONPATH}" | ||
|
||
# Allow running OpenMPI as root and avoid warning messages | ||
ENV OMPI_ALLOW_RUN_AS_ROOT=1 | ||
ENV OMPI_ALLOW_RUN_AS_ROOT_CONFIRM=1 | ||
ENV OMPI_MCA_btl_vader_single_copy_mechanism=none |