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