fix
This commit is contained in:
@@ -12,6 +12,7 @@ RUN set -eux; \
|
|||||||
apt-get update; \
|
apt-get update; \
|
||||||
apt-get install -qy --no-install-recommends \
|
apt-get install -qy --no-install-recommends \
|
||||||
tar \
|
tar \
|
||||||
|
unzip \
|
||||||
; \
|
; \
|
||||||
update-ca-certificates; \
|
update-ca-certificates; \
|
||||||
\
|
\
|
||||||
@@ -29,15 +30,14 @@ RUN set -eux; \
|
|||||||
chmod a+x /usr/bin/yq; \
|
chmod a+x /usr/bin/yq; \
|
||||||
rm /tmp/yq.tar.gz; \
|
rm /tmp/yq.tar.gz; \
|
||||||
yq --version; \
|
yq --version; \
|
||||||
\
|
|
||||||
apt-get clean; \
|
apt-get clean; \
|
||||||
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*; \
|
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*; \
|
||||||
curl -s -J -L -o /tmp/promtail.tar \
|
curl -s -J -L -o /tmp/promtail.zip \
|
||||||
"https://github.com/grafana/loki/releases/download/v${PROMTAIL_VERSION}/promtail-linux-${BINARCH}.zip"; \
|
"https://github.com/grafana/loki/releases/download/v${PROMTAIL_VERSION}/promtail-linux-${BINARCH}.zip"; \
|
||||||
tar -xf /tmp/promtail.tar -C /usr/bin; \
|
unzip /tmp/promtail.tar -d /usr/bin; \
|
||||||
mv /usr/bin/promtail-linux-${BINARCH} /usr/bin/promtail; \
|
mv /usr/bin/promtail-linux-${BINARCH} /usr/bin/promtail; \
|
||||||
chmod +x /usr/bin/promtail; \
|
chmod +x /usr/bin/promtail; \
|
||||||
rm /tmp/promtail.tar
|
rm /tmp/promtail.zip
|
||||||
|
|
||||||
COPY rootfs /
|
COPY rootfs /
|
||||||
WORKDIR /data/promtail
|
WORKDIR /data/promtail
|
||||||
|
|||||||
Reference in New Issue
Block a user