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