github.com/john-lin/cni@v0.6.0-rc1.0.20170712150331-b69e640cc0e2/Vagrantfile (about) 1 # -*- mode: ruby -*- 2 # vi: set ft=ruby : 3 4 Vagrant.configure(2) do |config| 5 config.vm.box = "bento/ubuntu-16.04" 6 7 config.vm.synced_folder ".", "/go/src/github.com/containernetworking/cni" 8 9 config.vm.provision "shell", inline: <<-SHELL 10 set -e -x -u 11 12 apt-get update -y || (sleep 40 && apt-get update -y) 13 apt-get install -y git 14 15 wget -qO- https://storage.googleapis.com/golang/go1.8.3.linux-amd64.tar.gz | tar -C /usr/local -xz 16 17 echo 'export GOPATH=/go; export PATH=/usr/local/go/bin:$GOPATH/bin:$PATH' >> /root/.bashrc 18 eval `tail -n1 /root/.bashrc` 19 20 go get github.com/tools/godep 21 22 cd /go/src/github.com/containernetworking/cni 23 godep restore 24 25 SHELL 26 end