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.

36 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 = 3072
  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.7.linux-amd64.tar.gz
  16. tar -xvf go1.7.linux-amd64.tar.gz
  17. mv -f go /usr/local
  18. rm -f go1.7.linux-amd64.tar.gz
  19. mkdir -p /home/vagrant/go/bin
  20. chown -R vagrant:vagrant /home/vagrant/go
  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. su - vagrant -c 'cd /home/vagrant/go/src/github.com/tendermint/tendermint && make get_vendor_deps'
  27. SHELL
  28. end