]> git.openstreetmap.org Git - rails.git/blob - Vagrantfile
Fix syntax error with ruby 2.5
[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 |vb, override|
7     override.vm.box = "ubuntu/xenial64"
8     override.vm.synced_folder ".", "/srv/openstreetmap-website"
9     vb.customize ["modifyvm", :id, "--memory", "1024"]
10     vb.customize ["modifyvm", :id, "--cpus", "2"]
11   end
12
13   # use third party image and NFS sharing for lxc
14   config.vm.provider "lxc" do |_, override|
15     override.vm.box = "sputnik13/trusty64"
16     override.vm.synced_folder ".", "/srv/openstreetmap-website", :type => "nfs"
17   end
18
19   # use third party image and NFS sharing for libvirt
20   config.vm.provider "libvirt" do |_, override|
21     override.vm.box = "sputnik13/trusty64"
22     override.vm.synced_folder ".", "/srv/openstreetmap-website", :type => "nfs"
23   end
24
25   # configure shared package cache if possible
26   if Vagrant.has_plugin?("vagrant-cachier")
27     config.cache.enable :apt
28     config.cache.scope = :box
29   end
30
31   # port forward for webrick on 3000
32   config.vm.network :forwarded_port, :guest => 3000, :host => 3000
33
34   # provision using a simple shell script
35   config.vm.provision :shell, :path => "script/vagrant/setup/provision.sh"
36 end