-
Notifications
You must be signed in to change notification settings - Fork 820
Update Dockerfile #5159
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update Dockerfile #5159
Changes from all commits
cf456ab
e6945e0
e59c0bc
da8c79f
e0201fd
9b4c855
c86be3f
0d34ff0
35481f7
3208866
d624428
fa82ca1
4573215
a36d0a5
483669e
5430134
91bca4d
b815b5d
a397947
a755b3b
8cdba37
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,10 +11,15 @@ jobs: | |
lint: | ||
runs-on: ubuntu-20.04 | ||
container: | ||
image: quay.io/cortexproject/build-image:upgrade-to-go1.19.3-e8b98ddc0 | ||
image: quay.io/cortexproject/build-image:upgrade-to-go1.20.1-pr-5159 | ||
steps: | ||
- name: Checkout Repo | ||
uses: actions/checkout@v2 | ||
- name: Setup Git safe.directory | ||
run: | | ||
echo "this step is needed because when running in container, actions/checkout does not set safe.directory effectively." | ||
echo "See https://github.com/actions/runner/issues/2033. We should use --system instead of --global" | ||
git config --system --add safe.directory $GITHUB_WORKSPACE | ||
# Commands in the Makefile are hardcoded with an assumed file structure of the CI container | ||
# Symlink ensures paths specified in previous commands don’t break | ||
- name: Sym Link Expected Path to Workspace | ||
|
@@ -35,10 +40,15 @@ jobs: | |
test: | ||
runs-on: ubuntu-20.04 | ||
container: | ||
image: quay.io/cortexproject/build-image:upgrade-to-go1.19.3-e8b98ddc0 | ||
image: quay.io/cortexproject/build-image:upgrade-to-go1.20.1-pr-5159 | ||
steps: | ||
- name: Checkout Repo | ||
uses: actions/checkout@v2 | ||
- name: Setup Git safe.directory | ||
run: | | ||
echo "this step is needed because when running in container, actions/checkout does not set safe.directory effectively." | ||
echo "See https://github.com/actions/runner/issues/2033. We should use --system instead of --global" | ||
git config --system --add safe.directory $GITHUB_WORKSPACE | ||
- name: Sym Link Expected Path to Workspace | ||
run: | | ||
mkdir -p /go/src/github.com/cortexproject/cortex | ||
|
@@ -49,10 +59,15 @@ jobs: | |
build: | ||
runs-on: ubuntu-20.04 | ||
container: | ||
image: quay.io/cortexproject/build-image:upgrade-to-go1.19.3-e8b98ddc0 | ||
image: quay.io/cortexproject/build-image:upgrade-to-go1.20.1-pr-5159 | ||
steps: | ||
- name: Checkout Repo | ||
uses: actions/checkout@v2 | ||
- name: Setup Git safe.directory | ||
run: | | ||
echo "this step is needed because when running in container, actions/checkout does not set safe.directory effectively." | ||
echo "See https://github.com/actions/runner/issues/2033. We should use --system instead of --global" | ||
git config --system --add safe.directory $GITHUB_WORKSPACE | ||
- name: Install Docker Client | ||
run: ./.github/workflows/scripts/install-docker.sh | ||
- name: Sym Link Expected Path to Workspace | ||
|
@@ -92,17 +107,17 @@ jobs: | |
fail-fast: false | ||
matrix: | ||
tags: | ||
- requires_docker | ||
- integration_alertmanager | ||
- integration_backward_compatibility | ||
- integration_memberlist | ||
- integration_querier | ||
- integration_ruler | ||
- requires_docker | ||
- integration_alertmanager | ||
- integration_backward_compatibility | ||
- integration_memberlist | ||
- integration_querier | ||
- integration_ruler | ||
steps: | ||
- name: Upgrade golang | ||
uses: actions/setup-go@v2 | ||
with: | ||
go-version: 1.19.x | ||
go-version: 1.20.1 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 👍 More specific is better |
||
- name: Checkout Repo | ||
uses: actions/checkout@v2 | ||
- name: Install Docker Client | ||
|
@@ -173,20 +188,25 @@ jobs: | |
run: | | ||
touch build-image/.uptodate | ||
MIGRATIONS_DIR=$(pwd)/cmd/cortex/migrations | ||
make BUILD_IMAGE=quay.io/cortexproject/build-image:upgrade-to-go1.19.3-e8b98ddc0 TTY='' configs-integration-test | ||
make BUILD_IMAGE=quay.io/cortexproject/build-image:upgrade-to-go1.20.1-pr-5159 TTY='' configs-integration-test | ||
|
||
deploy_website: | ||
needs: [build, test] | ||
if: (github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/')) && github.repository == 'cortexproject/cortex' | ||
runs-on: ubuntu-20.04 | ||
container: | ||
image: quay.io/cortexproject/build-image:upgrade-to-go1.19.3-e8b98ddc0 | ||
image: quay.io/cortexproject/build-image:upgrade-to-go1.20.1-pr-5159 | ||
steps: | ||
- name: Checkout Repo | ||
uses: actions/checkout@v2 | ||
with: | ||
# web-deploy script expects repo to be cloned with ssh for some commands to work | ||
ssh-key: ${{ secrets.WEBSITE_DEPLOY_SSH_PRIVATE_KEY }} | ||
- name: Setup Git safe.directory | ||
run: | | ||
echo "this step is needed because when running in container, actions/checkout does not set safe.directory effectively." | ||
echo "See https://github.com/actions/runner/issues/2033. We should use --system instead of --global" | ||
git config --system --add safe.directory $GITHUB_WORKSPACE | ||
- name: Sym Link Expected Path to Workspace | ||
run: | | ||
mkdir -p /go/src/github.com/cortexproject/cortex | ||
|
@@ -217,10 +237,15 @@ jobs: | |
if: (github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/')) && github.repository == 'cortexproject/cortex' | ||
runs-on: ubuntu-20.04 | ||
container: | ||
image: quay.io/cortexproject/build-image:upgrade-to-go1.19.3-e8b98ddc0 | ||
image: quay.io/cortexproject/build-image:upgrade-to-go1.20.1-pr-5159 | ||
steps: | ||
- name: Checkout Repo | ||
uses: actions/checkout@v2 | ||
- name: Setup Git safe.directory | ||
run: | | ||
echo "this step is needed because when running in container, actions/checkout does not set safe.directory effectively." | ||
echo "See https://github.com/actions/runner/issues/2033. We should use --system instead of --global" | ||
git config --system --add safe.directory $GITHUB_WORKSPACE | ||
- name: Install Docker Client | ||
run: ./.github/workflows/scripts/install-docker.sh | ||
- name: Sym link Expected Path to Workspace | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
FROM golang:1.19.3-buster | ||
FROM golang:1.20.1-buster | ||
ARG goproxyValue | ||
ENV GOPROXY=${goproxyValue} | ||
RUN apt-get update && apt-get install -y curl python-requests python-yaml file jq unzip protobuf-compiler libprotobuf-dev && \ | ||
|
@@ -23,7 +23,7 @@ RUN GOARCH=$(go env GOARCH) && \ | |
chmod +x shfmt && \ | ||
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. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 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. |
||
|
||
ENV HUGO_VERSION=v0.101.0 | ||
RUN go install github.com/client9/misspell/cmd/misspell@v0.3.4 &&\ | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks for fixing my linting bug :P. We should test lint on these yamls
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh I didn't fix it ... my IDE does it for me ;)