Open alsuren opened 2 months ago
If you're interested in a bit more flexibility for a minimum image Ubuntu with chisel
works quite well. Presently though, it's not as ideal to leverage for the equivalent Google distroless image, but it might be in future if my feedback is taken into consideration.
Beyond those two, Fedora and OpenSUSE can use --installroot
to make reasonably smaller images, how small depends on the packages (Fedora can do a glibc install that's about 16MB, half of which can be stripped away manually, while OpenSUSE Leap 15.6 is 10MB due to avoiding bash and other deps as a requirement).
Those two aren't too difficult to leverage, OpenSUSE --installroot
doesn't seem to work as nicely when building in SELinux hosts due to how zypper
works differently from dnf
, and while it often has the benefit of a smaller size some packages are years out of date due to the long running Leap 15.x series, python
still defaults to 3.6 for example.
Google distroless is the least hassle atm tbh, if you need some flexibility I'd go with Fedora for now, and keep an eye on Ubuntu + chisel
improving.
Thank you!
That's an interesting read, we will try and see which one is easiest for us.
Maybe we can try https://github.com/GoogleContainerTools/distroless
This is probably the bare minimum image with certification available.
We won't get any notification for the image, but we can have dependabot automatically opening PR to update rust dependencies and trigger redeployment.
_Originally posted by @NobodyXu in https://github.com/cargo-bins/cargo-quickinstall/pull/165#discussion_r1749212424_
(might tie into whatever we do with https://github.com/cargo-bins/cargo-quickinstall/issues/277)