update promtail
This commit is contained in:
		@@ -1,6 +1,3 @@
 | 
			
		||||
# https://github.com/mdegat01/promtail-journal/releases
 | 
			
		||||
#FROM ghcr.io/mdegat01/promtail-journal/${BUILD_ARCH}:1.6.0 as build_promtail
 | 
			
		||||
 | 
			
		||||
# https://github.com/hassio-addons/addon-debian-base/releases
 | 
			
		||||
# hadolint ignore=DL3006
 | 
			
		||||
ARG BUILD_FROM
 | 
			
		||||
@@ -11,16 +8,17 @@ ARG YQ_VERSION=4.44.3
 | 
			
		||||
 | 
			
		||||
ARG BUILD_ARCH
 | 
			
		||||
# Add yq and tzdata (required for the timestamp stage)
 | 
			
		||||
RUN echo "deb http://deb.debian.org/debian bullseye-backports main" >> /etc/apt/sources.list
 | 
			
		||||
RUN apt-get update && apt-get install -t bullseye-backports -qy libsystemd-dev
 | 
			
		||||
RUN set -eux; \
 | 
			
		||||
    apt-get update; \
 | 
			
		||||
    apt-get install -qy --no-install-recommends \ 
 | 
			
		||||
        tar=1.34+dfsg-1 \
 | 
			
		||||
        ; \
 | 
			
		||||
    update-ca-certificates; \
 | 
			
		||||
    apk update; \
 | 
			
		||||
    \
 | 
			
		||||
    case "${BUILD_ARCH}" in \
 | 
			
		||||
    apk add --no-cache --virtual .build-deps \
 | 
			
		||||
        libsystemd-dev \
 | 
			
		||||
        tar \
 | 
			
		||||
        ca-certificates \
 | 
			
		||||
        ; \
 | 
			
		||||
    APKARCH="$(apk --print-arch)"; \
 | 
			
		||||
RUN update-ca-certificates;
 | 
			
		||||
RUN case "${BUILD_ARCH}" in \
 | 
			
		||||
        amd64)  BINARCH='amd64' ;; \
 | 
			
		||||
        armhf)   BINARCH='arm' ;; \
 | 
			
		||||
        armv7)   BINARCH='arm' ;; \
 | 
			
		||||
@@ -35,7 +33,6 @@ RUN set -eux; \
 | 
			
		||||
    rm /tmp/yq.tar.gz; \
 | 
			
		||||
    yq --version; \
 | 
			
		||||
    \
 | 
			
		||||
    apt-get clean; \
 | 
			
		||||
    rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*; \
 | 
			
		||||
    chmod +x /etc/cont-init.d/promtail_setup.sh; \
 | 
			
		||||
    chmod +x /etc/services.d/promtail/*;
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user