vagrant/website/Vagrantfile

21 lines
743 B
Ruby

# -*- mode: ruby -*-
# vi: set ft=ruby :
$script = <<SCRIPT
sudo apt-get -y update
sudo apt-get -y install curl
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
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
sudo su -l -c 'cd /vagrant && bundle install --jobs 2' vagrant
SCRIPT
Vagrant.configure("2") do |config|
config.vm.box = "hashicorp/precise64"
config.vm.network "private_network", ip: "33.33.33.10"
config.vm.provision "shell", inline: $script, privileged: false
config.vm.synced_folder ".", "/vagrant", type: "rsync"
end