diff --git a/bitnami/prometheus/3/debian-12/Dockerfile b/bitnami/prometheus/3/debian-12/Dockerfile index 48c22c2f0fd1..d09967f1ec6f 100644 --- a/bitnami/prometheus/3/debian-12/Dockerfile +++ b/bitnami/prometheus/3/debian-12/Dockerfile @@ -8,10 +8,10 @@ ARG TARGETARCH LABEL com.vmware.cp.artifact.flavor="sha256:c50c90cfd9d12b445b011e6ad529f1ad3daea45c26d20b00732fae3cd71f6a83" \ org.opencontainers.image.base.name="docker.io/bitnami/minideb:bookworm" \ - org.opencontainers.image.created="2025-05-31T11:33:50Z" \ + org.opencontainers.image.created="2025-06-06T04:25:27Z" \ org.opencontainers.image.description="Application packaged by Broadcom, Inc." \ org.opencontainers.image.documentation="https://github.com/bitnami/containers/tree/main/bitnami/prometheus/README.md" \ - org.opencontainers.image.ref.name="3.4.1-debian-12-r0" \ + org.opencontainers.image.ref.name="3.4.1-debian-12-r1" \ org.opencontainers.image.source="https://github.com/bitnami/containers/tree/main/bitnami/prometheus" \ org.opencontainers.image.title="prometheus" \ org.opencontainers.image.vendor="Broadcom, Inc." \ @@ -28,7 +28,7 @@ SHELL ["/bin/bash", "-o", "errexit", "-o", "nounset", "-o", "pipefail", "-c"] RUN install_packages ca-certificates curl procps RUN mkdir -p /tmp/bitnami/pkg/cache/ ; cd /tmp/bitnami/pkg/cache/ || exit 1 ; \ COMPONENTS=( \ - "prometheus-3.4.1-0-linux-${OS_ARCH}-debian-12" \ + "prometheus-3.4.1-1-linux-${OS_ARCH}-debian-12" \ ) ; \ for COMPONENT in "${COMPONENTS[@]}"; do \ if [ ! -f "${COMPONENT}.tar.gz" ]; then \ @@ -46,6 +46,7 @@ RUN find / -perm /6000 -type f -exec chmod a-s {} \; || true RUN ln -sf /opt/bitnami/prometheus/conf /etc/prometheus RUN ln -sf /opt/bitnami/prometheus/data /prometheus RUN chown -R 1001:1001 /opt/bitnami/prometheus +RUN uninstall_packages curl RUN mkdir -p /opt/bitnami/prometheus/data/ && chmod g+rwX /opt/bitnami/prometheus/data/ ENV APP_VERSION="3.4.1" \ diff --git a/bitnami/prometheus/3/debian-12/prebuildfs/opt/bitnami/.bitnami_components.json b/bitnami/prometheus/3/debian-12/prebuildfs/opt/bitnami/.bitnami_components.json index 63bae96bc5e3..9b64b4c957e6 100644 --- a/bitnami/prometheus/3/debian-12/prebuildfs/opt/bitnami/.bitnami_components.json +++ b/bitnami/prometheus/3/debian-12/prebuildfs/opt/bitnami/.bitnami_components.json @@ -3,6 +3,6 @@ "arch": "amd64", "distro": "debian-12", "type": "NAMI", - "version": "3.4.1-0" + "version": "3.4.1-1" } } \ No newline at end of file diff --git a/bitnami/prometheus/3/debian-12/prebuildfs/usr/sbin/uninstall_packages b/bitnami/prometheus/3/debian-12/prebuildfs/usr/sbin/uninstall_packages new file mode 100755 index 000000000000..615c430e4e68 --- /dev/null +++ b/bitnami/prometheus/3/debian-12/prebuildfs/usr/sbin/uninstall_packages @@ -0,0 +1,26 @@ +#!/bin/sh +# Copyright Broadcom, Inc. All Rights Reserved. +# SPDX-License-Identifier: APACHE-2.0 +set -eu + +n=0 +max=2 +export DEBIAN_FRONTEND=noninteractive + +until [ $n -gt $max ]; do + set +e + ( + apt-get autoremove --purge -y "$@" + ) + CODE=$? + set -e + if [ $CODE -eq 0 ]; then + break + fi + if [ $n -eq $max ]; then + exit $CODE + fi + echo "apt failed, retrying" + n=$(($n + 1)) +done +apt-get clean && rm -rf /var/lib/apt/lists /var/cache/apt/archives