Forked from benforeva/Clojure dev vagrantfile.rb
Last active
August 29, 2015 13:57
-
-
Save m3dwards/9421685 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
$script = <<SCRIPT | |
echo I am provisioning... | |
date > /etc/vagrant_provisioned_at | |
echo installing git... | |
sudo apt-get update | |
sudo apt-get install -y git-core | |
echo installing java... | |
sudo apt-get install -y openjdk-7-jdk | |
echo installing leiningen | |
mkdir ~/bin | |
cd ~/bin | |
wget https://raw.github.com/technomancy/leiningen/stable/bin/lein | |
sudo chmod +x lein | |
export PATH=$PATH:~/bin | |
lein self-install | |
echo installing clojure koans | |
mkdir ~/clojure-koans | |
cd ~/clojure-koans | |
git clone git://github.com/functional-koans/clojure-koans.git | |
echo end of provisioning | |
SCRIPT | |
Vagrant.configure("2") do |config| | |
config.vm.box = "precise64" | |
config.vm.provision :shell, :inline => $script | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment