quarkusio / quarkus-buildpacks

9 stars 3 forks source link

Install "which" RPM, used by mvnw and /usr/bin/mvn #14

Closed jmtd closed 2 years ago

jmtd commented 2 years ago

This is one possible solution for #13: just make sure which is available, so that mvnw and /usr/bin/mvn just work if they try to call it.

jmtd commented 2 years ago

Costs approx. 17 MiB extra uncompressed image size in local tests. If you really really wanted to eradicate that, here's the differing files:

FILE                                   SIZE1        SIZE2
/var/lib/rpm/Packages                  8.7M         8.7M
/var/lib/dnf/history.sqlite-wal        3.9M         3.9M
/var/lib/rpm/__db.003                  1.3M         1.3M
/var/lib/rpm/Basenames                 812K         812K
/var/lib/rpm/__db.001                  280K         280K
/var/lib/rpm/Dirnames                  280K         280K
/var/lib/rpm/Providename               144K         144K
/var/lib/dnf/history.sqlite            132K         132K
/var/lib/rpm/Requirename               92K          96K
/var/lib/rpm/__db.002                  88K          88K
/var/lib/dnf/history.sqlite-shm        32K          32K
/var/lib/rpm/Sha1header                32K          32K
/var/lib/rpm/Sigmd5                    20K          20K
/var/lib/rpm/Name                      16K          16K
/var/cache/ldconfig/aux-cache          12.7K        12.7K
/var/lib/rpm/Group                     12K          12K
/var/lib/rpm/Installtid                8K           8K
/usr/share/info/dir                    541B         624B
quintesse commented 2 years ago

I'll merge this for now to get things working again at least. If this ever becomes officially used we can always revisit and optmize.