forked from kubevirt/kubevirt
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update kubevirt builder image to use go1.13.14
- Updated the kubevirt builder image to use go1.13.14. - We now use go modules to get all the dependencies we need. It allows us to just go get the specific version that we need instead of having to download and compile it ourselves. - Set the versions of the dependencies statically. Signed-off-by: Daniel Belenky <[email protected]> Signed-off-by: L. Pivarc <[email protected]>
- Loading branch information
Showing
258 changed files
with
32,716 additions
and
25,064 deletions.
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
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 |
---|---|---|
|
@@ -46,73 +46,42 @@ RUN wget https://services.gradle.org/distributions/gradle-6.6-bin.zip && \ | |
ENV PATH=$PATH:/opt/gradle/gradle-6.6/bin \ | ||
JAVA_HOME=/usr/lib/jvm/java-11-openjdk-11.0.8.10-2.fc31.x86_64 | ||
|
||
ENV GIMME_GO_VERSION=1.12.8 | ||
ENV GIMME_GO_VERSION=1.13.14 | ||
|
||
RUN mkdir -p /gimme && curl -sL https://raw.githubusercontent.com/travis-ci/gimme/master/gimme | HOME=/gimme bash >> /etc/profile.d/gimme.sh | ||
RUN mkdir -p /gimme && curl -sL \ | ||
https://raw.githubusercontent.com/travis-ci/gimme/master/gimme | \ | ||
HOME=/gimme bash >> /etc/profile.d/gimme.sh | ||
|
||
ENV GOPATH="/go" GOBIN="/usr/bin" | ||
ENV GOPATH="/go" GOBIN="/usr/bin" GO111MODULE="on" | ||
|
||
# Install persisten go packages | ||
RUN \ | ||
# Install persistent go packages | ||
RUN set -x && \ | ||
mkdir -p /go && \ | ||
source /etc/profile.d/gimme.sh && \ | ||
# Install goimports | ||
go get -d golang.org/x/tools/cmd/goimports && \ | ||
cd $GOPATH/src/golang.org/x/tools/cmd/goimports && \ | ||
git checkout release-branch.go1.12 && \ | ||
go install && \ | ||
# Install mvdan/sh | ||
git clone https://github.com/mvdan/sh.git $GOPATH/src/mvdan.cc/sh && \ | ||
cd $GOPATH/src/mvdan.cc/sh/cmd/shfmt && \ | ||
git checkout v2.5.0 && \ | ||
go get mvdan.cc/sh/cmd/shfmt && \ | ||
go install && \ | ||
go get -u -d k8s.io/code-generator/cmd/deepcopy-gen && \ | ||
go get -u -d k8s.io/code-generator/cmd/defaulter-gen && \ | ||
go get -u -d k8s.io/kube-openapi/cmd/openapi-gen && \ | ||
go get -u -d github.com/golang/protobuf/protoc-gen-go && \ | ||
# Install deepcopy-gen | ||
cd $GOPATH/src/k8s.io/code-generator/cmd/deepcopy-gen && \ | ||
git checkout v0.16.4 && \ | ||
go install && \ | ||
# Install defaulter-gen | ||
cd $GOPATH/src/k8s.io/code-generator/cmd/defaulter-gen && \ | ||
git checkout v0.16.4 && \ | ||
go install && \ | ||
# Install client-gen | ||
cd $GOPATH/src/k8s.io/code-generator/cmd/client-gen && \ | ||
git checkout v0.16.4 && \ | ||
go install && \ | ||
# Install openapi-gen | ||
cd $GOPATH/src/k8s.io/kube-openapi/cmd/openapi-gen && \ | ||
git checkout 30be4d16710ac61bce31eb28a01054596fe6a9f1 && \ | ||
go install && \ | ||
# Install protoc-gen-go | ||
cd $GOPATH/src/github.com/golang/protobuf/protoc-gen-go && \ | ||
git checkout 1643683e1b54a9e88ad26d98f81400c8c9d9f4f9 && \ | ||
go install && \ | ||
cd /go && \ | ||
go clean -cache -modcache -r && \ | ||
rm -rf /go && mkdir /go | ||
|
||
RUN \ | ||
mkdir -p /go && \ | ||
go get -v golang.org/x/tools/cmd/goimports@d5fe738 && \ | ||
go get -v mvdan.cc/sh/v3/cmd/[email protected] && \ | ||
go get -v k8s.io/code-generator/cmd/[email protected] && \ | ||
go get -v k8s.io/code-generator/cmd/[email protected] && \ | ||
go get -v k8s.io/kube-openapi/cmd/openapi-gen@30be4d1 && \ | ||
go get -v github.com/golang/protobuf/protoc-gen-go@1643683 && \ | ||
go get -v k8s.io/code-generator/cmd/[email protected] && \ | ||
go get -v sigs.k8s.io/controller-tools/cmd/[email protected] && \ | ||
go clean -cache -modcache | ||
|
||
RUN set -x && \ | ||
source /etc/profile.d/gimme.sh && \ | ||
go get github.com/mattn/goveralls && \ | ||
go get -u github.com/golang/mock/gomock && \ | ||
go get -u github.com/rmohr/mock/mockgen && \ | ||
go get -u github.com/rmohr/go-swagger-utils/swagger-doc && \ | ||
go get -u github.com/onsi/ginkgo/ginkgo && \ | ||
cd /go && \ | ||
go clean -cache -modcache -r && \ | ||
rm -rf /go && mkdir /go | ||
go get -v -u github.com/mattn/[email protected] && \ | ||
go get -v -u github.com/golang/mock/[email protected] && \ | ||
go get -v -u github.com/rmohr/mock/[email protected] && \ | ||
go get -v -u github.com/rmohr/go-swagger-utils/[email protected] && \ | ||
go get -v -u github.com/onsi/ginkgo/[email protected] && \ | ||
go clean -cache -modcache | ||
|
||
# TODO: remove this and the patch below after https://github.com/fvbommel/util/issues/6 got fixed | ||
COPY vbom_ml.diff /tmp/vbom_ml.diff | ||
|
||
RUN \ | ||
cd / && \ | ||
export GO111MODULE=on && \ | ||
source /etc/profile.d/gimme.sh && \ | ||
git clone https://github.com/kubernetes/test-infra.git && \ | ||
cd /test-infra && \ | ||
|
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.