From 74e180104f6755d69d97a1ac94629eebf8a5d74a Mon Sep 17 00:00:00 2001 From: Will Yardley Date: Tue, 11 Apr 2023 14:34:58 -0700 Subject: [PATCH] build: add missing atlantis user in Debian image (#3317) It appears that when #3001 combined the Dockerfiles, the bit that adds the `atlantis` user was not added to the Debian build stage Also correct some trailing spaces and missing EOL in `docker-compose.yml` --- Dockerfile | 7 +++++++ docker-compose.yml | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 5af6ce5619..4829b1c34a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -179,6 +179,13 @@ CMD ["server"] # Stage 2 - Debian FROM debian:${DEBIAN_TAG} AS debian +# Add atlantis user to Debian as well +RUN useradd --create-home --user-group --shell /bin/bash atlantis && \ + adduser atlantis root && \ + chown atlantis:root /home/atlantis/ && \ + chmod g=u /home/atlantis/ && \ + chmod g=u /etc/passwd + # copy binary COPY --from=builder /app/atlantis /usr/local/bin/atlantis # copy terraform diff --git a/docker-compose.yml b/docker-compose.yml index 702c980308..3d1a81f402 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -20,7 +20,7 @@ services: ports: - '6379:6379' command: redis-server --save 20 1 --loglevel warning --requirepass test123 - volumes: + volumes: - redis:/data atlantis: depends_on: