Last active
December 26, 2015 15:49
-
-
Save benforeva/7174922 to your computer and use it in GitHub Desktop.
A vagrantfile that sets up a Clojure development environment on Ubuntu
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 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