LightBitsLabs / los-csi

Lightbits LightOS CSI Plugin
Other
0 stars 2 forks source link

WIP: Stable Build, use alpine instead of centos #3

Closed majst01 closed 2 years ago

majst01 commented 2 years ago

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:

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
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.

majst01 commented 2 years ago

This is superseeded by #7