-
Notifications
You must be signed in to change notification settings - Fork 2
/
Vagrantfile
105 lines (90 loc) · 3.19 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
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant::Config.run do |config|
config.vm.box = "precise32"
config.vm.box_url = "http://files.vagrantup.com/precise32.box"
config.vm.customize ["modifyvm", :id, "--memory", 1024]
config.vm.host_name = "php-ci-box"
config.package.name = "php-ci.box"
config.vm.provision :chef_solo do |chef|
chef.cookbooks_path = "cookbooks"
chef.add_recipe "apt"
chef.add_recipe "build-essential"
chef.add_recipe "git"
chef.add_recipe "box"
chef.add_recipe "box::ondrej"
chef.add_recipe "php"
chef.add_recipe "php::module_curl"
chef.add_recipe "php::module_sqlite3"
chef.add_recipe "php::module_mysql"
chef.add_recipe "box::php-ext"
chef.add_recipe "box::php-pear"
chef.add_recipe "apache2"
chef.add_recipe "apache2::mod_php5"
chef.add_recipe "google-chrome"
chef.add_recipe "mysql::server"
chef.add_recipe "java"
chef.add_recipe "maven"
chef.add_recipe "ant"
chef.add_recipe "jenkins"
chef.add_recipe "box::jenkins-config"
chef.add_recipe "sonar"
chef.add_recipe "sonar::database_mysql"
chef.add_recipe "box::sonar-plugin"
chef.add_recipe "box::lesscss"
chef.add_recipe "box::selenium"
chef.json = {
"php" => {
"directives" => {
"date.timezone" => "Europe/Paris",
"phar.readonly" => "Off"
}
},
"mysql" => {
"bind_address" => "0.0.0.0",
"server_root_password" => "root",
"server_debian_password" => "",
"server_repl_password" => "",
"use_upstart" => false,
},
"sonar" => {
"version" => "3.4.1",
"jdbc_username" => "root",
"jdbc_password" => "root",
"jdbc_url" => "jdbc:mysql://localhost:3306/sonar?useUnicode=true&characterEncoding=utf8",
"jdbc_driverClassName" => "com.mysql.jdbc.Driver",
"jdbc_validationQuery" => "select 1",
},
"jenkins" => {
"node" => {
"home" => "/var/lib/jenkins",
},
"server" => {
"plugins" => [
"URLSCM",
"sonar",
"git",
"github",
"github-api",
"ansicolor",
"checkstyle",
"cloverphp",
"dry",
"htmlpublisher",
"jdepend",
"plot",
"pmd",
"violations",
"xunit"
]
}
},
"java" => {
"home" => "/usr/lib/jvm/default-java/jre"
}
}
end
config.vm.auto_port_range = 8000..9000
config.vm.forward_port 8080, 8181, :auto => true
config.vm.forward_port 9000, 9001, :auto => true
end