-
Notifications
You must be signed in to change notification settings - Fork 120
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: allow running docker runner as non-root user #1646
base: main
Are you sure you want to change the base?
fix: allow running docker runner as non-root user #1646
Conversation
Related issue #1647 |
Do you have a recreate on this ? Also, can you clarify "allow running docker runner as non-root user"? On the workstation setups, I run as user 1000 and can build lots of packages with the docker runner. the docker runner there does run privileged. |
I was having issues with building emissary with docker runner due to error
Using this proposed branch resolves this issue. |
0355d53
to
497b2ca
Compare
Signed-off-by: RJ Sampson <[email protected]>
I've noticed the opposite: in a normal (or dare I say lazy?) docker installation where docker is running as root, melange fails. Some CI pipelines seem to do this. The build process seems to write several directories into /tmp called melange-workspace-XXXXXXXX, all with 700 permissions, and some of them end up getting owned by root:root after docker runs. And then when melange runs lint towards the end of the build process it's unable to access those directories. The simple fix is to run melange with sudo. I don't love it though. You can get a little further if you set
And then running this branch results in a seg fault instead when it hits the linting process:
|
Melange Pull Request Template
Functional Changes
Notes:
SCA Changes
Notes:
Linter
Notes: