Skip to content

Instantly share code, notes, and snippets.

@m3dwards
Forked from benforeva/Clojure dev vagrantfile.rb
Last active August 29, 2015 13:57
Show Gist options
  • Save m3dwards/9421685 to your computer and use it in GitHub Desktop.
Save m3dwards/9421685 to your computer and use it in GitHub Desktop.
# -*- 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