github.com/MikeZappa87/cni@v0.8.1/Vagrantfile (about)

     1  # -*- mode: ruby -*-
     2  # vi: set ft=ruby :
     3  
     4  Vagrant.configure(2) do |config|
     5    config.vm.box = "bento/ubuntu-18.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.12.5.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/onsi/ginkgo/ginkgo
    21      go get github.com/onsi/gomega/...
    22  
    23      cd /go/src/github.com/containernetworking/cni
    24    SHELL
    25  end