Skip to content

Commit

Permalink
Merge pull request #48 from mdegat01/bump-debian-bullseye
Browse files Browse the repository at this point in the history
Update from buster to bullseye
  • Loading branch information
mdegat01 authored Aug 23, 2021
2 parents 9c3b991 + 6cbb53c commit 80b91ca
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions promtail/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,16 +1,14 @@
# https://hub.docker.com/_/golang
FROM golang:1.17.0-buster as build
FROM golang:1.17.0-bullseye as build
# https://github.com/grafana/loki/releases
ENV LOKI_VERSION 2.3.0

# Must build binary from source on system with journal support. Published binaries on release do not include this.
# https://packages.debian.org/buster/libsystemd-dev
RUN set -eux; \
echo "deb http://deb.debian.org/debian buster-backports main" >> /etc/apt/sources.list; \
apt-get update; \
apt-get install -qy --no-install-recommends \
-t buster-backports \
libsystemd-dev=247.3-6~bpo10+1 \
libsystemd-dev=247.3-6 \
; \
curl -J -L -o /tmp/loki.tar.gz \
"https://github.com/grafana/loki/archive/refs/tags/v${LOKI_VERSION}.tar.gz"; \
Expand All @@ -23,7 +21,7 @@ WORKDIR /src/loki
RUN make BUILD_IN_CONTAINER=false promtail

# https://hub.docker.com/_/debian
FROM debian:buster-20210816-slim
FROM debian:bullseye-20210816-slim

COPY --from=build /src/loki/clients/cmd/promtail/promtail /usr/bin/promtail
RUN promtail --version
Expand Down

0 comments on commit 80b91ca

Please sign in to comment.