-
Notifications
You must be signed in to change notification settings - Fork 136
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
Run in docker as ~~non-root user~~ arbitrary UID? #180
Comments
Workaround for anyone else that runs into this: DockerfileFROM smarketshq/marge-bot:latest
COPY ./uid_entrypoint /bin/
# NOTE: in latest margebot image, /etc/passwd doesn't exist
RUN chmod u+x /bin/uid_entrypoint \
&& touch /etc/passwd \
&& chmod g=u /etc/passwd
ENTRYPOINT [ "uid_entrypoint", "/bin/marge.app" ]
USER 1001
|
I'm not sure whether it's useful to you, but I run
and follow a scheme a bit like this one. |
I won't delete the comment above, but I realise it's not actually related to this issue at all! Mea culpa. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Is there any way to get the dockerfile built running as a user other than root? We're looking to deploy this into our internal openshift cluster where we cannot run as the root user, and instead have a random UID assigned at container startup.
The text was updated successfully, but these errors were encountered: