Debian based Distroless, UBI 8 based build, native-image troubles might ensue
See original GitHub issueDescribe the bug
As I added a distroless setup to AWT graphics Quickstart: https://github.com/quarkusio/quarkus-quickstarts/pull/961 (depends on #20850), it struck me as odd that all quickstarts, including those potentially sensitive to native libs such as Tika, use quay.io/quarkus/quarkus-distroless-image:1.0
(yaml) as their base, which is in fact Debian based.
Quarkus native executable is thus built using UBI 8 based builder image and then copied into Debian userland, with Debian libz copied over, hoping for the best, see (yaml).
I used ubi-micro for the AWT quickstart distroless, manually copying necessary libraries from ubi-minimal
, which is somewhat frail, although better off than if I attempted to use Debian libs to satisfy UBI dependencies…
I find such setup fragile. It seems to me that if we aim for truly minimalistic setup, we should be working with ubi-micro.
Issue Analytics
- State:
- Created 2 years ago
- Reactions:1
- Comments:12 (6 by maintainers)
yes, I think @cescoffier was referring to ubi-minimal, but the equivalent of distroless is ubi-micro
Good point @Karm it’s true that libraries aren’t 1:1 equivalent. I can take the point and migrate to ubi-micro… if someone can assign me?