4 Vagrant.configure("2") do |config|
5 # use official ubuntu image for virtualbox
6 config.vm.provider "virtualbox" do |_, override|
7 override.vm.box = "ubuntu/trusty64"
8 override.vm.synced_folder ".", "/srv/openstreetmap-website"
11 # use third party image and NFS sharing for lxc
12 config.vm.provider "lxc" do |_, override|
13 override.vm.box = "sputnik13/trusty64"
14 override.vm.synced_folder ".", "/srv/openstreetmap-website", :type => "nfs"
17 # use third party image and NFS sharing for libvirt
18 config.vm.provider "libvirt" do |_, override|
19 override.vm.box = "sputnik13/trusty64"
20 override.vm.synced_folder ".", "/srv/openstreetmap-website", :type => "nfs"
23 # configure shared package cache if possible
24 if Vagrant.has_plugin?("vagrant-cachier")
25 config.cache.enable :apt
26 config.cache.scope = :box
29 # port forward for webrick on 3000
30 config.vm.network :forwarded_port, :guest => 3000, :host => 3000
32 # provision using a simple shell script
33 config.vm.provision :shell, :path => "script/vagrant/setup/provision.sh"