-
Notifications
You must be signed in to change notification settings - Fork 487
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* loki.source.api: fix a bug where structured metadata is not passed downstream (#6508) * Update build image to Go 1.22.1 (#6650) * Upgrade Go to 1.22.1 (#6646) * Upgrade Go to 1.22.1 * update build images * Attempt to fix main: separate clean in windows docker images (#6671) * Change git operations from fetch to pull (#6668) * Update to using FETCH_HEAD since we are using FETCH which doesnt update HEAD. * Update to using FETCH_HEAD since we are using FETCH which doesnt update HEAD. * Use pull and not fetch * add comments * fix linting * Update CHANGELOG.md Co-authored-by: Robert Fratto <[email protected]> --------- Co-authored-by: Robert Fratto <[email protected]> --------- Co-authored-by: Mark Motliuk <[email protected]> Co-authored-by: mattdurham <[email protected]> Co-authored-by: Robert Fratto <[email protected]>
- Loading branch information
1 parent
26e9071
commit 43a0589
Showing
21 changed files
with
237 additions
and
98 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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
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 grafana/agent-build-image:0.33.0-windows as builder | ||
FROM grafana/agent-build-image:0.40.2-windows as builder | ||
ARG VERSION | ||
ARG RELEASE_BUILD=1 | ||
|
||
|
@@ -10,7 +10,12 @@ SHELL ["cmd", "/S", "/C"] | |
# Creating new layers can be really slow on Windows so we clean up any caches | ||
# we can before moving on to the next step. | ||
RUN ""C:\Program Files\git\bin\bash.exe" -c "RELEASE_BUILD=${RELEASE_BUILD} VERSION=${VERSION} make generate-ui && rm -rf web/ui/node_modules && yarn cache clean --all"" | ||
RUN ""C:\Program Files\git\bin\bash.exe" -c "RELEASE_BUILD=${RELEASE_BUILD} VERSION=${VERSION} GO_TAGS='builtinassets' make agent && go clean -cache -modcache"" | ||
|
||
RUN ""C:\Program Files\git\bin\bash.exe" -c "RELEASE_BUILD=${RELEASE_BUILD} VERSION=${VERSION} GO_TAGS='builtinassets' make agent"" | ||
# In this case, we're separating the clean command from make agent to avoid an issue where access to some mod cache | ||
# files is denied immediately after make agent, for example: | ||
# "go: remove C:\go\pkg\mod\golang.org\[email protected]\bin\go.exe: Access is denied." | ||
RUN ""C:\Program Files\git\bin\bash.exe" -c "go clean -cache -modcache"" | ||
|
||
# Use the smallest container possible for the final image | ||
FROM mcr.microsoft.com/windows/nanoserver:1809 | ||
|
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 grafana/agent-build-image:0.33.0-windows as builder | ||
FROM grafana/agent-build-image:0.40.2-windows as builder | ||
ARG VERSION | ||
ARG RELEASE_BUILD=1 | ||
|
||
|
@@ -7,9 +7,11 @@ WORKDIR /src/agent | |
|
||
SHELL ["cmd", "/S", "/C"] | ||
|
||
# Creating new layers can be really slow on Windows so we clean up any caches | ||
# we can before moving on to the next step. | ||
RUN ""C:\Program Files\git\bin\bash.exe" -c "RELEASE_BUILD=${RELEASE_BUILD} VERSION=${VERSION} make agentctl && go clean -cache -modcache"" | ||
RUN ""C:\Program Files\git\bin\bash.exe" -c "RELEASE_BUILD=${RELEASE_BUILD} VERSION=${VERSION} make agentctl"" | ||
# We're separating the clean command from make agent to avoid an issue where access to some mod cache | ||
# files is denied immediately after make agentctl, for example: | ||
# "go: remove C:\go\pkg\mod\golang.org\[email protected]\bin\go.exe: Access is denied." | ||
RUN ""C:\Program Files\git\bin\bash.exe" -c "go clean -cache -modcache"" | ||
|
||
# Use the smallest container possible for the final image | ||
FROM mcr.microsoft.com/windows/nanoserver:1809 | ||
|
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,6 +1,6 @@ | ||
module github.com/grafana/agent | ||
|
||
go 1.21.0 | ||
go 1.22.1 | ||
|
||
require ( | ||
cloud.google.com/go/pubsub v1.33.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
FROM golang:1.21 as build | ||
FROM golang:1.22.1 as build | ||
WORKDIR /app/ | ||
COPY go.mod go.sum ./ | ||
RUN go mod download | ||
|
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.21 as build | ||
FROM golang:1.22.1 as build | ||
WORKDIR /app/ | ||
COPY go.mod go.sum ./ | ||
RUN go mod download | ||
|
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.