]> git.openstreetmap.org Git - nominatim.git/blob - Vagrantfile
more tests for libphp - incorporate lonvias feedback
[nominatim.git] / Vagrantfile
1 # -*- mode: ruby -*-
2 # vi: set ft=ruby :
3
4 Vagrant.configure("2") do |config|
5
6   # Ubuntu LTS 14.04
7   config.vm.box = "ubuntu/trusty64" 
8
9   # Apache webserver
10   config.vm.network "forwarded_port", guest: 8089, host: 8089
11
12
13   # If true, then any SSH connections made will enable agent forwarding.
14   config.ssh.forward_agent = true
15
16   config.vm.synced_folder ".", "/home/vagrant/Nominatim"
17
18
19
20   # provision using a simple shell script
21   config.vm.provision :shell, :path => "vagrant-provision.sh"
22
23
24   # configure shared package cache if possible
25   if Vagrant.has_plugin?("vagrant-cachier")
26     config.cache.enable :apt
27     config.cache.scope = :box
28   end
29
30
31   config.vm.provider "virtualbox" do |vb|
32     vb.gui = false
33     vb.customize ["modifyvm", :id, "--memory", "2048"]
34   end
35
36
37   # config.vm.provider :digital_ocean do |provider, override|
38   #   override.ssh.private_key_path = '~/.ssh/id_rsa'
39   #   override.vm.box = 'digital_ocean'
40   #   override.vm.box_url = "https://github.com/smdahlen/vagrant-digitalocean/raw/master/box/digital_ocean.box"
41
42   #   provider.token = ''
43   #   # provider.token = 'YOUR TOKEN'
44   #   provider.image = 'ubuntu-14-04-x64'
45   #   provider.region = 'nyc2'
46   #   provider.size = '512mb'
47   # end
48
49 end