From 05156138fc548739e7ab28244dade92ccfb5cabe Mon Sep 17 00:00:00 2001 From: Bitnami Bot Date: Thu, 6 Oct 2022 14:32:06 +0200 Subject: [PATCH] [bitnami/mongodb-exporter] Release 0.34.0-debian-11-r22 (#9128) Signed-off-by: Bitnami Containers Signed-off-by: Bitnami Containers --- .../mongodb-exporter/0/debian-11/Dockerfile | 24 ++++++++++++------- bitnami/mongodb-exporter/README.md | 2 +- 2 files changed, 16 insertions(+), 10 deletions(-) diff --git a/bitnami/mongodb-exporter/0/debian-11/Dockerfile b/bitnami/mongodb-exporter/0/debian-11/Dockerfile index 00fc9b020c43..1b36cbd21d03 100644 --- a/bitnami/mongodb-exporter/0/debian-11/Dockerfile +++ b/bitnami/mongodb-exporter/0/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="0.34.0-debian-11-r20" \ + org.opencontainers.image.ref.name="0.34.0-debian-11-r22" \ org.opencontainers.image.source="https://github.com/bitnami/containers/tree/main/bitnami/mongodb-exporter" \ org.opencontainers.image.title="mongodb-exporter" \ org.opencontainers.image.vendor="VMware, Inc." \ @@ -20,14 +20,20 @@ SHELL ["/bin/bash", "-o", "pipefail", "-c"] # Install required system packages and dependencies RUN install_packages ca-certificates curl procps RUN mkdir -p /tmp/bitnami/pkg/cache/ && cd /tmp/bitnami/pkg/cache/ && \ - if [ ! -f mongodb-exporter-0.34.0-2-linux-${OS_ARCH}-debian-11.tar.gz ]; then \ - curl -SsLf https://downloads.bitnami.com/files/stacksmith/mongodb-exporter-0.34.0-2-linux-${OS_ARCH}-debian-11.tar.gz -O ; \ - curl -SsLf https://downloads.bitnami.com/files/stacksmith/mongodb-exporter-0.34.0-2-linux-${OS_ARCH}-debian-11.tar.gz.sha256 -O ; \ - fi && \ - sha256sum -c mongodb-exporter-0.34.0-2-linux-${OS_ARCH}-debian-11.tar.gz.sha256 && \ - tar -zxf mongodb-exporter-0.34.0-2-linux-${OS_ARCH}-debian-11.tar.gz -C /opt/bitnami --strip-components=2 --no-same-owner --wildcards '*/files' && \ - rm -rf mongodb-exporter-0.34.0-2-linux-${OS_ARCH}-debian-11.tar.gz mongodb-exporter-0.34.0-2-linux-${OS_ARCH}-debian-11.tar.gz.sha256 -RUN apt-get update && apt-get upgrade -y && \ + COMPONENTS=( \ + "mongodb-exporter-0.34.0-2-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 RUN chmod g+rwX /opt/bitnami RUN ln -sf /opt/bitnami/mongodb-exporter/bin/mongodb_exporter /bin/mongodb_exporter diff --git a/bitnami/mongodb-exporter/README.md b/bitnami/mongodb-exporter/README.md index 8fb5cac7c968..1bbc7e1500e1 100644 --- a/bitnami/mongodb-exporter/README.md +++ b/bitnami/mongodb-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/). -* [`0`, `0-debian-11`, `0.34.0`, `0.34.0-debian-11-r20`, `latest` (0/debian-11/Dockerfile)](https://github.com/bitnami/containers/blob/main/bitnami/mongodb-exporter/0/debian-11/Dockerfile) +* [`0`, `0-debian-11`, `0.34.0`, `0.34.0-debian-11-r22`, `latest` (0/debian-11/Dockerfile)](https://github.com/bitnami/containers/blob/main/bitnami/mongodb-exporter/0/debian-11/Dockerfile) Subscribe to project updates by watching the [bitnami/containers GitHub repo](https://github.com/bitnami/containers).