-
Notifications
You must be signed in to change notification settings - Fork 816
Update golang to 1.14.4 and other build deps #2480
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
Changes from 12 commits
d881036
6b350fe
bd12f90
ad32fe2
161e809
5cc3920
e262ea5
47a63df
a334435
7607606
ad5f9d9
503edb1
96d58b0
ce3bc5f
910ed01
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 |
---|---|---|
@@ -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_13.x | sh - | ||
gouthamve marked this conversation as resolved.
Show resolved
Hide resolved
|
||
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 | ||
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. Who does use/need 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. Not sure 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. Will test and send another PR. Don't want to block this. |
||
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 | ||
|
||
|
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.
Uh oh!
There was an error while loading. Please reload this page.