vagrant/website/Vagrantfile

21 lines
743 B
Ruby
Raw Normal View History

# -*- 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
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