elastic / stream

Test utility for streaming data via udp/tcp/tls/webhook/GCP Pub-Sub/Kafka.
https://container-library.elastic.co/r/observability/stream
Apache License 2.0
8 stars 13 forks source link

docker image: reduce image size by using alpine linux #85

Closed andrewkroh closed 6 months ago

andrewkroh commented 6 months ago

Switch to an alpine 3.19 base image for the docker image. The resulting image is 42MB compared to 129MB before. This will save transfer costs on CI and speed up downloads. The stream binary is linked with musl libc.

# ldd stream
        /lib/ld-musl-aarch64.so.1 (0xffffac8cd000)
        libpcap.so.1 => /usr/lib/libpcap.so.1 (0xffffac87c000)
        libc.musl-aarch64.so.1 => /lib/ld-musl-aarch64.so.1 (0xffffac8cd000)
elasticmachine commented 6 months ago

:green_heart: Build Succeeded