From 89d60051bd10b1c8ce07f7113dfdea40753cc14b Mon Sep 17 00:00:00 2001 From: Steffen Graber Date: Thu, 12 Dec 2024 13:41:19 +0100 Subject: [PATCH] Fix use of mpirun as root (#252) * Fix use mpirun as root in container --- src/3.8/Dockerfile | 4 +++- src/dev/Dockerfile | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/3.8/Dockerfile b/src/3.8/Dockerfile index 29fc7a3..8427e77 100644 --- a/src/3.8/Dockerfile +++ b/src/3.8/Dockerfile @@ -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 \ diff --git a/src/dev/Dockerfile b/src/dev/Dockerfile index 4d970f8..c12622e 100644 --- a/src/dev/Dockerfile +++ b/src/dev/Dockerfile @@ -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 \