-
Notifications
You must be signed in to change notification settings - Fork 40
/
Copy pathVagrantfile
28 lines (23 loc) · 829 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
$script = <<SCRIPT
sudo apt-get install -y build-essential
sudo apt-get install git-core g++ -y
# curl -sL https://deb.nodesource.com/setup_0.12 | sudo -E bash -
curl -sL https://deb.nodesource.com/setup_0.10 | sudo -E bash -
# curl -sL https://deb.nodesource.com/setup_iojs_1.x | sudo -E bash -
# curl -sL https://deb.nodesource.com/setup_iojs_3.x | sudo -E bash -
# curl -sL https://deb.nodesource.com/setup_iojs_2.x | sudo -E bash -
sudo apt-get install -y nodejs
# sudo apt-get install -y iojs
sudo npm install -g node-gyp
SCRIPT
Vagrant.configure("2") do |config|
config.vm.box = "ubuntu/trusty64"
config.vm.box_check_update = false
config.vm.hostname = "inotify.local"
config.vm.provider "virtualbox" do |vb|
vb.gui = false
vb.memory = 1024
vb.cpus = 1
end
config.vm.provision "shell", inline: $script
end