Added Vagrant support (#123)
This makes installation easier, esp for those that do not know the toolchain.
This commit is contained in:
committed by
Colin Jones
parent
247e5d0351
commit
a3fb3b5bc8
31
Vagrantfile
vendored
Normal file
31
Vagrantfile
vendored
Normal file
@@ -0,0 +1,31 @@
|
||||
Vagrant.configure("2") do |config|
|
||||
config.vm.box = "ubuntu/xenial64"
|
||||
|
||||
config.vm.network "private_network", ip: "192.168.33.33"
|
||||
|
||||
config.vm.provider "virtualbox" do |vb|
|
||||
vb.memory = "1024"
|
||||
end
|
||||
|
||||
config.vm.provision "shell", inline: <<-SHELL
|
||||
set -x
|
||||
|
||||
#apt-get update
|
||||
#apt-get upgrade -y
|
||||
apt-get install -y openjdk-8-jdk
|
||||
SHELL
|
||||
|
||||
config.vm.provision "shell", privileged: false, inline: <<-SHELL
|
||||
pwd
|
||||
mkdir bin
|
||||
echo "PATH=\$PATH:~/bin" >> .bashrc
|
||||
|
||||
cd bin
|
||||
wget https://raw.githubusercontent.com/technomancy/leiningen/stable/bin/lein
|
||||
chmod +x lein
|
||||
./lein
|
||||
|
||||
cd /vagrant
|
||||
~/bin/lein deps
|
||||
SHELL
|
||||
end
|
Reference in New Issue
Block a user