2016-05-03 14:28:01 +00:00
|
|
|
# -*- mode: ruby -*-
|
|
|
|
# vi: set ft=ruby :
|
|
|
|
|
2017-11-08 13:45:29 +00:00
|
|
|
JRUBY_VERSION = "jruby-1.7"
|
|
|
|
|
2016-05-03 14:28:01 +00:00
|
|
|
Vagrant.configure(2) do |config|
|
|
|
|
|
2016-12-17 13:07:48 +00:00
|
|
|
config.vm.define "debian" do |deb|
|
2017-11-08 13:45:29 +00:00
|
|
|
deb.vm.box = 'debian/stretch64'
|
2016-12-17 13:07:48 +00:00
|
|
|
deb.vm.synced_folder '.', '/vagrant', type: :virtualbox
|
|
|
|
|
|
|
|
deb.vm.provision 'shell', inline: <<-EOP
|
|
|
|
apt-get update
|
2017-11-08 13:45:29 +00:00
|
|
|
apt-get install openjdk-8-jre ca-certificates-java git curl -y -q
|
|
|
|
curl -sSL https://rvm.io/mpapis.asc | sudo gpg --import -
|
|
|
|
curl -sSL https://get.rvm.io | bash -s stable --ruby=#{JRUBY_VERSION}
|
2016-12-17 13:07:48 +00:00
|
|
|
usermod -a -G rvm vagrant
|
|
|
|
EOP
|
|
|
|
end
|
|
|
|
|
|
|
|
config.vm.define "centos" do |centos|
|
|
|
|
centos.vm.box = 'centos/7'
|
|
|
|
centos.ssh.insert_key = false # https://github.com/mitchellh/vagrant/issues/7610
|
|
|
|
centos.vm.synced_folder '.', '/vagrant', type: :virtualbox
|
|
|
|
|
|
|
|
centos.vm.provision 'shell', inline: <<-EOP
|
|
|
|
yum update
|
|
|
|
yum install java-1.7.0-openjdk
|
2017-11-08 13:45:29 +00:00
|
|
|
curl -sSL https://rvm.io/mpapis.asc | sudo gpg --import -
|
|
|
|
curl -sSL https://get.rvm.io | bash -s stable --ruby=#{JRUBY_VERSION}
|
2016-12-17 13:07:48 +00:00
|
|
|
usermod -a -G rvm vagrant
|
|
|
|
EOP
|
|
|
|
end
|
|
|
|
|
2016-05-03 14:28:01 +00:00
|
|
|
end
|