Skip to content
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

[REQ] "Distroless" Ubuntu/Debian images #448

Open
1 task
cpuguy83 opened this issue Nov 26, 2024 · 0 comments
Open
1 task

[REQ] "Distroless" Ubuntu/Debian images #448

cpuguy83 opened this issue Nov 26, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@cpuguy83
Copy link
Member

What kind of request is this?

None

What is your request or suggestion?

When we were working on Ubuntu Jammy support we originally had support for building a "distroless" image.
We did this by relying on mmdebstrap.
Unfortunately we found the only way to use mmdebstrap to produce a correct image was to enable privileged mode so mmdebstrap can setup chroots.
mmdebstrap does support an unprivileged mode, however a lot of things didn't work properly due to debhelper/maintainer scripts in deb packages not being able to handle this properly. An example of this was dh_systemd failing to put things in the right place.

We should definitely support this, though.
One option can be to use mmdebstrap (where supported) and require privileged mode.
This is at least a relatively low-effort way to achieve this, but it does require people to reconfigure their buildkit daemons and build invocations to allow the privileged entitlement.

We should be able to do what mmdebstrap does ourselves since we control all the things that mmdebstrap wants to control. This will take a bit more work to tease apart and implement all the requirements.

Are you willing to submit PRs to contribute to this feature request?

  • Yes, I am willing to implement it.
@cpuguy83 cpuguy83 added the enhancement New feature or request label Nov 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant