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.

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