This repository has been archived by the owner on Jul 22, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathVagrantfile
137 lines (125 loc) · 5.26 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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
Vagrant.configure(2) do |config|
# Ubuntu 14.04 LTS
config.vm.define "devtrusty" do |devtrusty|
devtrusty.vm.box = "ubuntu/trusty64"
devtrusty.vm.provider "libvirt" do |v|
v.name = "dev"
v.memory = 2048
v.cpus = 2
end
devtrusty.vm.network :forwarded_port, guest: 80, host: 8080
devtrusty.vm.network :forwarded_port, guest: 5432, host: 5440
devtrusty.vm.network :private_network, ip: "192.168.35.10"
devtrusty.vm.synced_folder ".", "/opt/oasisqe/src"
devtrusty.vm.provision "devtrusty", type: "shell", path: "src/build/provision_devtrusty.sh"
end
# Ubuntu 16.04 LTS
config.vm.define "devxenial" do |devxenial|
devxenial.vm.box = "ubuntu/xenial64"
devxenial.vm.provider "libvirt" do |v|
v.name = "dev"
v.memory = 2048
v.cpus = 2
end
devxenial.vm.network :forwarded_port, guest: 80, host: 8081
devxenial.vm.network :forwarded_port, guest: 5432, host: 5441
devxenial.vm.network :private_network, ip: "192.168.35.11"
devxenial.vm.synced_folder ".", "/opt/oasisqe/src"
devxenial.vm.provision "devxenial", type: "shell", path: "src/build/provision_devxenial.sh"
end
# Ubuntu 18.04 LTS
config.vm.define "devbionic" do |devbionic|
devbionic.vm.box = "ubuntu/bionic64"
devbionic.vm.provider "libvirt" do |v|
v.name = "dev"
v.memory = 2048
v.cpus = 2
end
devbionic.vm.network :forwarded_port, guest: 80, host: 8082
devbionic.vm.network :forwarded_port, guest: 5432, host: 5442
devbionic.vm.network :private_network, ip: "192.168.35.12"
devbionic.vm.synced_folder ".", "/opt/oasisqe/src"
devbionic.vm.provision "devbionic", type: "shell", path: "src/build/provision_devbionic.sh"
end
# Debian 9.5 stable
config.vm.define "devstretch" do |devstretch|
devstretch.vm.box = "debian/contrib-stretch64" # contrib- has guest additions for synced_folder
devstretch.vm.provider "libvirt" do |v|
v.name = "dev"
v.memory = 2048
v.cpus = 2
end
devstretch.vm.network :forwarded_port, guest: 80, host: 8083
devstretch.vm.network :forwarded_port, guest: 5432, host: 5443
devstretch.vm.network :private_network, ip: "192.168.35.13"
devstretch.vm.synced_folder ".", "/opt/oasisqe/src"
devstretch.vm.provision "devstretch", type: "shell", path: "src/build/provision_devstretch.sh"
end
# fresh Ubuntu Xenial, install dependencies, install OASIS and config, ready to be packed
# up for distribution
config.vm.define "buildxenial" do |buildxenial|
buildxenial.vm.box = "ubuntu/xenial64"
buildxenial.vm.provider "libvirt" do |v|
v.name = "dev"
v.memory = 2048
v.cpus = 2
end
buildxenial.vm.network :forwarded_port, guest: 80, host: 8084
buildxenial.vm.network :forwarded_port, guest: 5432, host: 5444
buildxenial.vm.network :private_network, ip: "192.168.35.14"
buildxenial.vm.synced_folder ".", "/opt/oasisqe/src"
buildxenial.vm.provision "buildxenial", type: "shell", path: "src/build/provision_buildxenial.sh"
end
config.vm.define "testxenial" do |testxenial|
testxenial.vm.box = "ubuntu/xenial64"
testxenial.vm.provider "libvirt" do |v|
v.name = "testxenial"
v.memory = 2024
v.cpus = 2
end
testxenial.vm.network :forwarded_port, guest: 80, host: 8085
testxenial.vm.network :forwarded_port, guest: 5432, host: 5445
testxenial.vm.network :private_network, ip: "192.168.35.15"
testxenial.vm.synced_folder ".", "/opt/oasisqe/src", :mount_options => ["ro"]
testxenial.vm.provision "test", type: "shell", path: "src/build/provision_testxenial.sh"
end
config.vm.define "testbionic" do |testbionic|
testbionic.vm.box = "ubuntu/bionic64"
testbionic.vm.provider "libvirt" do |v|
v.name = "testbionic"
v.memory = 2024
v.cpus = 2
end
testbionic.vm.network :forwarded_port, guest: 80, host: 8086
testbionic.vm.network :forwarded_port, guest: 5432, host: 5446
testbionic.vm.network :private_network, ip: "192.168.35.16"
testbionic.vm.synced_folder ".", "/opt/oasisqe/src"
testbionic.vm.provision "test", type: "shell", path: "src/build/provision_testbionic.sh"
end
config.vm.define "teststretch" do |teststretch|
teststretch.vm.box = "debian/contrib-stretch64"
teststretch.vm.provider "libvirt" do |v|
v.name = "teststretch"
v.memory = 2024
v.cpus = 2
end
teststretch.vm.network :forwarded_port, guest: 80, host: 8087
teststretch.vm.network :forwarded_port, guest: 5432, host: 5447
teststretch.vm.network :private_network, ip: "192.168.35.17"
teststretch.vm.synced_folder ".", "/opt/oasisqe/src"
teststretch.vm.provision "test", type: "shell", path: "src/build/provision_teststretch.sh"
end
config.vm.define "testtrusty" do |testtrusty|
testtrusty.vm.box = "ubuntu/trusty64"
testtrusty.vm.provider "libvirt" do |v|
v.name = "testtrusty"
v.memory = 2024
v.cpus = 2
end
testtrusty.vm.network :forwarded_port, guest: 80, host: 8088
testtrusty.vm.network :forwarded_port, guest: 5432, host: 5448
testtrusty.vm.network :private_network, ip: "192.168.35.18"
testtrusty.vm.synced_folder ".", "/opt/oasisqe/src"
testtrusty.vm.provision "test", type: "shell", path: "src/build/provision_testtrusty.sh"
end
end