Skip to content

Instantly share code, notes, and snippets.

@benforeva
Last active December 26, 2015 15:49
Show Gist options
  • Save benforeva/7174922 to your computer and use it in GitHub Desktop.
Save benforeva/7174922 to your computer and use it in GitHub Desktop.
A vagrantfile that sets up a Clojure development environment on Ubuntu
# -*- 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 end of provisioning
SCRIPT
Vagrant.configure("2") do |config|
config.vm.box = "precise32"
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