]> git.openstreetmap.org Git - nominatim.git/blob - Vagrantfile
Merge pull request #1780 from Simon-Will/1768-vagrant-installation-for-ubuntu-20
[nominatim.git] / Vagrantfile
1 # -*- mode: ruby -*-
2 # vi: set ft=ruby :
3
4 Vagrant.configure("2") do |config|
5   # Apache webserver
6   config.vm.network "forwarded_port", guest: 80, host: 8089
7
8   # If true, then any SSH connections made will enable agent forwarding.
9   config.ssh.forward_agent = true
10
11   checkout = "yes"
12   if ENV['CHECKOUT'] != 'y' then
13       config.vm.synced_folder ".", "/home/vagrant/Nominatim"
14       checkout = "no"
15   end
16
17   config.vm.define "ubuntu", primary: true do |sub|
18       sub.vm.box = "bento/ubuntu-20.04"
19       sub.vm.provision :shell do |s|
20         s.path = "vagrant/Install-on-Ubuntu-20.sh"
21         s.privileged = false
22         s.args = [checkout]
23       end
24   end
25
26   config.vm.define "ubuntu18", primary: true do |sub|
27       sub.vm.box = "bento/ubuntu-18.04"
28       sub.vm.provision :shell do |s|
29         s.path = "vagrant/Install-on-Ubuntu-18.sh"
30         s.privileged = false
31         s.args = [checkout]
32       end
33   end
34
35   config.vm.define "ubuntu18nginx" do |sub|
36       sub.vm.box = "bento/ubuntu-18.04"
37       sub.vm.provision :shell do |s|
38         s.path = "vagrant/Install-on-Ubuntu-18-nginx.sh"
39         s.privileged = false
40         s.args = [checkout]
41       end
42   end
43
44   config.vm.define "ubuntu16" do |sub|
45       sub.vm.box = "bento/ubuntu-16.04"
46       sub.vm.provision :shell do |s|
47         s.path = "vagrant/Install-on-Ubuntu-16.sh"
48         s.privileged = false
49         s.args = [checkout]
50       end
51   end
52
53   config.vm.define "travis" do |sub|
54       sub.vm.box = "bento/ubuntu-14.04"
55       sub.vm.provision :shell do |s|
56         s.path = "vagrant/install-on-travis-ci.sh"
57         s.privileged = false
58         s.args = [checkout]
59       end
60   end
61
62   config.vm.define "centos" do |sub|
63       sub.vm.box = "centos/7"
64       sub.vm.provision :shell do |s|
65         s.path = "vagrant/Install-on-Centos-7.sh"
66         s.privileged = false
67         s.args = "yes"
68       end
69       sub.vm.synced_folder ".", "/home/vagrant/Nominatim", disabled: true
70       sub.vm.synced_folder ".", "/vagrant", disabled: true
71   end
72
73   config.vm.define "centos8" do |sub|
74       sub.vm.box = "generic/centos8"
75       sub.vm.provision :shell do |s|
76         s.path = "vagrant/Install-on-Centos-8.sh"
77         s.privileged = false
78         s.args = "yes"
79       end
80       sub.vm.synced_folder ".", "/home/vagrant/Nominatim", disabled: true
81       sub.vm.synced_folder ".", "/vagrant", disabled: true
82   end
83
84
85   config.vm.provider "virtualbox" do |vb|
86     vb.gui = false
87     vb.memory = 2048
88     vb.customize ["setextradata", :id, "VBoxInternal2/SharedFoldersEnableSymlinksCreate//vagrant","0"]
89   end
90
91 end