You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Distroless images are very small. The smallest distroless image, gcr.io/distroless/static-debian12, is around 2 MiB. That's about 50% of the size of alpine (~5 MiB), and less than 2% of the size of debian (124 MiB).
This is probably the bare minimum image with certification available.
Can't we just wait for debian-buster to ship the updated openlls+certs and rebuild the docker image?
We won't get any notification for the image, but we can have dependabot automatically opening PR to update rust dependencies and trigger redeployment.
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.
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 #165 (comment)
(might tie into whatever we do with #277)
The text was updated successfully, but these errors were encountered: