Add Vagrantfile
This commit is contained in:
parent
247e5d0351
commit
e3341fecb6
3 changed files with 43 additions and 0 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
|
@ -201,3 +201,5 @@ local.properties
|
|||
# sftp configuration file
|
||||
sftp-config.json
|
||||
|
||||
.vagrant/
|
||||
ubuntu-xenial-16.04-cloudimg-console.log
|
||||
|
|
@ -5,6 +5,15 @@ experience assumed or required. Just follow the instructions below to start
|
|||
making tests pass!
|
||||
|
||||
|
||||
### Getting Started: simpler version
|
||||
|
||||
Install Vagrant and VirtualBox
|
||||
|
||||
vagrant up
|
||||
vagrant ssh
|
||||
cd /vagrant
|
||||
lein koan run
|
||||
|
||||
### Getting Started
|
||||
|
||||
The easiest and fastest way to get the koans up and running is to [download the
|
||||
|
|
|
|||
32
Vagrantfile
vendored
Normal file
32
Vagrantfile
vendored
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
|
||||
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
|
||||
Loading…
Reference in a new issue