From 294deebbcfd86ffc1170cb5d0e77d1c856da4743 Mon Sep 17 00:00:00 2001 From: mezned Date: Sun, 10 Nov 2024 11:04:35 +0100 Subject: [PATCH] update --- promtail/Dockerfile | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/promtail/Dockerfile b/promtail/Dockerfile index 2d20e79..17ea271 100644 --- a/promtail/Dockerfile +++ b/promtail/Dockerfile @@ -5,6 +5,7 @@ FROM ${BUILD_FROM} # https://github.com/mikefarah/yq/releases ARG YQ_VERSION=4.44.3 +ARG PROMTAIL_VERSION=3.2.1 ARG BUILD_ARCH @@ -39,7 +40,14 @@ RUN case "${BUILD_ARCH}" in \ chmod +x /etc/services.d/promtail/*; # Add promtail -COPY --from=grafana/promtail:latest /usr/bin/promtail /usr/bin/promtail +RUN apk add --no-cache curl tar && \ + curl -LO "https://github.com/grafana/loki/releases/download/v${PROMTAIL_VERSION}/promtail-linux-amd64.zip" && \ + apk add unzip && \ + unzip promtail-linux-amd64.zip && \ + mv promtail-linux-amd64 /usr/bin/promtai && \ + chmod +x /usr/bin/promtai && \ + rm promtail-linux-amd64.zip && \ + apk del unzip RUN /usr/bin/promtail --version WORKDIR /data/promtail