aboutsummaryrefslogtreecommitdiffstats
path: root/containers/vagrant/Vagrantfile
blob: 5d263eb765b427a05fd7033c24b47ef3661a17df (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# -*- mode: ruby -*-
# vi: set ft=ruby :

Vagrant.configure(2) do |config|
  config.vm.box = "ubuntu/trusty64"

  config.vm.provider "virtualbox" do |vb|
    vb.memory = "2048"
  end

  config.vm.synced_folder "../../", "/home/vagrant/go/src/github.com/ethereum/go-ethereum"
  config.vm.synced_folder ".", "/vagrant", disabled: true

  config.vm.provision "shell", inline: <<-SHELL
    sudo apt-get install software-properties-common
    sudo add-apt-repository -y ppa:ethereum/ethereum
    sudo add-apt-repository -y ppa:ethereum/ethereum-dev
    sudo apt-get update

    sudo apt-get install -y build-essential golang git-all

    GOPATH=/home/vagrant/go go get github.com/tools/godep

    sudo chown -R vagrant:vagrant ~vagrant/go

    echo "export GOPATH=/home/vagrant/go" >> ~vagrant/.bashrc
    echo "export PATH=\\\$PATH:\\\$GOPATH/bin:/usr/local/go/bin" >> ~vagrant/.bashrc
  SHELL
end