diff --git a/bitnami/promtail/2/debian-11/Dockerfile b/bitnami/promtail/2/debian-11/Dockerfile index 8ed3af4fdd10..dfa0eb5c6e54 100644 --- a/bitnami/promtail/2/debian-11/Dockerfile +++ b/bitnami/promtail/2/debian-11/Dockerfile @@ -1,28 +1,32 @@ FROM docker.io/bitnami/minideb:bullseye -ENV HOME="/" \ - OS_ARCH="amd64" \ - OS_FLAVOUR="debian-11" \ - OS_NAME="linux" + +ARG TARGETARCH LABEL org.opencontainers.image.authors="https://bitnami.com/contact" \ org.opencontainers.image.description="Application packaged by Bitnami" \ - org.opencontainers.image.ref.name="2.6.1-debian-11-r16" \ + org.opencontainers.image.ref.name="2.6.1-debian-11-r17" \ org.opencontainers.image.source="https://github.com/bitnami/containers/tree/main/bitnami/promtail" \ org.opencontainers.image.title="promtail" \ org.opencontainers.image.vendor="VMware, Inc." \ org.opencontainers.image.version="2.6.1" +ENV HOME="/" \ + OS_ARCH="${TARGETARCH:-amd64}" \ + OS_FLAVOUR="debian-11" \ + OS_NAME="linux" + COPY prebuildfs / SHELL ["/bin/bash", "-o", "pipefail", "-c"] # Install required system packages and dependencies RUN install_packages ca-certificates curl gzip libc6 procps tar RUN mkdir -p /tmp/bitnami/pkg/cache/ && cd /tmp/bitnami/pkg/cache/ && \ - if [ ! -f promtail-2.6.1-2-linux-amd64-debian-11.tar.gz ]; then \ - curl -SsLf https://downloads.bitnami.com/files/stacksmith/promtail-2.6.1-2-linux-amd64-debian-11.tar.gz -O ; \ + if [ ! -f promtail-2.6.1-2-linux-${OS_ARCH}-debian-11.tar.gz ]; then \ + curl -SsLf https://downloads.bitnami.com/files/stacksmith/promtail-2.6.1-2-linux-${OS_ARCH}-debian-11.tar.gz -O ; \ + curl -SsLf https://downloads.bitnami.com/files/stacksmith/promtail-2.6.1-2-linux-${OS_ARCH}-debian-11.tar.gz.sha256 -O ; \ fi && \ - echo "d0df301a461f976cd829c96bfa898b53badd00df49850b8d15ecc561e330f1cf promtail-2.6.1-2-linux-amd64-debian-11.tar.gz" | sha256sum -c - && \ - tar -zxf promtail-2.6.1-2-linux-amd64-debian-11.tar.gz -C /opt/bitnami --strip-components=2 --no-same-owner --wildcards '*/files' && \ - rm -rf promtail-2.6.1-2-linux-amd64-debian-11.tar.gz + sha256sum -c promtail-2.6.1-2-linux-${OS_ARCH}-debian-11.tar.gz.sha256 && \ + tar -zxf promtail-2.6.1-2-linux-${OS_ARCH}-debian-11.tar.gz -C /opt/bitnami --strip-components=2 --no-same-owner --wildcards '*/files' && \ + rm -rf promtail-2.6.1-2-linux-${OS_ARCH}-debian-11.tar.gz RUN apt-get update && apt-get upgrade -y && \ rm -r /var/lib/apt/lists /var/cache/apt/archives RUN chmod g+rwX /opt/bitnami diff --git a/bitnami/promtail/README.md b/bitnami/promtail/README.md index 2fbbdbc9e24d..bf60251ee6fc 100644 --- a/bitnami/promtail/README.md +++ b/bitnami/promtail/README.md @@ -28,7 +28,7 @@ $ docker run --name promtail bitnami/promtail:latest 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/). -* [`2`, `2-debian-11`, `2.6.1`, `2.6.1-debian-11-r16`, `latest` (2/debian-11/Dockerfile)](https://github.com/bitnami/containers/blob/main/bitnami/promtail/2/debian-11/Dockerfile) +* [`2`, `2-debian-11`, `2.6.1`, `2.6.1-debian-11-r17`, `latest` (2/debian-11/Dockerfile)](https://github.com/bitnami/containers/blob/main/bitnami/promtail/2/debian-11/Dockerfile) Subscribe to project updates by watching the [bitnami/containers GitHub repo](https://github.com/bitnami/containers).