4 Vagrant.configure("2") do |config|
5 config.vm.provider "virtualbox" do |vb|
6 vb.customize ["modifyvm", :id, "--memory", "8192"]
10 Vagrant.configure("2") do |config|
11 # use official ubuntu image for virtualbox
12 config.vm.provider "virtualbox" do |vb, override|
13 override.vm.box = "ubuntu/trusty64"
14 override.vm.synced_folder ".", "/srv/openstreetmap-website"
15 vb.customize ["modifyvm", :id, "--memory", "1024"]
16 vb.customize ["modifyvm", :id, "--cpus", "2"]
19 # use third party image and NFS sharing for lxc
20 config.vm.provider "lxc" do |_, override|
21 override.vm.box = "sputnik13/trusty64"
22 override.vm.synced_folder ".", "/srv/openstreetmap-website", :type => "nfs"
25 # use third party image and NFS sharing for libvirt
26 config.vm.provider "libvirt" do |_, override|
27 override.vm.box = "sputnik13/trusty64"
28 override.vm.synced_folder ".", "/srv/openstreetmap-website", :type => "nfs"
31 # configure shared package cache if possible
32 if Vagrant.has_plugin?("vagrant-cachier")
33 config.cache.enable :apt
34 config.cache.scope = :box
37 # port forward for webrick on 3000
38 config.vm.network :forwarded_port, :guest => 3000, :host => 3000
40 # provision using a simple shell script
41 config.vm.provision :shell, :path => "script/vagrant/setup/provision.sh"