3
3
4
4
# Vagrant virtual development environments for SOCI
5
5
6
- # All Vagrant configuration is done below.
7
- # The "2" in Vagrant.configure configures the configuration version.
8
- # Please don't change it unless you know what you're doing.
9
6
Vagrant . configure ( 2 ) do |config |
10
- # The most common configuration options are documented and commented below.
11
- # For a complete reference, please see the online documentation at
12
- # https://docs.vagrantup.com.
13
-
14
- # Every Vagrant development environment requires a box. You can search for
15
- # boxes at https://atlas.hashicorp.com/search.
16
- config . vm . box = "ubuntu/trusty64"
17
-
18
- # Enable automatic box update checking.
7
+ config . vm . box = "bento/ubuntu-14.04"
19
8
config . vm . box_check_update = true
20
9
21
- # Configure database box with IBM DB2 Express-C
22
- config . vm . define "db2" do |db2 |
10
+ # Main SOCI development box with build essentials, FOSS DBs
11
+ config . vm . define "soci" , primary : true do |soci |
12
+ soci . vm . hostname = "vmsoci"
13
+ soci . vm . network "private_network" , type : "dhcp"
14
+ soci . vm . provider :virtualbox do |vb |
15
+ vb . customize [ "modifyvm" , :id , "--memory" , "1024" ]
16
+ end
17
+ scripts = [
18
+ "bootstrap.sh" ,
19
+ "devel.sh" ,
20
+ "db2cli.sh" ,
21
+ "firebird.sh" ,
22
+ "mysql.sh" ,
23
+ "postgresql.sh" ,
24
+ "build.sh"
25
+ ]
26
+ scripts . each { |script |
27
+ soci . vm . provision :shell , privileged : false , :path => "scripts/vagrant/" << script
28
+ }
29
+ end
30
+
31
+ # Database box with IBM DB2 Express-C
32
+ config . vm . define "db2" , autostart : false do |db2 |
23
33
db2 . vm . hostname = "vmdb2"
24
34
db2 . vm . network "private_network" , type : "dhcp"
25
35
# Access to DB2 instance from host
@@ -36,33 +46,11 @@ Vagrant.configure(2) do |config|
36
46
}
37
47
end
38
48
39
- # TODO
40
- # Configure database box with Oracle XE
41
- # config.vm.define "oracle" do |oracle|
49
+ # Database box with Oracle XE
50
+ # config.vm.define "oracle", autostart: false do |oracle|
42
51
# oracle.vm.provision "database", type: "shell" do |s|
43
52
# s.inline = "echo Installing Oracle'"
44
53
# end
45
54
# end
46
- #
47
55
48
- # Configure main SOCI development box with build essentials, OSS DBs
49
- config . vm . define "soci" do |soci |
50
- soci . vm . hostname = "vmsoci"
51
- soci . vm . network "private_network" , type : "dhcp"
52
- soci . vm . provider :virtualbox do |vb |
53
- vb . customize [ "modifyvm" , :id , "--memory" , "1024" ]
54
- end
55
- scripts = [
56
- "bootstrap.sh" ,
57
- "devel.sh" ,
58
- "db2cli.sh" ,
59
- "firebird.sh" ,
60
- "mysql.sh" ,
61
- "postgresql.sh" ,
62
- "build.sh"
63
- ]
64
- scripts . each { |script |
65
- soci . vm . provision :shell , privileged : false , :path => "scripts/vagrant/" << script
66
- }
67
- end
68
56
end
0 commit comments