Skip to content

Commit 89d6005

Browse files
Fix use of mpirun as root (#252)
* Fix use mpirun as root in container
1 parent c030f88 commit 89d6005

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

src/3.8/Dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@ ARG CXX_FLAGS="-pedantic -Wextra -Wno-unknown-pragmas -D_GLIBCXX_ASSERTIONS"
1010
ENV TERM=xterm \
1111
TZ=Europe/Berlin \
1212
DEBIAN_FRONTEND=noninteractive \
13-
PATH=/root/.local/bin:${PATH}
13+
PATH=/root/.local/bin:${PATH} \
14+
OMPI_ALLOW_RUN_AS_ROOT=1 \
15+
OMPI_ALLOW_RUN_AS_ROOT_CONFIRM=1
1416

1517
RUN apt-get update && apt-get install -y --no-install-recommends \
1618
automake \

src/dev/Dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@ ARG CXX_FLAGS="-pedantic -Wextra -Wno-unknown-pragmas -D_GLIBCXX_ASSERTIONS"
1010
ENV TERM=xterm \
1111
TZ=Europe/Berlin \
1212
DEBIAN_FRONTEND=noninteractive \
13-
PATH=/root/.local/bin:${PATH}
13+
PATH=/root/.local/bin:${PATH} \
14+
OMPI_ALLOW_RUN_AS_ROOT=1 \
15+
OMPI_ALLOW_RUN_AS_ROOT_CONFIRM=1
1416

1517
RUN apt-get update && apt-get install -y --no-install-recommends \
1618
automake \

0 commit comments

Comments
 (0)