From 0396f53745c6379ff3dc3b38b8de27dc6d428fa1 Mon Sep 17 00:00:00 2001 From: Bitnami Bot Date: Thu, 6 Oct 2022 14:41:34 +0200 Subject: [PATCH] [bitnami/mysqld-exporter] Release 0.14.0-debian-11-r44 (#9136) Signed-off-by: Bitnami Containers Signed-off-by: Bitnami Containers --- .../mysqld-exporter/0/debian-11/Dockerfile | 24 ++++++++++++------- bitnami/mysqld-exporter/README.md | 2 +- 2 files changed, 16 insertions(+), 10 deletions(-) diff --git a/bitnami/mysqld-exporter/0/debian-11/Dockerfile b/bitnami/mysqld-exporter/0/debian-11/Dockerfile index 77ff96636918..c6ac7b8d117b 100644 --- a/bitnami/mysqld-exporter/0/debian-11/Dockerfile +++ b/bitnami/mysqld-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.14.0-debian-11-r42" \ + org.opencontainers.image.ref.name="0.14.0-debian-11-r44" \ org.opencontainers.image.source="https://github.com/bitnami/containers/tree/main/bitnami/mysqld-exporter" \ org.opencontainers.image.title="mysqld-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 mysqld-exporter-0.14.0-154-linux-${OS_ARCH}-debian-11.tar.gz ]; then \ - curl -SsLf https://downloads.bitnami.com/files/stacksmith/mysqld-exporter-0.14.0-154-linux-${OS_ARCH}-debian-11.tar.gz -O ; \ - curl -SsLf https://downloads.bitnami.com/files/stacksmith/mysqld-exporter-0.14.0-154-linux-${OS_ARCH}-debian-11.tar.gz.sha256 -O ; \ - fi && \ - sha256sum -c mysqld-exporter-0.14.0-154-linux-${OS_ARCH}-debian-11.tar.gz.sha256 && \ - tar -zxf mysqld-exporter-0.14.0-154-linux-${OS_ARCH}-debian-11.tar.gz -C /opt/bitnami --strip-components=2 --no-same-owner --wildcards '*/files' && \ - rm -rf mysqld-exporter-0.14.0-154-linux-${OS_ARCH}-debian-11.tar.gz mysqld-exporter-0.14.0-154-linux-${OS_ARCH}-debian-11.tar.gz.sha256 -RUN apt-get update && apt-get upgrade -y && \ + COMPONENTS=( \ + "mysqld-exporter-0.14.0-154-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/mysqld-exporter/bin/mysqld_exporter /bin/mysqld_exporter diff --git a/bitnami/mysqld-exporter/README.md b/bitnami/mysqld-exporter/README.md index d88919d05505..741a6b3a6b60 100644 --- a/bitnami/mysqld-exporter/README.md +++ b/bitnami/mysqld-exporter/README.md @@ -31,7 +31,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.14.0`, `0.14.0-debian-11-r42`, `latest` (0/debian-11/Dockerfile)](https://github.com/bitnami/containers/blob/main/bitnami/mysqld-exporter/0/debian-11/Dockerfile) +* [`0`, `0-debian-11`, `0.14.0`, `0.14.0-debian-11-r44`, `latest` (0/debian-11/Dockerfile)](https://github.com/bitnami/containers/blob/main/bitnami/mysqld-exporter/0/debian-11/Dockerfile) Subscribe to project updates by watching the [bitnami/containers GitHub repo](https://github.com/bitnami/containers).