mirror of
https://github.com/osm-search/Nominatim.git
synced 2024-11-24 06:22:08 +03:00
4b0ac5356e
The instructions in
[`VAGRANT.md`](42c80893cb/VAGRANT.md
)
still work as before. The names of the Vagrant machines are updated so
that Ubuntu 18.04 (previously called `ubuntu`) is now called `ubuntu18`
and Ubuntu 20.04 is now called `ubuntu20`.
The version changes from Ubuntu 18.04 to Ubuntu 20.04 are:
- Python: 3.6 to 3.8
- Postgres: 10 to 12
- PHP: 7.2 to 7.4
In the `apt-get`, I changed `--force` to `--allow-downgrades --allow-remove-essential --allow-change-held-packages`, because the former is deprecated. Cf. the [manpage of apt-get](http://manpages.ubuntu.com/manpages/focal/man8/apt-get.8.html)
The php module `codesniffer` was previously installed via Composer, but it is available via the Ubuntu repository, so I installed it via `apt-get` now.
92 lines
2.5 KiB
Ruby
92 lines
2.5 KiB
Ruby
# -*- mode: ruby -*-
|
|
# vi: set ft=ruby :
|
|
|
|
Vagrant.configure("2") do |config|
|
|
# Apache webserver
|
|
config.vm.network "forwarded_port", guest: 80, host: 8089
|
|
|
|
# If true, then any SSH connections made will enable agent forwarding.
|
|
config.ssh.forward_agent = true
|
|
|
|
checkout = "yes"
|
|
if ENV['CHECKOUT'] != 'y' then
|
|
config.vm.synced_folder ".", "/home/vagrant/Nominatim"
|
|
checkout = "no"
|
|
end
|
|
|
|
config.vm.define "ubuntu", primary: true do |sub|
|
|
sub.vm.box = "bento/ubuntu-20.04"
|
|
sub.vm.provision :shell do |s|
|
|
s.path = "vagrant/Install-on-Ubuntu-20.sh"
|
|
s.privileged = false
|
|
s.args = [checkout]
|
|
end
|
|
end
|
|
|
|
config.vm.define "ubuntu18", primary: true do |sub|
|
|
sub.vm.box = "bento/ubuntu-18.04"
|
|
sub.vm.provision :shell do |s|
|
|
s.path = "vagrant/Install-on-Ubuntu-18.sh"
|
|
s.privileged = false
|
|
s.args = [checkout]
|
|
end
|
|
end
|
|
|
|
config.vm.define "ubuntu18nginx" do |sub|
|
|
sub.vm.box = "bento/ubuntu-18.04"
|
|
sub.vm.provision :shell do |s|
|
|
s.path = "vagrant/Install-on-Ubuntu-18-nginx.sh"
|
|
s.privileged = false
|
|
s.args = [checkout]
|
|
end
|
|
end
|
|
|
|
config.vm.define "ubuntu16" do |sub|
|
|
sub.vm.box = "bento/ubuntu-16.04"
|
|
sub.vm.provision :shell do |s|
|
|
s.path = "vagrant/Install-on-Ubuntu-16.sh"
|
|
s.privileged = false
|
|
s.args = [checkout]
|
|
end
|
|
end
|
|
|
|
config.vm.define "travis" do |sub|
|
|
sub.vm.box = "bento/ubuntu-14.04"
|
|
sub.vm.provision :shell do |s|
|
|
s.path = "vagrant/install-on-travis-ci.sh"
|
|
s.privileged = false
|
|
s.args = [checkout]
|
|
end
|
|
end
|
|
|
|
config.vm.define "centos" do |sub|
|
|
sub.vm.box = "centos/7"
|
|
sub.vm.provision :shell do |s|
|
|
s.path = "vagrant/Install-on-Centos-7.sh"
|
|
s.privileged = false
|
|
s.args = "yes"
|
|
end
|
|
sub.vm.synced_folder ".", "/home/vagrant/Nominatim", disabled: true
|
|
sub.vm.synced_folder ".", "/vagrant", disabled: true
|
|
end
|
|
|
|
config.vm.define "centos8" do |sub|
|
|
sub.vm.box = "generic/centos8"
|
|
sub.vm.provision :shell do |s|
|
|
s.path = "vagrant/Install-on-Centos-8.sh"
|
|
s.privileged = false
|
|
s.args = "yes"
|
|
end
|
|
sub.vm.synced_folder ".", "/home/vagrant/Nominatim", disabled: true
|
|
sub.vm.synced_folder ".", "/vagrant", disabled: true
|
|
end
|
|
|
|
|
|
config.vm.provider "virtualbox" do |vb|
|
|
vb.gui = false
|
|
vb.memory = 2048
|
|
vb.customize ["setextradata", :id, "VBoxInternal2/SharedFoldersEnableSymlinksCreate//vagrant","0"]
|
|
end
|
|
|
|
end
|