File tree 2 files changed +12
-3
lines changed
2 files changed +12
-3
lines changed Original file line number Diff line number Diff line change 13
13
# limitations under the License.
14
14
15
15
# 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
17
18
WORKDIR /workspace
18
19
19
20
# Run this with docker build --build_arg $(go env GOPROXY) to override the goproxy
Original file line number Diff line number Diff line change @@ -137,6 +137,15 @@ start_docker() {
137
137
done
138
138
}
139
139
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
+
140
149
on_exit () {
141
150
[ " ${VM_CREATED} " ] || return 0
142
151
get_bootstrap_vm " ${CONTEXT} "
@@ -158,8 +167,7 @@ export CAPI_VERSION=v0.2.7
158
167
echo " build vSphere controller version: ${VERSION} "
159
168
echo " using clusterctl version: ${CAPI_VERSION} "
160
169
161
- # install_govc
162
- go get -u github.com/vmware/govmomi/govc
170
+ install_govc
163
171
164
172
# Push new container images
165
173
# TODO the `-k` flag here is a workaround until we can set GCR_KEY_FILE properly
You can’t perform that action at this time.
0 commit comments