diff --git a/.gitignore b/.gitignore index 733fa44..3c1d42c 100644 --- a/.gitignore +++ b/.gitignore @@ -201,3 +201,5 @@ local.properties # sftp configuration file sftp-config.json +.vagrant/ +ubuntu-xenial-16.04-cloudimg-console.log \ No newline at end of file diff --git a/README.md b/README.md index 3d0f37c..32b31f0 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/Vagrantfile b/Vagrantfile new file mode 100644 index 0000000..b9eab26 --- /dev/null +++ b/Vagrantfile @@ -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