2014-09-04 21:27:16 -04:00
|
|
|
# -*- mode: ruby -*-
|
|
|
|
# vi: set ft=ruby :
|
|
|
|
|
|
|
|
$script = <<SCRIPT
|
|
|
|
sudo apt-get -y update
|
|
|
|
|
|
|
|
# RVM/Ruby
|
2015-11-15 12:05:08 -05:00
|
|
|
sudo apt-get -qy install curl git libgmp3-dev
|
2015-01-24 18:25:47 -05:00
|
|
|
gpg --keyserver hkp://keys.gnupg.net --recv-keys D39DC0E3
|
2015-11-15 12:05:08 -05:00
|
|
|
# Install rvm and the latest version of ruby
|
2014-09-04 21:27:16 -04:00
|
|
|
curl -sSL https://get.rvm.io | bash -s stable
|
|
|
|
. ~/.bashrc
|
|
|
|
. ~/.bash_profile
|
2015-11-15 12:05:08 -05:00
|
|
|
rvm install ruby-2.2.2
|
|
|
|
gem install bundler
|
2014-09-04 21:27:16 -04:00
|
|
|
|
|
|
|
# Middleman deps
|
|
|
|
cd /vagrant
|
2015-11-15 12:05:08 -05:00
|
|
|
make dev
|
2014-09-04 21:27:16 -04:00
|
|
|
SCRIPT
|
|
|
|
|
2014-10-14 18:41:04 -04:00
|
|
|
Vagrant.configure(2) do |config|
|
2015-11-17 03:26:07 -05:00
|
|
|
config.vm.box = "bento/ubuntu-14.04"
|
2014-09-04 21:27:16 -04:00
|
|
|
config.vm.network "private_network", ip: "33.33.30.10"
|
|
|
|
config.vm.provision "shell", inline: $script, privileged: false
|
|
|
|
config.vm.synced_folder ".", "/vagrant", type: "rsync"
|
|
|
|
end
|