diff --git a/.github/scripts/Dockerfile.in b/.github/scripts/Dockerfile.in index 4a708c3..e46f85d 100644 --- a/.github/scripts/Dockerfile.in +++ b/.github/scripts/Dockerfile.in @@ -9,6 +9,8 @@ ARG DEBIAN_FRONTEND=noninteractive ARG TZ=Europe/Paris ENV DOTNET_CLI_TELEMETRY_OPTOUT=1 +ENV OMPI_ALLOW_RUN_AS_ROOT=1 +ENV OMPI_ALLOW_RUN_AS_ROOT_CONFIRM=1 RUN cd /tmp \ && git clone --recurse-submodules https://github.com/arcaneframework/framework \ @@ -29,6 +31,6 @@ RUN cd /tmp \ && cmake --build /tmp/build --target install \ && cd / && rm -rf /tmp/* -RUN useradd -ms /bin/bash arcane_user -USER arcane_user -WORKDIR /home/arcane_user +# RUN useradd -ms /bin/bash arcane_user +# USER arcane_user +# WORKDIR /home/arcane_user diff --git a/README.md b/README.md index 045ce5f..668df9d 100644 --- a/README.md +++ b/README.md @@ -149,22 +149,17 @@ cd .github/scripts In these images, Arcane is installed in the default installation directory (`/usr/local`). -A user is also created and used by default. This is the user -`arcane_user`. -Note that `sudo` is not available, so if you want to run commands -as `root`, you need to specify the `root` user in the execute command: -`docker exec -u root -it bash`. If you want to compile an application using Arcane, it is not necessary to specify the Arcane installation directory. Here is a set of commands to compile and run `QAMA` in container : ```bash -# In a termuinal, with Podman or Docker installed. +# In a terminal, with Podman or Docker installed. IMAGE_ID=$(docker pull ghcr.io/arcaneframework/arcane_ubuntu-2204:gcc-12_minimal_release_latest) CONTAINER_ID=$(docker run -dt "$IMAGE_ID") docker exec -it "$CONTAINER_ID" bash -# Interactive terminal of contener. +# Interactive terminal of container. cd /tmp git clone https://github.com/arcaneframework/arcane-benchs mkdir build/