Skip to content

Instantly share code, notes, and snippets.

@alandipert
Forked from Deraen/Vagrantfile
Created December 14, 2014 13:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alandipert/f0ad6494ad13b6d40356 to your computer and use it in GitHub Desktop.
Save alandipert/f0ad6494ad13b6d40356 to your computer and use it in GitHub Desktop.
# vi: set ft=ruby :
VAGRANTFILE_API_VERSION = "2"
$script = <<SCRIPT
apt-get update
apt-get install -y git maven openjdk-7-jdk
(
cd /usr/local/bin
wget https://raw.githubusercontent.com/technomancy/leiningen/stable/bin/lein -O lein
chmod +x lein
)
# Targed created by the next script
ln -s /home/vagrant/boot/bin/boot.sh /usr/local/bin/boot
SCRIPT
$script2 = <<SCRIPT
(
git clone https://github.com/boot-clj/boot.git
cd boot
git checkout tempdirs
make deps
make install
)
(
git clone https://github.com/Deraen/boot-cljx.git
cd boot-cljx
git checkout tempdirs
)
SCRIPT
Vagrant.require_version ">= 1.6"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = "ubuntu/trusty64"
config.vm.provision "shell", inline: $script
config.vm.provision "shell", inline: $script2, privileged: false
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment