forked from semmypurewal/node-dev-bootstrap
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Vagrantfile
35 lines (29 loc) · 1.34 KB
/
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
33
34
35
Vagrant::Config.run do |config|
config.vm.box = "precise32"
config.vm.box_url = "http://files.vagrantup.com/precise32.box"
config.vm.forward_port 3000, 3000
config.vm.share_folder "app", "/home/vagrant/app", "app"
# Uncomment the following line to allow for symlinks
# in the app folder. This will not work on Windows, and will
# not work with Vagrant providers other than VirtualBox
# config.vm.customize ["setextradata", :id, "VBoxInternal2/SharedFoldersEnableSymlinksCreate/app", "1"]
config.vm.provision :chef_solo do |chef|
chef.add_recipe "nodejs"
chef.add_recipe "mongodb-debs"
# chef.add_recipe "redis-server"
chef.json = {
"nodejs" => {
"version" => "0.10.29"
# uncomment the following line to force
# recent versions (> 0.8.5) to be built from
# the source code
# , "from_source" => true
}
}
end
config.vm.provision :shell, :inline => "sudo apt-get install -y build-essential --no-install-recommends"
config.vm.provision :shell, :inline => "sudo apt-get install -y redis-server --no-install-recommends"
config.vm.provision :shell, :inline => "sudo apt-get install -y ruby1.9.1-dev --no-install-recommends"
config.vm.provision :shell, :inline => "sudo apt-get install -y ruby1.9.3 --no-install-recommends"
config.vm.provision :shell, :inline => "sudo gem install cf"
end