Skip to content

Instantly share code, notes, and snippets.

@ramilexe
Created June 7, 2017 08:10
Show Gist options
  • Save ramilexe/85e8e14155dc0781efdb43aa0bb6a474 to your computer and use it in GitHub Desktop.
Save ramilexe/85e8e14155dc0781efdb43aa0bb6a474 to your computer and use it in GitHub Desktop.
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
version = "1.8"
locale = "en_GB.UTF.8"
config.vm.box = "ubuntu/trusty64"
#config.vm.synced_folder "/media/ramil/42e0c4a4-705a-4173-a23b-65c126e2acd21/srv/ethermint/src/github.com/tendermint/ethermint", "/home/vagrant/go/src/github.com/tendermint/ethermint"
# setup
config.vm.provision :shell, :inline => "apt-get update --fix-missing"
config.vm.provision :shell, :inline => "apt-get install -y --no-install-recommends curl git"
# go-lang
config.vm.provision :shell, :inline => "curl -O https://storage.googleapis.com/golang/go#{version}.linux-amd64.tar.gz"
config.vm.provision :shell, :inline => "mkdir -p /tmp/go"
config.vm.provision :shell, :inline => "tar -xvf go#{version}.linux-amd64.tar.gz -C /tmp/go"
config.vm.provision :shell, :inline => "rm -rf /usr/local/go"
config.vm.provision :shell, :inline => "mv /tmp/go/go /usr/local"
config.vm.provision :shell, :inline => "rm -f go#{version}.linux-amd64.tar.gz"
config.vm.provision :shell, :inline => "mkdir -p /home/vagrant/go/bin"
config.vm.provision :shell, :inline => "echo 'export PATH=$PATH:/usr/local/go/bin:/home/vagrant/go/bin' >> /home/vagrant/.bash_profile"
config.vm.provision :shell, :inline => "echo 'export GOPATH=/home/vagrant/go' >> /home/vagrant/.bash_profile"
config.vm.provision :shell, :inline => "echo 'export LC_ALL=#{locale}' >> /home/vagrant/.bash_profile"
# setup
config.vm.provision :shell, :inline => "apt-get autoremove -y"
# ethermint
config.vm.provision :shell, :inline => "chown -R vagrant:vagrant /home/vagrant/go"
#config.vm.provision :shell, :inline => "su - vagrant -c 'cd /home/vagrant/go/src/github.com/tendermint/ethermint && make get_vendor_deps'"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment