-
Notifications
You must be signed in to change notification settings - Fork 806
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 golang to 1.14.4 and other build deps #2480
Merged
gouthamve
merged 15 commits into
cortexproject:master
from
gouthamve:update-build-image
Jun 17, 2020
+167
−132
Merged
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
d881036
Update golang to 1.14.2 and other build deps
gouthamve 6b350fe
Update the build-image image
gouthamve bd12f90
Make lint happy
gouthamve ad32fe2
Upgrade nodejs as well
gouthamve 161e809
Update the image with node upgrade
gouthamve 5cc3920
Make lint happy
gouthamve e262ea5
Update bbolt and build-image
gouthamve 47a63df
Clean up vendor
gouthamve a334435
Bump to 1.14.4
gouthamve 7607606
Update to golang 14.4
gouthamve ad5f9d9
Update to even newer deps
gouthamve 503edb1
Update circle config
gouthamve 96d58b0
Remove mod vendor from Makefile
gouthamve ce3bc5f
Upgrade to Node 14
gouthamve 910ed01
Update circle config
gouthamve File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,27 @@ | ||
FROM golang:1.13.3-stretch | ||
FROM golang:1.14.4-stretch | ||
RUN apt-get update && apt-get install -y curl python-requests python-yaml file jq unzip protobuf-compiler libprotobuf-dev && \ | ||
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* | ||
RUN curl -sL https://deb.nodesource.com/setup_6.x | sh - | ||
RUN curl -sL https://deb.nodesource.com/setup_14.x | bash - | ||
RUN apt-get install -y nodejs npm && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* | ||
RUN npm install -g postcss-cli autoprefixer | ||
ENV HUGO_VERSION=v0.59.1 | ||
ENV HUGO_VERSION=v0.72.0 | ||
RUN git clone https://github.com/gohugoio/hugo.git --branch ${HUGO_VERSION} --depth 1 && \ | ||
cd hugo && go install --tags extended && cd ../ && \ | ||
rm -rf hugo/ && rm -rf /go/pkg /go/src | ||
RUN curl -fsSLo shfmt https://github.com/mvdan/sh/releases/download/v1.3.0/shfmt_v1.3.0_linux_amd64 && \ | ||
echo "b1925c2c405458811f0c227266402cf1868b4de529f114722c2e3a5af4ac7bb2 shfmt" | sha256sum -c && \ | ||
ENV SHFMT_VERSION=3.1.0 | ||
RUN curl -fsSLo shfmt https://github.com/mvdan/sh/releases/download/v${SHFMT_VERSION}/shfmt_v${SHFMT_VERSION}_linux_amd64 && \ | ||
echo "cb91ea08a075a2f96b5230f09b4e211b7c108b1c97603caceb48d117d2ac5508 shfmt" | sha256sum -c && \ | ||
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.21.0 | ||
RUN curl -sfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh| sh -s -- -b /usr/bin v1.27.0 | ||
RUN GO111MODULE=on go get -tags netgo \ | ||
github.com/client9/misspell/cmd/[email protected] \ | ||
github.com/golang/protobuf/[email protected] \ | ||
github.com/gogo/protobuf/[email protected] \ | ||
github.com/gogo/protobuf/[email protected] && \ | ||
rm -rf /go/pkg /go/src | ||
|
||
ENV KUBEVAL_VERSION=0.14.0 | ||
ENV KUBEVAL_VERSION=0.15.0 | ||
RUN curl -Ls https://github.com/instrumenta/kubeval/releases/download/${KUBEVAL_VERSION}/kubeval-linux-amd64.tar.gz -o /tmp/kubeval-linux-amd64.tar.gz && \ | ||
tar -xf /tmp/kubeval-linux-amd64.tar.gz -C /tmp && \ | ||
cp /tmp/kubeval /usr/local/bin && \ | ||
|
@@ -32,7 +33,7 @@ ENV GOCACHE=/go/cache | |
ENTRYPOINT ["/build.sh"] | ||
|
||
# Install faillint used to lint go imports in CI. | ||
ENV FAILLINT_VERSION=1.2.0 | ||
ENV FAILLINT_VERSION=1.5.0 | ||
RUN GO111MODULE=on go get github.com/fatih/faillint@v${FAILLINT_VERSION} && \ | ||
rm -rf /go/pkg /go/src | ||
|
||
|
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Who does use/need
shfmt
?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.
Not sure
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.
Will test and send another PR. Don't want to block this.