LinuxForHealth / images

Linux For Health Container Images
Apache License 2.0
2 stars 2 forks source link

Added base, openjdk, kafdrop & zookeeper alpine images #29

Closed ccorley closed 3 years ago

ccorley commented 3 years ago

Created base-alpine, openjdk-alpine, kafdrop-alpine, kafka-alpine & zookeeper-alpine images. These images were created in directories alongside the original UBI-based images, so we can choose to use either image type, and were tested on amd64, arm64 & s390x.

The kafdrop-alpine image currently does not work on s390x due to an external alpine openjdk issue. Once that is resolved, kafdrop-alpine can be used as-is on all platforms. Since kafdrop-alpine currently works on amd64 and arm64, it is assumed that there is not a problem with the kafdrop-alpine image itself.

ccorley commented 3 years ago

Image size differences (uncompressed) w/alpine + openjdk headless + reduced image layers:

Base

Original: 157M Alpine: 9.37M

Open JDK

Original: 479M Alpine: 179M

Kafdrop

Original: 894M Alpine: 455M Size reduction due to alpine: 292M Size reduction due to openjdk-jre-headless: 8MB Size reduction due to docker image layer reduction: 139M

Kafka

Original: 674M Alpine: 308M

Zookeeper

Original: 550M Alpine: 249M

ccorley commented 3 years ago

Opened an alpine issue for kafdrop on alpine: https://gitlab.alpinelinux.org/alpine/aports/-/issues/12275#note_134258

Also added a kafka-alpine image. Alpine reduced the size of the kafka image from 674MB to 308MB.

Finally, kafka-alpine does work on s390x, which is good news.