Added bazelisk installation for ubuntu-16.04
Change-Id: I946f3cef96173f1321f5aa9bd4da2ecd16edf143
diff --git a/packer/provision/basebuild.sh b/packer/provision/basebuild.sh
index 5dc6657..d4d4e54 100644
--- a/packer/provision/basebuild.sh
+++ b/packer/provision/basebuild.sh
@@ -49,6 +49,19 @@
apt-get purge -y
apt-get autoremove -y
rm -rf /var/lib/apt/lists/*
+
+ BAZELISK_VERSION="1.4.0"
+ BAZELISK_SHA256SUM="73918095fc6ea94fa60325731412745aa5cbdd963cef1486881830158451d865"
+ curl -L -o /tmp/bazelisk https://github.com/bazelbuild/bazelisk/releases/download/v${BAZELISK_VERSION}/bazelisk-linux-amd64
+ echo "$BAZELISK_SHA256SUM /tmp/bazelisk" | sha256sum -c -
+ mv /tmp/bazelisk /usr/local/bin/bazel
+ chmod -R a+rx /usr/local/bin/bazel
+ USE_BAZEL_VERSION=1.2.1 bazel version
+ USE_BAZEL_VERSION=2.0.0 bazel version
+ USE_BAZEL_VERSION=3.0.0 bazel version
+ USE_BAZEL_VERSION=3.1.0 bazel version
+ mv ~/.cache/bazelisk /usr/local/share/
+ chmod -R a+rw /usr/local/share/bazelisk
}
all_systems() {