Commit ae1fb5a 1 parent 2188a35 commit ae1fb5a Copy full SHA for ae1fb5a
File tree 3 files changed +10
-13
lines changed
3 files changed +10
-13
lines changed Original file line number Diff line number Diff line change @@ -7,16 +7,13 @@ RUN echo "deb http://deb.debian.org/debian bullseye-backports main" >> /etc/apt/
7
7
RUN apt-get update && apt-get install -t bullseye-backports -qy libsystemd-dev
8
8
RUN make clean && make BUILD_IN_CONTAINER=false PROMTAIL_JOURNAL_ENABLED=true promtail
9
9
10
- # Promtail requires debian as the base image to support systemd journal reading
11
- FROM debian:bullseye-slim
10
+ # Promtail requires debian or ubuntu as the base image to support systemd journal reading
11
+ FROM public.ecr.aws/ubuntu/ubuntu:noble
12
12
# tzdata required for the timestamp stage to work
13
- # Backports repo required to get a libsystemd version 246 or newer which is required to handle journal +ZSTD compression
14
- RUN echo "deb http://deb.debian.org/debian bullseye-backports main" >> /etc/apt/sources.list
15
- RUN apt-get update && \
16
- apt-get install -qy \
17
- tzdata ca-certificates
18
- RUN apt-get install -t bullseye-backports -qy libsystemd-dev && \
19
- rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
13
+ # Install dependencies needed at runtime.
14
+ RUN apt-get update \
15
+ && apt-get install -qy libsystemd-dev tzdata ca-certificates \
16
+ && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
20
17
COPY --from=build /src/loki/clients/cmd/promtail/promtail /usr/bin/promtail
21
18
COPY clients/cmd/promtail/promtail-docker-config.yaml /etc/promtail/config.yml
22
19
ENTRYPOINT ["/usr/bin/promtail" ]
Original file line number Diff line number Diff line change @@ -7,8 +7,8 @@ RUN echo "deb http://deb.debian.org/debian bullseye-backports main" >> /etc/apt/
7
7
RUN apt-get update && apt-get install -t bullseye-backports -qy libsystemd-dev
8
8
RUN make clean && make BUILD_IN_CONTAINER=false PROMTAIL_JOURNAL_ENABLED=true promtail
9
9
10
- # Promtail requires debian as the base image to support systemd journal reading
11
- FROM debian:bullseye-slim
10
+ # Promtail requires debian or ubuntu as the base image to support systemd journal reading
11
+ FROM public.ecr.aws/ubuntu/ubuntu:noble
12
12
# tzdata required for the timestamp stage to work
13
13
# Backports repo required to get a libsystemd version 246 or newer which is required to handle journal +ZSTD compression
14
14
RUN echo "deb http://deb.debian.org/debian bullseye-backports main" >> /etc/apt/sources.list
Original file line number Diff line number Diff line change @@ -12,8 +12,8 @@ COPY . /src/loki
12
12
WORKDIR /src/loki
13
13
RUN make clean && GOARCH=$(cat /goarch) GOARM=$(cat /goarm) make BUILD_IN_CONTAINER=false PROMTAIL_JOURNAL_ENABLED=true promtail
14
14
15
- # Promtail requires debian as the base image to support systemd journal reading
16
- FROM debian:stretch-slim
15
+ # Promtail requires debian or ubuntu as the base image to support systemd journal reading
16
+ FROM public.ecr.aws/ubuntu/ubuntu:noble
17
17
# tzdata required for the timestamp stage to work
18
18
RUN apt-get update && \
19
19
apt-get install -qy \
You can’t perform that action at this time.
0 commit comments