-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use go 1.20.6 in 2.7 branch (#10028)
Signed-off-by: Michel Hollands <[email protected]>
- Loading branch information
1 parent
22dc65b
commit d819332
Showing
24 changed files
with
58 additions
and
58 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
FROM golang:1.19.5 as build | ||
FROM golang:1.20.6@sha256:832f2f74baa3e2b00ace688cb2fa934dffeade39f5b4c0cc8b1cff8d3fb084a0 AS builder | ||
COPY . /src/loki | ||
WORKDIR /src/loki | ||
RUN make clean && make BUILD_IN_CONTAINER=false fluent-bit-plugin | ||
|
||
FROM fluent/fluent-bit:1.8 | ||
COPY --from=build /src/loki/clients/cmd/fluent-bit/out_grafana_loki.so /fluent-bit/bin | ||
COPY --from=builder /src/loki/clients/cmd/fluent-bit/out_grafana_loki.so /fluent-bit/bin | ||
COPY clients/cmd/fluent-bit/fluent-bit.conf /fluent-bit/etc/fluent-bit.conf | ||
EXPOSE 2020 | ||
CMD ["/fluent-bit/bin/fluent-bit", "-e","/fluent-bit/bin/out_grafana_loki.so", "-c", "/fluent-bit/etc/fluent-bit.conf"] |
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
FROM golang:1.20.3-bullseye as build | ||
FROM golang:1.20.6-bullseye as build | ||
|
||
COPY . /src/loki | ||
WORKDIR /src/loki | ||
|
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
FROM golang:1.20.3-bullseye as build | ||
FROM golang:1.20.6-bullseye as build | ||
|
||
COPY . /src/loki | ||
WORKDIR /src/loki | ||
|
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
FROM golang:1.20.3 as build | ||
FROM golang:1.20.6 as build | ||
|
||
COPY . /src/loki | ||
WORKDIR /src/loki | ||
|
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
FROM golang:1.20.3 as build | ||
FROM golang:1.20.6 as build | ||
|
||
COPY . /src/loki | ||
WORKDIR /src/loki | ||
|
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
FROM golang:1.20.3 as build | ||
FROM golang:1.20.6 as build | ||
|
||
COPY . /src/loki | ||
WORKDIR /src/loki | ||
|
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
FROM golang:1.20.3 as build | ||
FROM golang:1.20.6 as build | ||
|
||
COPY . /src/loki | ||
WORKDIR /src/loki | ||
|
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
FROM golang:1.20.3 as build | ||
FROM golang:1.20.6 as build | ||
|
||
COPY . /src/loki | ||
WORKDIR /src/loki | ||
|
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 |
---|---|---|
|
@@ -5,7 +5,7 @@ | |
# See ../docs/sources/maintaining/release-loki-build-image.md | ||
|
||
# Install helm (https://helm.sh/) and helm-docs (https://github.com/norwoodj/helm-docs) for generating Helm Chart reference. | ||
FROM golang:1.20.3 as helm | ||
FROM golang:1.20.6-bullseye as helm | ||
ARG HELM_VER="v3.2.3" | ||
RUN curl -L -o /tmp/helm-$HELM_VER.tgz https://get.helm.sh/helm-${HELM_VER}-linux-amd64.tar.gz && \ | ||
tar -xz -C /tmp -f /tmp/helm-$HELM_VER.tgz && \ | ||
|
@@ -38,7 +38,7 @@ RUN apk add --no-cache docker-cli | |
# TODO this should be fixed to download and extract the specific release binary from github as we do for golangci and helm above | ||
# however we need a commit which hasn't been released yet: https://github.com/drone/drone-cli/commit/1fad337d74ca0ecf420993d9d2d7229a1c99f054 | ||
# Read the comment below regarding GO111MODULE=on and why it is necessary | ||
FROM golang:1.20.3 as drone | ||
FROM golang:1.20.6-bullseye as drone | ||
RUN curl -L https://github.com/drone/drone-cli/releases/download/v1.4.0/drone_linux_amd64.tar.gz | tar zx && \ | ||
install -t /usr/local/bin drone | ||
|
||
|
@@ -47,32 +47,32 @@ RUN curl -L https://github.com/drone/drone-cli/releases/download/v1.4.0/drone_li | |
# 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.20.3 as faillint | ||
FROM golang:1.20.6-bullseye as faillint | ||
RUN GO111MODULE=on go install github.com/fatih/[email protected] | ||
|
||
FROM golang:1.20.3 as delve | ||
FROM golang:1.20.6-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.20.3 as ghr | ||
FROM golang:1.20.6-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.20.3 as nfpm | ||
FROM golang:1.20.6-bullseye as nfpm | ||
RUN GO111MODULE=on go install github.com/goreleaser/nfpm/v2/cmd/[email protected] | ||
|
||
# Install gotestsum | ||
FROM golang:1.20.3 as gotestsum | ||
FROM golang:1.20.6-bullseye as gotestsum | ||
RUN GO111MODULE=on go install gotest.tools/[email protected] | ||
|
||
# Install tools used to compile jsonnet. | ||
FROM golang:1.20.3 as jsonnet | ||
FROM golang:1.20.6-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@bca3066 | ||
RUN GO111MODULE=on go install github.com/google/go-jsonnet/cmd/[email protected] | ||
|
||
FROM golang:1.20.3-buster | ||
FROM golang:1.20.6-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
Oops, something went wrong.