]> git.somenet.org - pub/jan/aic18.git/blob - Vagrantfile
Merge branch '49-upload-all-containers-to-public-repo-in-docker-hub' into 'master'
[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
8     # online deployment: needed to assign a fixed ip.
9     if File.exist?(".online")
10       config.vm.network "public_network", adapter: 2, type: "dhcp", mac: "080808080808"
11     end
12   end
13
14   config.vm.provider "libvirt" do |v|
15     v.memory = 2048
16
17     config.vm.synced_folder ".", "/vagrant", type: "rsync"
18   end
19
20   # design-choice: run file in vm.
21   config.vm.provision "shell", inline: "/vagrant/provision.sh"
22
23   config.vm.network "forwarded_port", adapter: 1, guest: 8080, host: 8080
24
25   # only for debugging reasons?
26   config.vm.network "forwarded_port", adapter: 1, guest: 8081, host: 8081
27   config.vm.network "forwarded_port", adapter: 1, guest: 8082, host: 8082
28   config.vm.network "forwarded_port", adapter: 1, guest: 8083, host: 8083
29   config.vm.network "forwarded_port", adapter: 1, guest: 8084, host: 8084
30   config.vm.network "forwarded_port", adapter: 1, guest: 8085, host: 8085
31 end