aboutsummaryrefslogtreecommitdiffstats
path: root/containers
diff options
context:
space:
mode:
authorPrasanna Pendse <prasanna.pendse@gmail.com>2016-01-24 10:39:44 +0800
committerPrasanna Pendse <prasanna.pendse@gmail.com>2016-02-15 10:48:35 +0800
commit3ab1fb021550655e6a97f6c10383b2bfec94e291 (patch)
treef4d2307cefb886a8bc49b55f946a4bface886521 /containers
parent4f28c5b69d652e12adf8a88f526f459a492e159e (diff)
downloadgo-tangerine-3ab1fb021550655e6a97f6c10383b2bfec94e291.tar.gz
go-tangerine-3ab1fb021550655e6a97f6c10383b2bfec94e291.tar.zst
go-tangerine-3ab1fb021550655e6a97f6c10383b2bfec94e291.zip
Added Vagrantfile so that developers can spin up a VM to build geth
Diffstat (limited to 'containers')
-rw-r--r--containers/vagrant/Vagrantfile29
1 files changed, 29 insertions, 0 deletions
diff --git a/containers/vagrant/Vagrantfile b/containers/vagrant/Vagrantfile
new file mode 100644
index 000000000..5d263eb76
--- /dev/null
+++ b/containers/vagrant/Vagrantfile
@@ -0,0 +1,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