2014-01-20 20:43:04 +00:00
|
|
|
# -*- mode: ruby -*-
|
|
|
|
# vi: set ft=ruby :
|
|
|
|
|
|
|
|
$script = <<SCRIPT
|
|
|
|
sudo apt-get -y update
|
|
|
|
sudo apt-get -y install curl
|
2014-12-12 08:49:42 +00:00
|
|
|
sudo su -l -c 'gpg --keyserver hkp://keys.gnupg.net --recv-keys D39DC0E3' vagrant
|
|
|
|
sudo su -l -c 'curl -L https://get.rvm.io | bash -s stable --auto-dotfiles' vagrant
|
2015-11-15 21:30:24 +00:00
|
|
|
sudo su -l -c 'rvm install 2.2.2' vagrant
|
|
|
|
sudo su -l -c 'rvm --default use 2.2.2' vagrant
|
|
|
|
sudo su -l -c 'gem install bundler' vagrant
|
2014-12-12 08:49:42 +00:00
|
|
|
sudo su -l -c 'cd /vagrant && bundle install --jobs 2' vagrant
|
2014-01-20 20:43:04 +00:00
|
|
|
SCRIPT
|
|
|
|
|
2014-10-08 20:01:20 +00:00
|
|
|
Vagrant.configure(2) do |config|
|
2014-05-29 14:18:12 +00:00
|
|
|
config.vm.box = "hashicorp/precise64"
|
2014-01-20 20:43:04 +00:00
|
|
|
config.vm.network "private_network", ip: "33.33.33.10"
|
|
|
|
config.vm.provision "shell", inline: $script, privileged: false
|
2014-02-12 16:52:14 +00:00
|
|
|
config.vm.synced_folder ".", "/vagrant", type: "rsync"
|
2014-01-20 20:43:04 +00:00
|
|
|
end
|