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.

38 lines
1.2 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 = 4096
  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. apt-get autoremove -y
  15. curl -O https://storage.googleapis.com/golang/go1.8.linux-amd64.tar.gz
  16. tar -xvf go1.8.linux-amd64.tar.gz
  17. rm -rf /usr/local/go
  18. mv go /usr/local
  19. rm -f go1.8.linux-amd64.tar.gz
  20. mkdir -p /home/vagrant/go/bin
  21. echo 'export PATH=$PATH:/usr/local/go/bin:/home/vagrant/go/bin' >> /home/vagrant/.bash_profile
  22. echo 'export GOPATH=/home/vagrant/go' >> /home/vagrant/.bash_profile
  23. echo 'export LC_ALL=en_US.UTF-8' >> /home/vagrant/.bash_profile
  24. mkdir -p /home/vagrant/go/src/github.com/tendermint
  25. ln -s /vagrant /home/vagrant/go/src/github.com/tendermint/tendermint
  26. chown -R vagrant:vagrant /home/vagrant/go
  27. su - vagrant -c 'cd /home/vagrant/go/src/github.com/tendermint/tendermint && make get_vendor_deps'
  28. SHELL
  29. end