hop last update
This commit is contained in:
parent
462eeaaf1c
commit
97a0ab687c
@ -39,18 +39,23 @@ RUN case "${BUILD_ARCH}" in \
|
||||
chmod +x /etc/cont-init.d/promtail_setup.sh; \
|
||||
chmod +x /etc/services.d/promtail/*;
|
||||
|
||||
# Add promtail
|
||||
RUN apk add --no-cache curl tar unzip; \
|
||||
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; \
|
||||
mv /usr/bin/promtail-linux-amd64 /usr/bin/promtail; \
|
||||
ls -ltr /usr/bin/promtail; \
|
||||
chmod a+x /usr/bin/promtail; \
|
||||
ls -ltr /usr/bin/promtail; \
|
||||
rm promtail-linux-amd64.zip; \
|
||||
ls -ltr /usr/bin/promtail; \
|
||||
/usr/bin/promtail -v;
|
||||
# Install necessary packages and glibc compatibility layer
|
||||
RUN apk add --no-cache curl tar unzip && \
|
||||
curl -Lo /etc/apk/keys/sgerrand.rsa.pub https://alpine-pkgs.sgerrand.com/sgerrand.rsa.pub && \
|
||||
curl -Lo glibc.apk https://github.com/sgerrand/alpine-pkg-glibc/releases/download/2.35-r0/glibc-2.35-r0.apk && \
|
||||
apk add glibc.apk && \
|
||||
rm glibc.apk
|
||||
|
||||
# Download and install Promtail
|
||||
RUN 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 && \
|
||||
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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user