diff --git a/bitnami/kafka-exporter/1/debian-11/Dockerfile b/bitnami/kafka-exporter/1/debian-11/Dockerfile index 10eb1d45c872..3a7ec7ec8dd1 100644 --- a/bitnami/kafka-exporter/1/debian-11/Dockerfile +++ b/bitnami/kafka-exporter/1/debian-11/Dockerfile @@ -4,7 +4,7 @@ ARG TARGETARCH LABEL org.opencontainers.image.authors="https://bitnami.com/contact" \ org.opencontainers.image.description="Application packaged by Bitnami" \ - org.opencontainers.image.ref.name="1.6.0-debian-11-r14" \ + org.opencontainers.image.ref.name="1.6.0-debian-11-r15" \ org.opencontainers.image.source="https://github.com/bitnami/containers/tree/main/bitnami/kafka-exporter" \ org.opencontainers.image.title="kafka-exporter" \ org.opencontainers.image.vendor="VMware, Inc." \ @@ -20,13 +20,18 @@ SHELL ["/bin/bash", "-o", "pipefail", "-c"] # Install required system packages and dependencies RUN install_packages ca-certificates curl libc6 procps RUN mkdir -p /tmp/bitnami/pkg/cache/ && cd /tmp/bitnami/pkg/cache/ && \ - if [ ! -f kafka-exporter-1.6.0-1-linux-${OS_ARCH}-debian-11.tar.gz ]; then \ - curl -SsLf https://downloads.bitnami.com/files/stacksmith/kafka-exporter-1.6.0-1-linux-${OS_ARCH}-debian-11.tar.gz -O ; \ - curl -SsLf https://downloads.bitnami.com/files/stacksmith/kafka-exporter-1.6.0-1-linux-${OS_ARCH}-debian-11.tar.gz.sha256 -O ; \ - fi && \ - sha256sum -c kafka-exporter-1.6.0-1-linux-${OS_ARCH}-debian-11.tar.gz.sha256 && \ - tar -zxf kafka-exporter-1.6.0-1-linux-${OS_ARCH}-debian-11.tar.gz -C /opt/bitnami --strip-components=2 --no-same-owner --wildcards '*/files' && \ - rm -rf kafka-exporter-1.6.0-1-linux-${OS_ARCH}-debian-11.tar.gz kafka-exporter-1.6.0-1-linux-${OS_ARCH}-debian-11.tar.gz.sha256 + COMPONENTS=( \ + "kafka-exporter-1.6.0-1-linux-${OS_ARCH}-debian-11" \ + ) && \ + for COMPONENT in "${COMPONENTS[@]}"; do \ + if [ ! -f "${COMPONENT}.tar.gz" ]; then \ + curl -SsLf "https://downloads.bitnami.com/files/stacksmith/${COMPONENT}.tar.gz" -O ; \ + curl -SsLf "https://downloads.bitnami.com/files/stacksmith/${COMPONENT}.tar.gz.sha256" -O ; \ + fi && \ + sha256sum -c "${COMPONENT}.tar.gz.sha256" && \ + tar -zxf "${COMPONENT}.tar.gz" -C /opt/bitnami --strip-components=2 --no-same-owner --wildcards '*/files' && \ + rm -rf "${COMPONENT}.tar.gz{,sha256}" ; \ + done RUN apt-get autoremove --purge -y curl && \ apt-get update && apt-get upgrade -y && \ apt-get clean && rm -rf /var/lib/apt/lists /var/cache/apt/archives diff --git a/bitnami/kafka-exporter/README.md b/bitnami/kafka-exporter/README.md index f160854b3f98..8f95b393d6f5 100644 --- a/bitnami/kafka-exporter/README.md +++ b/bitnami/kafka-exporter/README.md @@ -32,7 +32,7 @@ Non-root container images add an extra layer of security and are generally recom Learn more about the Bitnami tagging policy and the difference between rolling tags and immutable tags [in our documentation page](https://docs.bitnami.com/tutorials/understand-rolling-tags-containers/). -* [`1`, `1-debian-11`, `1.6.0`, `1.6.0-debian-11-r14`, `latest` (1/debian-11/Dockerfile)](https://github.com/bitnami/containers/blob/main/bitnami/kafka-exporter/1/debian-11/Dockerfile) +* [`1`, `1-debian-11`, `1.6.0`, `1.6.0-debian-11-r15`, `latest` (1/debian-11/Dockerfile)](https://github.com/bitnami/containers/blob/main/bitnami/kafka-exporter/1/debian-11/Dockerfile) Subscribe to project updates by watching the [bitnami/containers GitHub repo](https://github.com/bitnami/containers).