packer-cn/website/Vagrantfile

28 lines
674 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
2016-12-28 15:47:36 -05:00
sudo apt-get -qy install curl git libgmp3-dev nodejs
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
2016-12-28 15:47:36 -05:00
rvm install ruby-2.3.1
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