2016-05-03 14:28:01 +00:00
|
|
|
# -*- mode: ruby -*-
|
|
|
|
# vi: set ft=ruby :
|
|
|
|
|
|
|
|
Vagrant.configure(2) do |config|
|
2016-05-17 15:21:37 +00:00
|
|
|
config.vm.box = 'debian/jessie64'
|
|
|
|
config.vm.synced_folder '.', '/vagrant', type: :virtualbox
|
2016-05-03 14:28:01 +00:00
|
|
|
|
2016-05-17 15:21:37 +00:00
|
|
|
config.vm.provision 'shell', inline: <<-EOP
|
2016-06-29 17:48:12 +00:00
|
|
|
echo "deb http://ftp.debian.org/debian jessie-backports main" | tee --append /etc/apt/sources.list > /dev/null
|
|
|
|
sed -i 's/main/main contrib non-free/g' /etc/apt/sources.list
|
|
|
|
apt-get update
|
|
|
|
apt-get remove openjdk-7-jre-headless -y -q
|
2016-08-28 20:48:06 +00:00
|
|
|
apt-get install git openjdk-8-jre curl -y -q
|
2016-05-03 14:28:01 +00:00
|
|
|
gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3
|
|
|
|
curl -sSL https://get.rvm.io | bash -s stable --ruby=jruby-1.7
|
|
|
|
usermod -a -G rvm vagrant
|
|
|
|
EOP
|
|
|
|
end
|