Skip to content

Commit

Permalink
Remove user precice
Browse files Browse the repository at this point in the history
We assume that this user has already been created in the base image.
  • Loading branch information
BenjaminRodenberg authored Feb 16, 2024
1 parent c4a249d commit 44c89b7
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions tools/releasing/packaging/docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,6 @@ RUN apt-get -qq update && apt-get -qq install \
pkg-config && \
rm -rf /var/lib/apt/lists/*

## Needed, because precice/precice:latest does not create a user? See also https://github.com/precice/precice/pull/1090, https://github.com/precice/python-bindings/issues/191
## ------>
# Create user precice
ARG uid=1000
ARG gid=1000
RUN groupadd -g ${gid} precice \
&& useradd -u ${uid} -g ${gid} -m -s /bin/bash precice \
&& sudo usermod -a -G sudo precice
## <-----

# Setup passwordless sudo
RUN echo "ALL ALL = (ALL) NOPASSWD: ALL" >> /etc/sudoers

Expand Down

0 comments on commit 44c89b7

Please sign in to comment.