open-nomad/website/Vagrantfile

42 lines
1 KiB
Ruby
Raw Normal View History

2015-09-12 00:01:02 +00:00
# -*- mode: ruby -*-
# vi: set ft=ruby :
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
VAGRANTFILE_API_VERSION = "2"
$script = <<SCRIPT
sudo apt-get -y update
# RVM/Ruby
2015-09-19 21:41:52 +00:00
sudo apt-get -y install curl git
curl -sSL https://rvm.io/mpapis.asc | gpg --import -
2015-09-12 00:01:02 +00:00
curl -sSL https://get.rvm.io | bash -s stable
. ~/.bashrc
. ~/.bash_profile
2015-09-19 21:41:52 +00:00
rvm install 2.2.2
rvm --default use 2.2.2
gem install bundler
2015-09-12 00:01:02 +00:00
# Middleman deps
cd /vagrant
bundle
# JS stuff
sudo apt-get install -y python-software-properties
sudo add-apt-repository -y ppa:chris-lea/node.js
sudo apt-get update -y
sudo apt-get install -y nodejs
# Get JS deps
2015-09-19 21:41:52 +00:00
# cd /vagrant/source
# npm install
2015-09-12 00:01:02 +00:00
SCRIPT
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = "bento/ubuntu-12.04"
2015-09-12 00:01:02 +00:00
config.vm.network "private_network", ip: "33.33.30.10"
config.vm.network "forwarded_port", guest: 4567, host: 8080
2015-09-12 00:01:02 +00:00
config.vm.provision "shell", inline: $script, privileged: false
config.vm.synced_folder ".", "/vagrant", type: "rsync"
end