This commit is contained in:
mezned 2024-11-10 18:00:39 +01:00
parent bdb1555ec4
commit d96d0811fb

View File

@ -41,12 +41,17 @@ RUN case "${BUILD_ARCH}" in \
# Add promtail # Add promtail
RUN apk add --no-cache curl tar unzip; \ RUN apk add --no-cache curl tar unzip; \
curl -LO "https://github.com/grafana/loki/releases/download/v${PROMTAIL_VERSION}/promtail-linux-amd64.zip"; \ curl -s -J -L -o promtail-linux-amd64.zip
"https://github.com/grafana/loki/releases/download/v${PROMTAIL_VERSION}/promtail-linux-amd64.zip"; \
unzip promtail-linux-amd64.zip -d /usr/bin; \ unzip promtail-linux-amd64.zip -d /usr/bin; \
mv /usr/bin/promtail-linux-amd64 /usr/bin/promtail; \ mv /usr/bin/promtail-linux-amd64 /usr/bin/promtail; \
ls -ltr /usr/bin/promtail; \
chmod a+x /usr/bin/promtail; \ chmod a+x /usr/bin/promtail; \
rm promtail-linux-amd64.zip; ls -ltr /usr/bin/promtail; \
rm promtail-linux-amd64.zip; \
ls -ltr /usr/bin/promtail; \
/usr/bin/promtail -v;
WORKDIR /data/promtail WORKDIR /data/promtail
# Build arguments # Build arguments