-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(atlantis-image): add missing atlantis user in Debian image #3317
Conversation
f99f2a1
to
340877d
Compare
@@ -180,6 +180,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 && \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
happy to make this have a stable uid / gid if folks think it's useful here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think in the alpine this was 1001 I believe
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I could not find any reference on that so I think is ok
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, this is copied from the old Debian dockerfile, and I didn’t see the Alpine one setting it either.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fwiw, I believe (older) alpine images were uid=100, gid=1000
# cat /etc/passwd | grep atlantis
atlantis:x:100:1000:Linux User,,,:/home/atlantis:/sbin/nologin
Current debian image uid=1000 (gid=1000 unchanged)
# cat /etc/passwd | grep atlantis
atlantis:x:1000:1000::/home/atlantis:/bin/bash
340877d
to
2160d50
Compare
It appears that when runatlantis#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`
2160d50
to
a3b8848
Compare
Merging this. The docker build shouldn't push to the repo and thus the failure. Will fix that along with some other issues missed in #3001 |
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`
It appears that when runatlantis#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`
It appears that when runatlantis#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`
what
why
atlantis
user was not added to the Debian build stagedocker-compose.yml
tests
references
Closes #3318