You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

33 lines
1.0 KiB

  1. # -*- mode: ruby -*-
  2. # vi: set ft=ruby :
  3. Vagrant.configure("2") do |config|
  4. config.vm.box = "ubuntu/trusty64"
  5. config.vm.provider "virtualbox" do |v|
  6. v.memory = 2048
  7. v.cpus = 2
  8. end
  9. config.vm.provision "shell", inline: <<-SHELL
  10. apt-get update
  11. apt-get install -y --no-install-recommends wget curl jq shellcheck bsdmainutils psmisc
  12. wget -qO- https://get.docker.com/ | sh
  13. usermod -a -G docker vagrant
  14. curl -O https://storage.googleapis.com/golang/go1.7.linux-amd64.tar.gz
  15. tar -xvf go1.7.linux-amd64.tar.gz
  16. mv go /usr/local
  17. echo 'export PATH=$PATH:/usr/local/go/bin' >> /home/vagrant/.profile
  18. mkdir -p /home/vagrant/go/bin
  19. chown -R vagrant:vagrant /home/vagrant/go
  20. echo 'export GOPATH=/home/vagrant/go' >> /home/vagrant/.profile
  21. mkdir -p /home/vagrant/go/src/github.com/tendermint
  22. ln -s /vagrant /home/vagrant/go/src/github.com/tendermint/tendermint
  23. su - vagrant -c 'curl https://glide.sh/get | sh'
  24. su - vagrant -c 'cd /vagrant/ && make get_vendor_deps && make test'
  25. SHELL
  26. end