aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools/gce
diff options
context:
space:
mode:
authorGravatar Alexander Polcyn <apolcyn@google.com>2016-10-07 11:00:45 -0700
committerGravatar Alexander Polcyn <apolcyn@google.com>2016-10-07 11:06:29 -0700
commitc4fb2e782d841df4e402c5c8825f01853c8d1b1b (patch)
treef569a2d2a3bac51df72444203dd16cbc07a3c7c3 /tools/gce
parent9efab2176a541a61546230ac64be305f3b810bed (diff)
update go in linux perf worker init script
Diffstat (limited to 'tools/gce')
-rwxr-xr-xtools/gce/linux_performance_worker_init.sh11
1 files changed, 10 insertions, 1 deletions
diff --git a/tools/gce/linux_performance_worker_init.sh b/tools/gce/linux_performance_worker_init.sh
index ea80d74bdf..6fc3035c10 100755
--- a/tools/gce/linux_performance_worker_init.sh
+++ b/tools/gce/linux_performance_worker_init.sh
@@ -128,4 +128,13 @@ gem install bundler
# Java dependencies - nothing as we already have Java JDK 8
# Go dependencies
-sudo apt-get install -y golang-go
+# Currently, the golang package available via apt-get doesn't have the latest go.
+# Following go install instructions from https://golang.org/doc/install
+GO_VERSION=1.7.1
+OS=linux
+ARCH=amd64
+curl -O https://storage.googleapis.com/golang/go${GO_VERSION}.${OS}-${ARCH}.tar.gz
+sudo tar -C /usr/local -xzf go$GO_VERSION.$OS-$ARCH.tar.gz
+# Put go on the PATH, keep the usual installation dir
+sudo ln -s /usr/local/go/bin/go /usr/bin/go
+rm go$GO_VERSION.$OS-$ARCH.tar.gz