aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPéter Szilágyi <peterke@gmail.com>2016-02-23 19:48:32 +0800
committerPéter Szilágyi <peterke@gmail.com>2016-02-23 19:48:32 +0800
commit7841f0cc09885dce408e2a32bab36b833ea896b6 (patch)
tree71fd5161a79ac9c6ea1a9c1ef3c135219e250b97
parentb57a3f154f5a202eb724cd04aac4b7b23a244488 (diff)
parent3ab1fb021550655e6a97f6c10383b2bfec94e291 (diff)
downloadgo-tangerine-7841f0cc09885dce408e2a32bab36b833ea896b6.tar
go-tangerine-7841f0cc09885dce408e2a32bab36b833ea896b6.tar.gz
go-tangerine-7841f0cc09885dce408e2a32bab36b833ea896b6.tar.bz2
go-tangerine-7841f0cc09885dce408e2a32bab36b833ea896b6.tar.lz
go-tangerine-7841f0cc09885dce408e2a32bab36b833ea896b6.tar.xz
go-tangerine-7841f0cc09885dce408e2a32bab36b833ea896b6.tar.zst
go-tangerine-7841f0cc09885dce408e2a32bab36b833ea896b6.zip
Merge pull request #2147 from prasanna/add-vagrantfile
Added Vagrantfile so that developers can spin up a VM to build geth
-rw-r--r--.gitignore2
-rw-r--r--containers/vagrant/Vagrantfile29
2 files changed, 31 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index 3b34d32c2..e8e10db2f 100644
--- a/.gitignore
+++ b/.gitignore
@@ -35,3 +35,5 @@ cmd/mist/assets/ext/ethereum.js/
profile.tmp
profile.cov
+# vagrant
+.vagrant
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