forked from filamentgroup/grunticon
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Vagrantfile
32 lines (25 loc) · 913 Bytes
/
Vagrantfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# -*- mode: ruby -*-
# vi: set ft=ruby :
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = "precise64"
config.vm.box_url = "http://files.vagrantup.com/precise64.box"
config.vm.network "private_network", ip: "33.33.33.10"
config.vm.network "forwarded_port", guest: 80, host: 4567
config.vm.provision(:shell, :inline => <<-CMD)
# exit on error
set -e
echo "Installing node and deps ..."
if ! which node; then
apt-get update
apt-get install -y build-essential
apt-get install -y python-software-properties
add-apt-repository ppa:chris-lea/node.js
apt-get update
apt-get install -y nodejs
fi
apt-get install -y vim
CMD
config.vm.provision(:shell, :inline => "cd /vagrant && npm install && npm test")
end