]> git.somenet.org - pub/jan/aic18.git/blob - Vagrantfile
#42
[pub/jan/aic18.git] / Vagrantfile
1 Vagrant.configure("2") do |config|
2   config.vm.box = "debian/stretch64"
3
4   config.vm.provider "virtualbox" do |v|
5     v.name = "aic18g6t4"
6     v.memory = 2048
7   end
8
9   config.vm.provider "libvirt" do |v|
10     v.memory = 2048
11
12     config.vm.synced_folder ".", "/vagrant", type: "rsync"
13   end
14
15   # design-choice: run file in vm.
16   config.vm.provision "shell", inline: "/vagrant/provision.sh"
17
18   config.vm.network "forwarded_port", guest: 8080, host: 8080
19
20   # only for debugging reasons?
21   config.vm.network "forwarded_port", guest: 8081, host: 8081
22   config.vm.network "forwarded_port", guest: 8082, host: 8082
23   config.vm.network "forwarded_port", guest: 8083, host: 8083
24   config.vm.network "forwarded_port", guest: 8084, host: 8084
25
26 end