With this the build is done in a multi-stage Dockerfile which will guarantee a stable reproducible build of the generated binary.
Also moved to latest alpine as base to reduce the resulting image by factor 10.
Installed userland packages also get a significant update:
centos 7.9.2009
rpm -q nvme-cli e2fsprogs xfsprogs
nvme-cli-1.8.1-3.el7.x86_64
e2fsprogs-1.42.9-19.el7.x86_64
xfsprogs-4.5.0-22.el7.x86_64
docker images centos:7.9.2009
REPOSITORY TAG IMAGE ID CREATED SIZE
centos 7.9.2009 eeb6ee3f44bd 5 weeks ago 204MB
docker images lb-csi-plugin
REPOSITORY TAG IMAGE ID CREATED SIZE
lb-csi-plugin latest 31b7a140adbe 40 seconds ago 243MB
alpine 3.14
apk list nvme-cli e2fsprogs xfsprogs
nvme-cli-1.14-r0 x86_64
e2fsprogs-1.46.2-r0 x86_64
xfsprogs-5.12.0-r0 x86_64
docker images alpine:3.14
REPOSITORY TAG IMAGE ID CREATED SIZE
alpine 3.14 d4ff818577bc 4 months ago 5.6MB
docker images lb-csi-plugin
REPOSITORY TAG IMAGE ID CREATED SIZE
lb-csi-plugin latest 8ff3fa0e795f 8 minutes ago 20.1MB
P.S. cant create a draft PR because this feature is only available for public repos.
With this the build is done in a multi-stage Dockerfile which will guarantee a stable reproducible build of the generated binary. Also moved to latest alpine as base to reduce the resulting image by factor 10.
Installed userland packages also get a significant update:
P.S. cant create a draft PR because this feature is only available for public repos.