Skip to content

Commit 83ca8a6

Browse files
authored
Merge pull request kubernetes-sigs#658 from figo/dockerfile
Bump default golang version to 1.12.10 to address CVE-2019-16276
2 parents 66b66fc + 8a96349 commit 83ca8a6

File tree

2 files changed

+12
-3
lines changed

2 files changed

+12
-3
lines changed

Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@
1313
# limitations under the License.
1414

1515
# Build the manager binary
16-
FROM golang:1.12.9 as builder
16+
ARG GOLANG_VERSION=golang:1.12.10
17+
FROM $GOLANG_VERSION as builder
1718
WORKDIR /workspace
1819

1920
# Run this with docker build --build_arg $(go env GOPROXY) to override the goproxy

scripts/e2e/e2e.sh

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,15 @@ start_docker() {
137137
done
138138
}
139139

140+
install_govc() {
141+
GOVC_VERSION=v0.21.0
142+
GOVC_PKG_NAME=govc_linux_amd64
143+
curl -L -O https://github.com/vmware/govmomi/releases/download/"${GOVC_VERSION}"/"${GOVC_PKG_NAME}".gz
144+
gunzip "${GOVC_PKG_NAME}".gz
145+
mv "${GOVC_PKG_NAME}" /usr/local/bin/govc
146+
chmod +x /usr/local/bin/govc
147+
}
148+
140149
on_exit() {
141150
[ "${VM_CREATED}" ] || return 0
142151
get_bootstrap_vm "${CONTEXT}"
@@ -158,8 +167,7 @@ export CAPI_VERSION=v0.2.7
158167
echo "build vSphere controller version: ${VERSION}"
159168
echo "using clusterctl version: ${CAPI_VERSION}"
160169

161-
# install_govc
162-
go get -u github.com/vmware/govmomi/govc
170+
install_govc
163171

164172
# Push new container images
165173
# TODO the `-k` flag here is a workaround until we can set GCR_KEY_FILE properly

0 commit comments

Comments
 (0)