Skip to content

Commit

Permalink
Fix use of mpirun as root (#252)
Browse files Browse the repository at this point in the history
* Fix use mpirun as root in container
  • Loading branch information
steffengraber authored Dec 12, 2024
1 parent c030f88 commit 89d6005
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/3.8/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ ARG CXX_FLAGS="-pedantic -Wextra -Wno-unknown-pragmas -D_GLIBCXX_ASSERTIONS"
ENV TERM=xterm \
TZ=Europe/Berlin \
DEBIAN_FRONTEND=noninteractive \
PATH=/root/.local/bin:${PATH}
PATH=/root/.local/bin:${PATH} \
OMPI_ALLOW_RUN_AS_ROOT=1 \
OMPI_ALLOW_RUN_AS_ROOT_CONFIRM=1

RUN apt-get update && apt-get install -y --no-install-recommends \
automake \
Expand Down
4 changes: 3 additions & 1 deletion src/dev/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ ARG CXX_FLAGS="-pedantic -Wextra -Wno-unknown-pragmas -D_GLIBCXX_ASSERTIONS"
ENV TERM=xterm \
TZ=Europe/Berlin \
DEBIAN_FRONTEND=noninteractive \
PATH=/root/.local/bin:${PATH}
PATH=/root/.local/bin:${PATH} \
OMPI_ALLOW_RUN_AS_ROOT=1 \
OMPI_ALLOW_RUN_AS_ROOT_CONFIRM=1

RUN apt-get update && apt-get install -y --no-install-recommends \
automake \
Expand Down

0 comments on commit 89d6005

Please sign in to comment.