-
Notifications
You must be signed in to change notification settings - Fork 192
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
Include setcap binary #124
Comments
Hi @recmo |
It's moved to a final IMHO, setting capabilities is part of the build process, just like setting the execute flag, stripping debug info and what else you'd want to do. (Also, I am running the app in the build container, but just as a sanity check / test to make sure the compilation was successful. Some linker issues don't show up until you actually try to run it.) |
That makes sense - I guess you could change capabilities within a normal ubuntu container after you have built it and before moving it to your scratch container? |
I had not thought of adding an extra stage, but that would work too. Just |
I am gradually moving away from OpenSSL and libpq across the projects I maintain, as described on #126. I am unlikely to ever find the time to add new features to this image (and maintain them). My apologies. |
However, I do have some good news! Now that I've moved the build system to GitHub, it's relatively easy for me to add new Ubuntu packages to the image and to test that the image still works. If anyone still wants to have this, please submit a PR. |
How could this project be improved?
To allow a non-root executable to bind privileged ports like 80 they need to have the
cap_net_bind_service
capability set, which is done in the build container usingBut
setcap
is not available in the image, requiring the addition of a dependency installIt would be great if
libcap2-bin
and thussetcap
are available in theemk/rust-musl-builder
image.If you're interested in implementing this feature yourself, how could I help you?
The text was updated successfully, but these errors were encountered: