From cd1b45311020f54048eb52f3366dda952908f9eb Mon Sep 17 00:00:00 2001 From: Chelsea Holland Komlo Date: Tue, 31 Jul 2018 15:25:48 -0400 Subject: [PATCH] bootstrap vagrant development environment with protoc --- Vagrantfile | 4 ++++ scripts/vagrant-linux-protoc.sh | 8 ++++++++ 2 files changed, 12 insertions(+) create mode 100755 scripts/vagrant-linux-protoc.sh diff --git a/Vagrantfile b/Vagrantfile index 36a44e44f..b3b9a1125 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -136,6 +136,10 @@ def configureLinuxProvisioners(vmCfg) privileged: true, path: './scripts/vagrant-linux-priv-rkt.sh' + vmCfg.vm.provision "shell", + privileged: true, + path: './scripts/vagrant-linux-protoc.sh' + vmCfg.vm.provision "shell", privileged: false, path: './scripts/vagrant-linux-priv-ui.sh' diff --git a/scripts/vagrant-linux-protoc.sh b/scripts/vagrant-linux-protoc.sh new file mode 100755 index 000000000..dc04c3583 --- /dev/null +++ b/scripts/vagrant-linux-protoc.sh @@ -0,0 +1,8 @@ +#!/usr/bin/env bash + +# set up protoc so that we can use it for protobuf generation +PROTOC_ZIP=protoc-3.3.0-osx-x86_64.zip +curl -OL https://github.com/google/protobuf/releases/download/v3.3.0/$PROTOC_ZIP +sudo unzip -o $PROTOC_ZIP -d /usr/local bin/protoc +rm -f $PROTOC_ZIP +