forked from grafana/loki
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
23 changed files
with
56 additions
and
65 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,4 +1,4 @@ | ||
FROM golang:1.17.9-bullseye as build | ||
FROM golang:1.18.4-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.17.9-bullseye as build | ||
FROM golang:1.18.4-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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
FROM golang:1.17.9 as build | ||
FROM golang:1.18.4 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.17.9 as build | ||
FROM golang:1.18.4 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.17.9 as build | ||
FROM golang:1.18.4 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.17.9 as build | ||
FROM golang:1.18.4 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,6 +1,6 @@ | ||
module github.com/grafana/loki | ||
|
||
go 1.17 | ||
go 1.18 | ||
|
||
require ( | ||
cloud.google.com/go/bigtable v1.3.0 | ||
|
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 |
---|---|---|
|
@@ -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.17.9 as drone | ||
FROM golang:1.18.4 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,29 +47,28 @@ 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.17.9 as faillint | ||
RUN GO111MODULE=on go get github.com/fatih/faillint@v1.5.0 | ||
FROM golang:1.18.4 as faillint | ||
RUN GO111MODULE=on go install github.com/fatih/faillint@v1.10.0 | ||
|
||
FROM golang:1.17.9 as delve | ||
RUN GO111MODULE=on go get github.com/go-delve/delve/cmd/[email protected] | ||
FROM golang:1.18.4 as delve | ||
RUN GO111MODULE=on go install github.com/go-delve/delve/cmd/[email protected] | ||
|
||
# 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.17.9 as ghr | ||
RUN GO111MODULE=on go get github.com/tcnksm/ghr | ||
FROM golang:1.18.4 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.17.9 as nfpm | ||
RUN GO111MODULE=on go get github.com/goreleaser/nfpm/v2/cmd/[email protected] | ||
FROM golang:1.18.4 as nfpm | ||
RUN GO111MODULE=on go install github.com/goreleaser/nfpm/v2/cmd/[email protected] | ||
|
||
# Install tools used to compile jsonnet. | ||
FROM golang:1.17.9 as jsonnet | ||
RUN GO111MODULE=on go get \ | ||
github.com/jsonnet-bundler/jsonnet-bundler/cmd/[email protected] \ | ||
github.com/monitoring-mixins/mixtool/cmd/mixtool@bca3066 \ | ||
github.com/google/go-jsonnet/cmd/[email protected] | ||
FROM golang:1.18.4 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.17.9-buster | ||
FROM golang:1.18.4-buster | ||
RUN apt-get update && \ | ||
apt-get install -qy \ | ||
musl gnupg ragel \ | ||
|
@@ -97,15 +96,12 @@ COPY --from=jsonnet /go/bin/jsonnet /usr/bin/jsonnet | |
# If we don't force this, Go is going to default to GOPATH mode as we do not have an active project or go.mod | ||
# file for it to detect and switch to Go Modules automatically. | ||
# It's possible this can be revisited in newer versions of Go if the behavior around GOPATH vs GO111MODULES changes | ||
RUN GO111MODULE=on go get \ | ||
github.com/golang/protobuf/[email protected] \ | ||
github.com/gogo/protobuf/[email protected] \ | ||
github.com/gogo/protobuf/[email protected] \ | ||
RUN GO111MODULE=on go install github.com/golang/protobuf/[email protected] | ||
RUN GO111MODULE=on go install github.com/gogo/protobuf/[email protected] | ||
# Due to the lack of a proper release tag, we use the commit hash of | ||
# https://github.com/golang/tools/releases v0.1.7 | ||
golang.org/x/tools/cmd/goyacc@58d531046acdc757f177387bc1725bfa79895d69 \ | ||
github.com/mitchellh/gox && \ | ||
rm -rf /go/pkg /go/src | ||
RUN GO111MODULE=on go install golang.org/x/tools/cmd/goyacc@58d531046acdc757f177387bc1725bfa79895d69 | ||
RUN GO111MODULE=on go install github.com/mitchellh/gox@9f71238 && rm -rf /go/pkg /go/src | ||
ENV GOCACHE=/go/cache | ||
|
||
COPY build.sh / | ||
|
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.