Skip to content

Commit 0246d06

Browse files
committed
create /.bashrc for intended restart behavior
1 parent d1de2e8 commit 0246d06

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

docker/ubuntu

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,10 +89,14 @@ RUN . /opt/spack-environment/activate.sh && \
8989

9090
# Set entry point
9191
RUN { \
92-
echo '#!/bin/sh' \
93-
&& echo '.' /opt/spack-environment/activate.sh \
94-
&& echo export OMPI_ALLOW_RUN_AS_ROOT=1 \
92+
echo export OMPI_ALLOW_RUN_AS_ROOT=1 \
9593
&& echo export OMPI_ALLOW_RUN_AS_ROOT_CONFIRM=1 \
94+
&& echo '.' /opt/spack/share/spack/setup-env.sh \
95+
&& echo '.' /opt/spack-environment/activate.sh \
96+
} > /.bashrc \
97+
&& { \
98+
echo '#!/bin/sh' \
99+
&& echo '.' /.bashrc \
96100
&& echo 'exec "$@"'; \
97101
} > /entrypoint.sh \
98102
&& chmod a+x /entrypoint.sh \

0 commit comments

Comments
 (0)