From 1443187d8896b2cd4c3dd55441fee57f08d49e8f Mon Sep 17 00:00:00 2001 From: George Lestaris Date: Wed, 26 Oct 2016 12:19:59 +0100 Subject: [PATCH] Use grootfs from local repo preferably Signed-off-by: Tiago Scolari --- playground/Vagrantfile | 7 ++++--- playground/provision.sh | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/playground/Vagrantfile b/playground/Vagrantfile index 876b3d7eb..84bc4e620 100644 --- a/playground/Vagrantfile +++ b/playground/Vagrantfile @@ -1,6 +1,7 @@ # -*- mode: ruby -*- # vi: set ft=ruby : -Vagrant.configure("2") do |config| - config.vm.box = "ubuntu/xenial64" - config.vm.provision "shell", path: "provision.sh" +Vagrant.configure('2') do |config| + config.vm.box = 'ubuntu/xenial64' + config.vm.provision 'shell', path: 'provision.sh' + config.vm.synced_folder '../', '/root/go/src/code.cloudfoundry.org/grootfs' end diff --git a/playground/provision.sh b/playground/provision.sh index 1e3c3a397..506d054f3 100644 --- a/playground/provision.sh +++ b/playground/provision.sh @@ -57,7 +57,7 @@ install_groot() { go get github.com/fouralarmfire/grootsay # Clone them all - go get code.cloudfoundry.org/grootfs + [ ! -d $HOME/go/src/code.cloudfoundry.or/grootfs ] && go get code.cloudfoundry.org/grootfs go get code.cloudfoundry.org/grootfs-bench # Build grootfs and move binaries around