Skip to content

Instantly share code, notes, and snippets.

@Deraen
Created December 14, 2014 00:05
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save Deraen/5b75f6d37384d1417692 to your computer and use it in GitHub Desktop.
Save Deraen/5b75f6d37384d1417692 to your computer and use it in GitHub Desktop.
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