This commit is contained in:
mezned 2024-11-10 11:04:35 +01:00
parent 72d51e7075
commit 294deebbcf

View File

@ -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