Commit 837e88de authored by Mateusz Łoskot's avatar Mateusz Łoskot

Vagrant: reorder booting to load DBs before dev env

[ci skip]
parent 8afea2f9
......@@ -18,24 +18,21 @@ Vagrant.configure(2) do |config|
# Enable automatic box update checking.
config.vm.box_check_update = true
# Configure main SOCI development box with build essentials, OSS DBs
config.vm.define "soci" do |soci|
soci.vm.hostname = "vmsoci"
soci.vm.network "private_network", type: "dhcp"
soci.vm.provider :virtualbox do |vb|
# Configure database box with IBM DB2 Express-C
config.vm.define "db2" do |db2|
db2.vm.hostname = "vmdb2"
db2.vm.network "private_network", type: "dhcp"
# Access to DB2 instance from host
db2.vm.network :forwarded_port, host: 50000, guest: 50000
db2.vm.provider :virtualbox do |vb|
vb.customize ["modifyvm", :id, "--memory", "1024"]
end
scripts = [
"bootstrap.sh",
"devel.sh",
"db2cli.sh",
"firebird.sh",
"mysql.sh",
"postgresql.sh",
"build.sh"
"db2.sh"
]
scripts.each { |script|
soci.vm.provision :shell, privileged: false, :path => "bin/vagrant/" << script
db2.vm.provision :shell, privileged: false, :path => "bin/vagrant/" << script
}
end
......@@ -47,21 +44,25 @@ Vagrant.configure(2) do |config|
# end
# end
#
# Configure database box with IBM DB2 Express-C
config.vm.define "db2" do |db2|
db2.vm.hostname = "vmdb2"
db2.vm.network "private_network", type: "dhcp"
# Access to DB2 instance from host
db2.vm.network :forwarded_port, host: 50000, guest: 50000
db2.vm.provider :virtualbox do |vb|
# Configure main SOCI development box with build essentials, OSS DBs
config.vm.define "soci" do |soci|
soci.vm.hostname = "vmsoci"
soci.vm.network "private_network", type: "dhcp"
soci.vm.provider :virtualbox do |vb|
vb.customize ["modifyvm", :id, "--memory", "1024"]
end
scripts = [
"bootstrap.sh",
"db2.sh"
"devel.sh",
"db2cli.sh",
"firebird.sh",
"mysql.sh",
"postgresql.sh",
"build.sh"
]
scripts.each { |script|
db2.vm.provision :shell, privileged: false, :path => "bin/vagrant/" << script
soci.vm.provision :shell, privileged: false, :path => "bin/vagrant/" << script
}
end
end
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment