Update Dockerfile - #5159
Conversation
Signed-off-by: mehrdadbn9 <[email protected]>
|
Can u update the changelog? |
|
@mehrdadbn9 I lied when I told you that all you need to do is update the Dockerfile :) there are few more steps involved. I have push a build image using the change in this PR (this step can only be done by maintainers). The new build image is Can you please follow step 5 in https://cortexmetrics.io/docs/contributing/how-to-update-the-build-image/ to have the GitHub workflow files and Makefile updated? Reference commit: ddc56a0 Once you update this PR with the changes, the approval workflow will let us know if the new build image is ready to go or not. |
Signed-off-by: Alvin Lin <[email protected]>
Signed-off-by: Alvin Lin <[email protected]>
Signed-off-by: Alvin Lin <[email protected]>
Signed-off-by: Alvin Lin <[email protected]>
Signed-off-by: Alvin Lin <[email protected]>
Signed-off-by: Alvin Lin <[email protected]>
Signed-off-by: Alvin Lin <[email protected]>
Signed-off-by: Alvin Lin <[email protected]>
Signed-off-by: Alvin Lin <[email protected]>
Signed-off-by: Alvin Lin <[email protected]>
Signed-off-by: Alvin Lin <[email protected]>
Signed-off-by: Alvin Lin <[email protected]>
Signed-off-by: Alvin Lin <[email protected]>
|
Sorry for the large amount of commits. Along the way of upgrade Go Lang I had to upgrade dependencies and fix bunch of issues. But, build finally works. |
| mv shfmt /usr/bin | ||
|
|
||
| RUN curl -sfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh| sh -s -- -b /usr/bin v1.48.0 | ||
| RUN curl -sfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh| sh -s -- -b /usr/bin v1.51.2 |
There was a problem hiding this comment.
Reason for upgrading the version here is because the older version times out while running linter. However, the new version flagged few errors which I fixed/suppressed the in this PR.
Signed-off-by: Alvin Lin <[email protected]>
| - requires_docker | ||
| - integration_alertmanager | ||
| - integration_backward_compatibility | ||
| - integration_memberlist | ||
| - integration_querier | ||
| - integration_ruler |
There was a problem hiding this comment.
thanks for fixing my linting bug :P. We should test lint on these yamls
There was a problem hiding this comment.
Oh I didn't fix it ... my IDE does it for me ;)
| uses: actions/setup-go@v2 | ||
| with: | ||
| go-version: 1.19.x | ||
| go-version: 1.20.1 |
Co-authored-by: Friedrich Gonzalez <[email protected]> Signed-off-by: Alvin Lin <[email protected]>
Co-authored-by: Friedrich Gonzalez <[email protected]> Signed-off-by: Alvin Lin <[email protected]>
Co-authored-by: Friedrich Gonzalez <[email protected]> Signed-off-by: Alvin Lin <[email protected]>
Co-authored-by: Friedrich Gonzalez <[email protected]> Signed-off-by: Alvin Lin <[email protected]>
Co-authored-by: Friedrich Gonzalez <[email protected]> Signed-off-by: Alvin Lin <[email protected]>
* Update Dockerfile to upgrade Go runtime version. Signed-off-by: mehrdadbn9 <[email protected]> Signed-off-by: Alvin Lin <[email protected]> Signed-off-by: Alvin Lin <[email protected]> Co-authored-by: Alvin Lin <[email protected]> Co-authored-by: Alvin Lin <[email protected]> Co-authored-by: Friedrich Gonzalez <[email protected]> Signed-off-by: Alex Le <[email protected]>
What this PR does:
Upgrade cortexto use go 1.20
Which issue(s) this PR fixes:
Fixes #5147
Checklist
CHANGELOG.mdupdated - the order of entries should be[CHANGE],[FEATURE],[ENHANCEMENT],[BUGFIX]