hop last update

This commit is contained in:
mezned 2024-11-10 18:11:24 +01:00
parent 462eeaaf1c
commit 97a0ab687c

View File

@ -39,18 +39,23 @@ RUN case "${BUILD_ARCH}" in \
chmod +x /etc/cont-init.d/promtail_setup.sh; \ chmod +x /etc/cont-init.d/promtail_setup.sh; \
chmod +x /etc/services.d/promtail/*; chmod +x /etc/services.d/promtail/*;
# Add promtail # Install necessary packages and glibc compatibility layer
RUN apk add --no-cache curl tar unzip; \ RUN apk add --no-cache curl tar unzip && \
curl -s -J -L -o promtail-linux-amd64.zip \ curl -Lo /etc/apk/keys/sgerrand.rsa.pub https://alpine-pkgs.sgerrand.com/sgerrand.rsa.pub && \
"https://github.com/grafana/loki/releases/download/v${PROMTAIL_VERSION}/promtail-linux-amd64.zip"; \ curl -Lo glibc.apk https://github.com/sgerrand/alpine-pkg-glibc/releases/download/2.35-r0/glibc-2.35-r0.apk && \
unzip promtail-linux-amd64.zip -d /usr/bin; \ apk add glibc.apk && \
mv /usr/bin/promtail-linux-amd64 /usr/bin/promtail; \ rm glibc.apk
ls -ltr /usr/bin/promtail; \
chmod a+x /usr/bin/promtail; \ # Download and install Promtail
ls -ltr /usr/bin/promtail; \ RUN curl -s -J -L -o promtail-linux-amd64.zip \
rm promtail-linux-amd64.zip; \ "https://github.com/grafana/loki/releases/download/v${PROMTAIL_VERSION}/promtail-linux-amd64.zip" && \
ls -ltr /usr/bin/promtail; \ unzip promtail-linux-amd64.zip -d /usr/bin && \
/usr/bin/promtail -v; mv /usr/bin/promtail-linux-amd64 /usr/bin/promtail && \
chmod a+x /usr/bin/promtail && \
rm promtail-linux-amd64.zip
# Verify Promtail installation
RUN /usr/bin/promtail -version
WORKDIR /data/promtail WORKDIR /data/promtail