-
Notifications
You must be signed in to change notification settings - Fork 7
/
sonarqube.json
128 lines (128 loc) · 4.11 KB
/
sonarqube.json
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
{
"kind": "List",
"apiVersion": "v1",
"metadata": {},
"items": [
{
"kind": "ImageStream",
"apiVersion": "v1",
"metadata": {
"name": "sonarqube",
"creationTimestamp": null,
"labels": {
"app": "sonarqube"
}
},
"spec": {
"dockerImageRepository": "amdonov/sonarqube"
},
"status": {
"dockerImageRepository": ""
}
},
{
"kind": "DeploymentConfig",
"apiVersion": "v1",
"metadata": {
"name": "sonarqube",
"creationTimestamp": null,
"labels": {
"app": "sonarqube"
}
},
"spec": {
"strategy": {
"resources": {}
},
"triggers": [
{
"type": "ConfigChange"
},
{
"type": "ImageChange",
"imageChangeParams": {
"automatic": true,
"containerNames": [
"sonarqube"
],
"from": {
"kind": "ImageStreamTag",
"name": "sonarqube:latest"
}
}
}
],
"replicas": 1,
"selector": {
"deploymentconfig": "sonarqube"
},
"template": {
"metadata": {
"creationTimestamp": null,
"labels": {
"deploymentconfig": "sonarqube"
}
},
"spec": {
"containers": [
{
"name": "sonarqube",
"image": "amdonov/sonarqube",
"ports": [
{
"containerPort": 9000,
"protocol": "TCP"
}
],
"env": [
{
"name": "SONAR_JDBC_PASSWORD",
"value": "sonar"
},
{
"name": "SONAR_JDBC_URL",
"value": "jdbc:h2:tcp://localhost:9092/sonar"
},
{
"name": "SONAR_JDBC_USERNAME",
"value": "sonar"
}
],
"resources": {}
}
]
}
}
},
"status": {}
},
{
"kind": "Service",
"apiVersion": "v1",
"metadata": {
"name": "sonarqube",
"creationTimestamp": null,
"labels": {
"app": "sonarqube"
}
},
"spec": {
"ports": [
{
"name": "9000-tcp",
"protocol": "TCP",
"port": 9000,
"targetPort": 9000,
"nodePort": 0
}
],
"selector": {
"deploymentconfig": "sonarqube"
}
},
"status": {
"loadBalancer": {}
}
}
]
}