packer-cn/website/Vagrantfile

28 lines
667 B
Plaintext
Raw Normal View History

2014-09-04 21:27:16 -04:00
# -*- mode: ruby -*-
# vi: set ft=ruby :
$script = <<SCRIPT
sudo apt-get -y update
# RVM/Ruby
sudo apt-get -qy install curl git libgmp3-dev
gpg --keyserver hkp://keys.gnupg.net --recv-keys D39DC0E3
# 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
rvm install ruby-2.2.2
gem install bundler
2014-09-04 21:27:16 -04:00
# Middleman deps
cd /vagrant
make dev
2014-09-04 21:27:16 -04:00
SCRIPT
2014-10-14 18:41:04 -04:00
Vagrant.configure(2) do |config|
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