-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Revert build image to Debian Bullseye to fix libc version issue …
…in Promtail (#14387) Backport of #14368 to 3.1.x release branch Signed-off-by: Christian Haudum <[email protected]>
- Loading branch information
Showing
12 changed files
with
120 additions
and
108 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,9 +4,9 @@ | |
# tag of the Docker image in `../.drone/drone.jsonnet` and run `make drone`. | ||
# See ../docs/sources/community/maintaining/release-loki-build-image.md for instructions | ||
# on how to publish a new build image. | ||
|
||
ARG GO_VERSION=1.22.6 | ||
# Install helm (https://helm.sh/) and helm-docs (https://github.com/norwoodj/helm-docs) for generating Helm Chart reference. | ||
FROM golang:1.22.5-bookworm as helm | ||
FROM golang:${GO_VERSION}-bullseye AS helm | ||
ARG TARGETARCH | ||
ARG HELM_VER="v3.2.3" | ||
RUN curl -L "https://get.helm.sh/helm-${HELM_VER}-linux-$TARGETARCH.tar.gz" | tar zx && \ | ||
|
@@ -15,7 +15,7 @@ RUN BIN=$([ "$TARGETARCH" = "arm64" ] && echo "helm-docs_Linux_arm64" || echo "h | |
curl -L "https://github.com/norwoodj/helm-docs/releases/download/v1.11.2/$BIN.tar.gz" | tar zx && \ | ||
install -t /usr/local/bin helm-docs | ||
|
||
FROM alpine:3.20.2 as lychee | ||
FROM alpine:3.20.2 AS lychee | ||
ARG TARGETARCH | ||
ARG LYCHEE_VER="0.7.0" | ||
RUN apk add --no-cache curl && \ | ||
|
@@ -24,21 +24,21 @@ RUN apk add --no-cache curl && \ | |
mv /tmp/lychee /usr/bin/lychee && \ | ||
rm -rf "/tmp/linux-$TARGETARCH" /tmp/lychee-$LYCHEE_VER.tgz | ||
|
||
FROM alpine:3.20.2 as golangci | ||
FROM alpine:3.20.2 AS golangci | ||
RUN apk add --no-cache curl && \ | ||
cd / && \ | ||
curl -sfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s v1.55.1 | ||
|
||
FROM alpine:3.20.2 as buf | ||
FROM alpine:3.20.2 AS buf | ||
ARG TARGETOS | ||
RUN apk add --no-cache curl && \ | ||
curl -sSL "https://github.com/bufbuild/buf/releases/download/v1.4.0/buf-$TARGETOS-$(uname -m)" -o "/usr/bin/buf" && \ | ||
chmod +x "/usr/bin/buf" | ||
|
||
FROM alpine:3.20.2 as docker | ||
FROM alpine:3.20.2 AS docker | ||
RUN apk add --no-cache docker-cli docker-cli-buildx | ||
|
||
FROM golang:1.22.5-bookworm as drone | ||
FROM golang:${GO_VERSION}-bullseye AS drone | ||
ARG TARGETARCH | ||
RUN curl -L "https://github.com/drone/drone-cli/releases/download/v1.7.0/drone_linux_$TARGETARCH".tar.gz | tar zx && \ | ||
install -t /usr/local/bin drone | ||
|
@@ -48,35 +48,35 @@ RUN curl -L "https://github.com/drone/drone-cli/releases/download/v1.7.0/drone_l | |
# Error: | ||
# github.com/fatih/[email protected] requires golang.org/x/[email protected] | ||
# (not golang.org/x/[email protected] from golang.org/x/tools/cmd/goyacc@58d531046acdc757f177387bc1725bfa79895d69) | ||
FROM golang:1.22.5-bookworm as faillint | ||
FROM golang:${GO_VERSION}-bullseye AS faillint | ||
RUN GO111MODULE=on go install github.com/fatih/[email protected] | ||
RUN GO111MODULE=on go install golang.org/x/tools/cmd/[email protected] | ||
|
||
FROM golang:1.22.5-bookworm as delve | ||
FROM golang:${GO_VERSION}-bullseye AS delve | ||
RUN GO111MODULE=on go install github.com/go-delve/delve/cmd/dlv@latest | ||
|
||
# Install ghr used to push binaries and template the release | ||
# This collides with the version of go tools used in the base image, thus we install it in its own image and copy it over. | ||
FROM golang:1.22.5-bookworm as ghr | ||
FROM golang:${GO_VERSION}-bullseye AS ghr | ||
RUN GO111MODULE=on go install github.com/tcnksm/ghr@9349474 | ||
|
||
# Install nfpm (https://nfpm.goreleaser.com) for creating .deb and .rpm packages. | ||
FROM golang:1.22.5-bookworm as nfpm | ||
FROM golang:${GO_VERSION}-bullseye AS nfpm | ||
RUN GO111MODULE=on go install github.com/goreleaser/nfpm/v2/cmd/[email protected] | ||
|
||
# Install gotestsum | ||
FROM golang:1.22.5-bookworm as gotestsum | ||
FROM golang:${GO_VERSION}-bullseye AS gotestsum | ||
RUN GO111MODULE=on go install gotest.tools/[email protected] | ||
|
||
# Install tools used to compile jsonnet. | ||
FROM golang:1.22.5-bookworm as jsonnet | ||
FROM golang:${GO_VERSION}-bullseye AS jsonnet | ||
RUN GO111MODULE=on go install github.com/jsonnet-bundler/jsonnet-bundler/cmd/[email protected] | ||
RUN GO111MODULE=on go install github.com/monitoring-mixins/mixtool/cmd/mixtool@16dc166166d91e93475b86b9355a4faed2400c18 | ||
RUN GO111MODULE=on go install github.com/google/go-jsonnet/cmd/[email protected] | ||
|
||
FROM aquasec/trivy as trivy | ||
FROM aquasec/trivy AS trivy | ||
|
||
FROM golang:1.22.5-bookworm | ||
FROM golang:${GO_VERSION}-bullseye | ||
RUN apt-get update && \ | ||
apt-get install -qy \ | ||
musl gnupg ragel \ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.