diff --git a/lmod/Dockerfile b/lmod/Dockerfile index 41af86a6e445c9f82affcd1d017b4b59fec2a4bd..03330e8dbcd4a70a03551d6618e76c208d54c103 100644 --- a/lmod/Dockerfile +++ b/lmod/Dockerfile @@ -46,7 +46,8 @@ RUN /bin/bash /opt/apps/install/lmod/install_lmod_8.7.sh WORKDIR /home/$NB_USER COPY files/bash.bashrc /etc/bash.bashrc COPY files/mnt.sh /tmp/mnt.sh +COPY files/load_modules.sh /tmp/custom/load_modules.sh RUN /bin/bash /tmp/mnt.sh && rm /tmp/mnt.sh USER jovyan -ENTRYPOINT ["/bin/bash", "/tmp/custom/load_jupyter_version.sh", "&&", "/bin/bash", "/tmp/custom/load_jupyter_modules.sh"] \ No newline at end of file +ENTRYPOINT ["/bin/bash", "-l", "-c", "source /tmp/custom/load_modules.sh"] \ No newline at end of file diff --git a/lmod/files/load_modules.sh b/lmod/files/load_modules.sh new file mode 100644 index 0000000000000000000000000000000000000000..756daa7b6cb13cc41f4346ea20c316bd89cc7a20 --- /dev/null +++ b/lmod/files/load_modules.sh @@ -0,0 +1,4 @@ +#!/bin/bash + +source /tmp/custom/load_jupyter_version.sh +source /tmp/custom/load_jupyter_modules.sh \ No newline at end of file