blob: 4699be33fa46404cdb7525ca47d19773c3daa872 [file] [log] [blame]
tragait9bbcb1b2020-02-24 16:33:50 +00001version: '3'
2services:
3################################################################################
4 mariadb:
5 image: ${NEXUS_DOCKER_REPO_MSO}/mariadb:10.1.11
6 ports:
7 - "3306:3306"
8 container_name: mariadb
9 volumes:
10 - /etc/localtime:/etc/localtime:ro
11 - ${TEST_LAB_DIR}/volumes/mariadb/docker-entrypoint-initdb.d:/docker-entrypoint-initdb.d
12 - ${TEST_LAB_DIR}/volumes/mariadb/conf.d:/etc/mysql/conf.d
13 environment:
14 - MYSQL_ROOT_PASSWORD=password
15 hostname:
16 mariadb.so.testlab.onap.org
17 logging:
18 driver: "json-file"
19 options:
20 max-size: "30m"
21 max-file: "5"
22################################################################################
23 catalog-db-adapter:
24 image: ${NEXUS_DOCKER_REPO_MSO}/onap/so/catalog-db-adapter:${TAG}
25 ports:
26 - "8082:8082"
27 container_name: catalog-db-adapter
28 volumes:
29 - /etc/localtime:/etc/localtime:ro
30 - ${TEST_LAB_DIR}/volumes/so/ca-certificates/onapheat:/app/ca-certificates
31 - ${CONFIG_DIR_PATH}/override-files/catalog-db-adapter/onapheat:/app/config
32 environment:
33 - APP=catalog-db-adapter
34 - JVM_ARGS=-Xms64m -Xmx512m
35 - DB_HOST=mariadb
36 - DB_PORT=3306
37 - DB_USERNAME=root
38 - DB_PASSWORD=password
39 - DB_ADMIN_USERNAME=root
40 - DB_ADMIN_PASSWORD=password
41 hostname:
42 catalog-db-adapter.so.testlab.onap.org
43 depends_on:
44 - mariadb
45 logging:
46 driver: "json-file"
47 options:
48 max-size: "30m"
49 max-file: "5"
50 command:
51 - /app/wait-for.sh
52 - -q
53 - -t
54 - "300"
55 - mariadb:3306
56 - --
57 - "/app/start-app.sh"
58################################################################################
59 request-db-adapter:
60 image: ${NEXUS_DOCKER_REPO_MSO}/onap/so/request-db-adapter:${TAG}
61 container_name: request-db-adapter
62 ports:
63 - "8083:8083"
64 volumes:
65 - /etc/localtime:/etc/localtime:ro
66 - ${TEST_LAB_DIR}/volumes/so/ca-certificates/onapheat:/app/ca-certificates
67 - ${CONFIG_DIR_PATH}/override-files/request-db-adapter/onapheat:/app/config
68 environment:
69 - APP=request-db-adapter
70 - JVM_ARGS=-Xms64m -Xmx512m
71 - DB_HOST=mariadb
72 - DB_PORT=3306
73 - DB_USERNAME=root
74 - DB_PASSWORD=password
75 - DB_ADMIN_USERNAME=root
76 - DB_ADMIN_PASSWORD=password
77 hostname:
78 request-db-adapter.so.testlab.onap.org
79 depends_on:
80 - mariadb
81 - catalog-db-adapter
82 logging:
83 driver: "json-file"
84 options:
85 max-size: "30m"
86 max-file: "5"
87 command:
88 - /app/wait-for.sh
89 - -q
90 - -t
91 - "300"
92 - catalog-db-adapter:8082
93 - --
94 - "/app/start-app.sh"
95################################################################################
96 sdnc-adapter:
97 image: ${NEXUS_DOCKER_REPO_MSO}/onap/so/sdnc-adapter:${TAG}
98 container_name: sdnc-adapter
99 ports:
100 - "8086:8086"
101 volumes:
102 - /etc/localtime:/etc/localtime:ro
103 - ${TEST_LAB_DIR}/volumes/so/ca-certificates/onapheat:/app/ca-certificates
104 - ${TEST_LAB_DIR}/volumes/so/config/sdnc-adapter/onapheat:/app/config
105 environment:
106 - APP=sdnc-adapter
107 - JVM_ARGS=-Xms64m -Xmx512m
108 - DB_HOST=mariadb
109 - DB_PORT=3306
110 - DB_USERNAME=root
111 - DB_PASSWORD=password
112 - DB_ADMIN_USERNAME=root
113 - DB_ADMIN_PASSWORD=password
114 hostname:
115 sdnc-adapter.so.testlab.onap.org
116 depends_on:
117 - mariadb
118 - catalog-db-adapter
119 - request-db-adapter
120 logging:
121 driver: "json-file"
122 options:
123 max-size: "30m"
124 max-file: "5"
125 command:
126 - /app/wait-for.sh
127 - -q
128 - -t
129 - "300"
130 - request-db-adapter:8083
131 - --
132 - "/app/start-app.sh"
133################################################################################
134 sdc-controller:
135 image: ${NEXUS_DOCKER_REPO_MSO}/onap/so/sdc-controller:${TAG}
136 container_name: sdc-controller
137 ports:
138 - "8085:8085"
139 volumes:
140 - /etc/localtime:/etc/localtime:ro
141 - ${TEST_LAB_DIR}/volumes/so/ca-certificates/onapheat:/app/ca-certificates
142 - ${CONFIG_DIR_PATH}/distribution-test-zip/zipped_sdc_csar.tar.gz:/distribution-test-zip/zipped_sdc_csar.tar.gz
ajay_dp0011feb0a72020-12-03 15:18:08 +0530143 - ${CONFIG_DIR_PATH}/distribution-test-zip/zipped_sdc_csar_2.0.tar.gz:/distribution-test-zip/zipped_sdc_csar_2.0.tar.gz
tragait9bbcb1b2020-02-24 16:33:50 +0000144 - ${CONFIG_DIR_PATH}/override-files/sdc-controller/onapheat:/app/config
145 environment:
146 - APP=sdc-controller
147 - JVM_ARGS=-Xms64m -Xmx512m
148 - DB_HOST=mariadb
149 - DB_PORT=3306
150 - DB_USERNAME=root
151 - DB_PASSWORD=password
152 - DB_ADMIN_USERNAME=root
153 - DB_ADMIN_PASSWORD=password
154 hostname:
155 sdc-controller.so.testlab.onap.org
156 logging:
157 driver: "json-file"
158 options:
159 max-size: "30m"
160 max-file: "5"
161 entrypoint:
162 - /bin/sh
163 - -c
ajay_dp0011feb0a72020-12-03 15:18:08 +0530164 - 'mkdir -p /app/distribution-test-zip/unzipped && cp -R /distribution-test-zip/zipped_sdc_csar.tar.gz /app && cp -R /distribution-test-zip/zipped_sdc_csar_2.0.tar.gz /app && tar -xvzf /app/zipped_sdc_csar.tar.gz -C /app/distribution-test-zip/unzipped && tar -xvzf /app/zipped_sdc_csar_2.0.tar.gz -C /app/distribution-test-zip/unzipped && /app/wait-for.sh -q -t "300" request-db-adapter:8083 -- "/app/start-app.sh"'
tragait9bbcb1b2020-02-24 16:33:50 +0000165################################################################################
166 bpmn-infra:
167 user: root
168 image: ${NEXUS_DOCKER_REPO_MSO}/onap/so/bpmn-infra:${TAG}
169 container_name: bpmn-infra
170 ports:
171 - "8081:8081"
172 volumes:
173 - /etc/localtime:/etc/localtime:ro
tragait9bbcb1b2020-02-24 16:33:50 +0000174 - ${CONFIG_DIR_PATH}/override-files/bpmn-infra/onapheat:/app/config
175 - ${CONFIG_DIR_PATH}/certificates/aai-certificate/aai.cert:/app/ca-certificates/aai.cert
ajay_dp001888768c2020-08-14 16:21:27 +0530176 - ${CONFIG_DIR_PATH}/certificates/root-certificate/root.crt:/app/ca-certificates/root.crt
tragait9bbcb1b2020-02-24 16:33:50 +0000177 environment:
178 - APP=bpmn-infra
179 - JVM_ARGS=-Xms64m -Xmx512m
180 - DB_HOST=mariadb
181 - DB_PORT=3306
182 - DB_USERNAME=camundauser
183 - DB_PASSWORD=camunda123
184 - DB_ADMIN_USERNAME=root
185 - DB_ADMIN_PASSWORD=password
186 hostname:
187 bpmn-infra.so.testlab.onap.org
188 depends_on:
189 - mariadb
190 - catalog-db-adapter
191 - request-db-adapter
192 logging:
193 driver: "json-file"
194 options:
195 max-size: "30m"
196 max-file: "5"
197 command:
198 - /app/wait-for.sh
199 - -q
200 - -t
201 - "300"
202 - request-db-adapter:8083
203 - --
204 - "/app/start-app.sh"
205################################################################################
206 api-handler-infra:
207 image: ${NEXUS_DOCKER_REPO_MSO}/onap/so/api-handler-infra:${TAG}
208 container_name: api-handler-infra
209 ports:
210 - "8080:8080"
211 volumes:
212 - /etc/localtime:/etc/localtime:ro
213 - ${TEST_LAB_DIR}/volumes/so/ca-certificates/onapheat:/app/ca-certificates
214 - ${CONFIG_DIR_PATH}/override-files/api-handler-infra/onapheat:/app/config
215 environment:
216 - APP=api-handler-infra
217 - JVM_ARGS=-Xms64m -Xmx512m
218 - DB_HOST=mariadb
219 - DB_PORT=3306
220 - DB_USERNAME=root
221 - DB_PASSWORD=password
222 - DB_ADMIN_USERNAME=root
223 - DB_ADMIN_PASSWORD=password
224 hostname:
225 api-handler-infra.so.testlab.onap.org
226 depends_on:
227 - mariadb
228 - catalog-db-adapter
229 - request-db-adapter
230 logging:
231 driver: "json-file"
232 options:
233 max-size: "30m"
234 max-file: "5"
235 command:
236 - /app/wait-for.sh
237 - -q
238 - -t
239 - "300"
240 - request-db-adapter:8083
241 - --
242 - "/app/start-app.sh"
243################################################################################
244 aai-simulator:
245 image: simulators/aai-simulator:latest
246 # image: quay.io/raj_gumma/aai_sim:latest
247 container_name: aai-simulator
248 volumes:
249 - /etc/localtime:/etc/localtime:ro
ajay_dp0011feb0a72020-12-03 15:18:08 +0530250 - ${CONFIG_DIR_PATH}/a51e2bef-961c-496f-b235-b4540400e885.json:/app/a51e2bef-961c-496f-b235-b4540400e885.json
tragait9bbcb1b2020-02-24 16:33:50 +0000251 ports:
252 - "9993:9993"
253 environment:
254 - APP=AAI-SIMULATOR
255 - JVM_ARGS=-Xms64m -Xmx512m
256 hostname:
257 aai-simulator
258 depends_on:
259 - mariadb
260 logging:
261 driver: "json-file"
262 options:
263 max-size: "30m"
264 max-file: "5"
265################################################################################
266 populate-aai-config:
267 image: jobs/workaround-job-container:latest
268 container_name: populate-aai-config
269 ports:
270 - "9995:9995"
271 volumes:
272 - /etc/localtime:/etc/localtime:ro
273 - ${CONFIG_DIR_PATH}/populate-aai-simulator.sh:/config/populate-aai-simulator.sh
274 - ${CONFIG_DIR_PATH}/wait-for.sh:/config/wait-for.sh
275 - ${CONFIG_DIR_PATH}/aai-simulator-populate-data:/config/aai-simulator-populate-data/
276 environment:
277 - AAI_SIMULATOR_HOST=aai-simulator
278 - AAI_SIMULATOR_PORT=9993
279 - TIMEOUT_IN_SECONDS=300 #5 mins
280 depends_on:
281 - aai-simulator
282 command:
283 - "/config/populate-aai-simulator.sh"
284################################################################################
285 workaround-config:
286 image: jobs/workaround-job-container:latest
287 container_name: workaround-config
288 ports:
289 - "9990:9990"
290 volumes:
291 - /etc/localtime:/etc/localtime:ro
292 - ${CONFIG_DIR_PATH}/apply-workarounds.sh:/config/apply-workarounds.sh
293 environment:
294 - MYSQL_ROOT_PASSWORD=password
295 - DB_HOST=mariadb
296 - DB_PORT=3306
297 - CATALOG_DB=catalogdb
298 depends_on:
299 - mariadb
300 command:
301 - "/config/apply-workarounds.sh"