Skip to content

Commit d1de2e8

Browse files
authored
Merge pull request #2 from ORNL-MDF/mpi-root
add flags to entrypoint to allow MPI to run as root
2 parents 923a116 + 51e04b6 commit d1de2e8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

docker/ubuntu

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,8 @@ RUN . /opt/spack-environment/activate.sh && \
9191
RUN { \
9292
echo '#!/bin/sh' \
9393
&& echo '.' /opt/spack-environment/activate.sh \
94+
&& echo export OMPI_ALLOW_RUN_AS_ROOT=1 \
95+
&& echo export OMPI_ALLOW_RUN_AS_ROOT_CONFIRM=1 \
9496
&& echo 'exec "$@"'; \
9597
} > /entrypoint.sh \
9698
&& chmod a+x /entrypoint.sh \

0 commit comments

Comments
 (0)