Skip to content

Commit 2bb65e9

Browse files
committed
Run an RMS example when building Docker image
Part of the point, besides testing, is to force Julia to pre-compile things on first use. So we should use an example that actually uses RMS, anticipating a smarter lazy-loading of Julia/RMS stuff in RMG.
1 parent 073da08 commit 2bb65e9

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

Dockerfile

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -94,11 +94,10 @@ ENV PYTHON_JULIAPKG_PROJECT="/miniconda/envs/rmg_env/julia_env"
9494
RUN source install_rms.sh
9595

9696
# RMG-Py should now be installed and ready - trigger precompilation and test run
97-
RUN python rmg.py examples/rmg/minimal/input.py
98-
# delete the results, preserve input.py
99-
RUN mv examples/rmg/minimal/input.py . && \
100-
rm -rf examples/rmg/minimal/* && \
101-
mv input.py examples/rmg/minimal/
97+
RUN python rmg.py examples/rmg/rms_constant_V/input.py
98+
# delete the results, restore input.py from git
99+
RUN rm -rf examples/rmg/rms_constant_V/* && \
100+
git checkout -- examples/rmg/rms_constant_V/
102101

103102
# when running this image, open an interactive bash terminal inside the conda environment
104103
RUN echo "conda activate rmg_env" >> ~/.bashrc

0 commit comments

Comments
 (0)