/
Vagrantfile
65 lines (50 loc) · 1.78 KB
/
Vagrantfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
# -*- mode: ruby -*-
# vi: set ft=ruby :
OCITYSMAP_BRANCH='master'
MAPOSMATIC_BRANCH='main'
Vagrant.configure(2) do |config|
config.vm.box = "debian/bookworm64"
config.vm.network "forwarded_port", guest: 80, host: 8001
config.vm.network "forwarded_port", guest: 8080, host: 8081
config.vbguest.auto_update = false
config.vm.boot_timeout = 600
config.ssh.forward_agent = true
config.ssh.forward_x11 = true
config.vm.provider "virtualbox" do |vb, override|
# vb.gui = true
vb.name = "maposmatic"
vb.memory = "16384"
vb.cpus = "6"
override.vm.synced_folder ".", "/vagrant/", mount_options: ["dmode=777"]
override.vm.synced_folder "test", "/vagrant/test", mount_options: ["dmode=777"]
end
config.vm.provider "hyperv" do |h, override|
override.vm.synced_folder ".", "/vagrant/", mount_options: ["dir_mode=777"]
override.vm.synced_folder "test", "/vagrant/test", mount_options: ["dir_mode=777"]
end
if Vagrant.has_plugin?("vagrant-cachier")
config.cache.scope = :box
config.cache.synced_folder_opts = {
owner: "_apt"
}
end
unless Vagrant.has_plugin?("vagrant-vbguest")
raise 'vbguest plugin is not installed - run "vagrant plugin install vagrant-vbguest" first'
end
unless Vagrant.has_plugin?("vagrant-disksize")
raise 'disksize plugin is not installed - run "vagrant plugin install vagrant-disksize" first'
end
config.disksize.size = '1000GB'
if Vagrant.has_plugin?("vagrant-env")
config.env.enable
end
config.ssh.forward_x11 = true
config.vm.provision "shell",
env: {
"GIT_AUTHOR_NAME": ENV['GIT_AUTHOR_NAME'],
"GIT_AUTHOR_EMAIL": ENV['GIT_AUTHOR_EMAIL'],
"MAPOSMATIC_BRANCH": MAPOSMATIC_BRANCH,
"OCITYSMAP_BRANCH": OCITYSMAP_BRANCH,
},
path: "provision.sh"
end