Created
March 21, 2015 16:12
-
-
Save tobytripp/c162018a557d26297c92 to your computer and use it in GitHub Desktop.
Quick Vagrant file for creating a clojure-ready virtual machine.
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 : | |
Vagrant.configure(2) do |config| | |
config.vm.box = "hashicorp/precise64" | |
config.vm.network "forwarded_port", guest: 4343, host: 4343 | |
config.vm.provider "virtualbox" do |vb| | |
vb.memory = "2048" | |
end | |
config.vm.provision :shell, inline: <<-SH | |
apt-get update | |
apt-get install clojure -y | |
cd /home/vagrant | |
mkdir -p bin | |
chown vagrant:vagrant bin | |
cd /home/vagrant/bin | |
wget https://raw.githubusercontent.com/technomancy/leiningen/stable/bin/lein | |
chmod +x /home/vagrant/bin/lein | |
su -c /home/vagrant/bin/lein vagrant >/dev/null | |
sed '$ a\ | |
export PATH=~/bin:$PATH' /home/vagrant/.bashrc | |
SH | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment