Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Testing boot
# vi: set ft=ruby :
VAGRANTFILE_API_VERSION = "2"
$script = <<SCRIPT
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
You can’t perform that action at this time.