]> git.openstreetmap.org Git - rails.git/blob - Vagrantfile
Update html5shiv to 3.7.3
[rails.git] / Vagrantfile
1 # -*- mode: ruby -*-
2 # vi: set ft=ruby :
3
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"
9   end
10
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"
15   end
16
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"
21   end
22
23   # configure shared package cache if possible
24   if Vagrant.has_plugin?("vagrant-cachier")
25     config.cache.enable :apt
26     config.cache.scope = :box
27   end
28
29   # port forward for webrick on 3000
30   config.vm.network :forwarded_port, :guest => 3000, :host => 3000
31
32   # provision using a simple shell script
33   config.vm.provision :shell, :path => "script/vagrant/setup/provision.sh"
34 end