tragait | 9bbcb1b | 2020-02-24 16:33:50 +0000 | [diff] [blame] | 1 | version: '3' |
| 2 | services: |
| 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 |
| 143 | - ${CONFIG_DIR_PATH}/override-files/sdc-controller/onapheat:/app/config |
| 144 | environment: |
| 145 | - APP=sdc-controller |
| 146 | - JVM_ARGS=-Xms64m -Xmx512m |
| 147 | - DB_HOST=mariadb |
| 148 | - DB_PORT=3306 |
| 149 | - DB_USERNAME=root |
| 150 | - DB_PASSWORD=password |
| 151 | - DB_ADMIN_USERNAME=root |
| 152 | - DB_ADMIN_PASSWORD=password |
| 153 | hostname: |
| 154 | sdc-controller.so.testlab.onap.org |
| 155 | logging: |
| 156 | driver: "json-file" |
| 157 | options: |
| 158 | max-size: "30m" |
| 159 | max-file: "5" |
| 160 | entrypoint: |
| 161 | - /bin/sh |
| 162 | - -c |
| 163 | - 'mkdir -p /app/distribution-test-zip/unzipped && cp -R /distribution-test-zip/zipped_sdc_csar.tar.gz /app && tar -xvzf /app/zipped_sdc_csar.tar.gz -C /app/distribution-test-zip/unzipped && /app/wait-for.sh -q -t "300" request-db-adapter:8083 -- "/app/start-app.sh"' |
| 164 | ################################################################################ |
| 165 | bpmn-infra: |
| 166 | user: root |
| 167 | image: ${NEXUS_DOCKER_REPO_MSO}/onap/so/bpmn-infra:${TAG} |
| 168 | container_name: bpmn-infra |
| 169 | ports: |
| 170 | - "8081:8081" |
| 171 | volumes: |
| 172 | - /etc/localtime:/etc/localtime:ro |
tragait | 9bbcb1b | 2020-02-24 16:33:50 +0000 | [diff] [blame] | 173 | - ${CONFIG_DIR_PATH}/override-files/bpmn-infra/onapheat:/app/config |
| 174 | - ${CONFIG_DIR_PATH}/certificates/aai-certificate/aai.cert:/app/ca-certificates/aai.cert |
ajay_dp001 | 888768c | 2020-08-14 16:21:27 +0530 | [diff] [blame] | 175 | - ${CONFIG_DIR_PATH}/certificates/root-certificate/root.crt:/app/ca-certificates/root.crt |
tragait | 9bbcb1b | 2020-02-24 16:33:50 +0000 | [diff] [blame] | 176 | environment: |
| 177 | - APP=bpmn-infra |
| 178 | - JVM_ARGS=-Xms64m -Xmx512m |
| 179 | - DB_HOST=mariadb |
| 180 | - DB_PORT=3306 |
| 181 | - DB_USERNAME=camundauser |
| 182 | - DB_PASSWORD=camunda123 |
| 183 | - DB_ADMIN_USERNAME=root |
| 184 | - DB_ADMIN_PASSWORD=password |
| 185 | hostname: |
| 186 | bpmn-infra.so.testlab.onap.org |
| 187 | depends_on: |
| 188 | - mariadb |
| 189 | - catalog-db-adapter |
| 190 | - request-db-adapter |
| 191 | logging: |
| 192 | driver: "json-file" |
| 193 | options: |
| 194 | max-size: "30m" |
| 195 | max-file: "5" |
| 196 | command: |
| 197 | - /app/wait-for.sh |
| 198 | - -q |
| 199 | - -t |
| 200 | - "300" |
| 201 | - request-db-adapter:8083 |
| 202 | - -- |
| 203 | - "/app/start-app.sh" |
| 204 | ################################################################################ |
| 205 | api-handler-infra: |
| 206 | image: ${NEXUS_DOCKER_REPO_MSO}/onap/so/api-handler-infra:${TAG} |
| 207 | container_name: api-handler-infra |
| 208 | ports: |
| 209 | - "8080:8080" |
| 210 | volumes: |
| 211 | - /etc/localtime:/etc/localtime:ro |
| 212 | - ${TEST_LAB_DIR}/volumes/so/ca-certificates/onapheat:/app/ca-certificates |
| 213 | - ${CONFIG_DIR_PATH}/override-files/api-handler-infra/onapheat:/app/config |
| 214 | environment: |
| 215 | - APP=api-handler-infra |
| 216 | - JVM_ARGS=-Xms64m -Xmx512m |
| 217 | - DB_HOST=mariadb |
| 218 | - DB_PORT=3306 |
| 219 | - DB_USERNAME=root |
| 220 | - DB_PASSWORD=password |
| 221 | - DB_ADMIN_USERNAME=root |
| 222 | - DB_ADMIN_PASSWORD=password |
| 223 | hostname: |
| 224 | api-handler-infra.so.testlab.onap.org |
| 225 | depends_on: |
| 226 | - mariadb |
| 227 | - catalog-db-adapter |
| 228 | - request-db-adapter |
| 229 | logging: |
| 230 | driver: "json-file" |
| 231 | options: |
| 232 | max-size: "30m" |
| 233 | max-file: "5" |
| 234 | command: |
| 235 | - /app/wait-for.sh |
| 236 | - -q |
| 237 | - -t |
| 238 | - "300" |
| 239 | - request-db-adapter:8083 |
| 240 | - -- |
| 241 | - "/app/start-app.sh" |
| 242 | ################################################################################ |
| 243 | aai-simulator: |
| 244 | image: simulators/aai-simulator:latest |
| 245 | # image: quay.io/raj_gumma/aai_sim:latest |
| 246 | container_name: aai-simulator |
| 247 | volumes: |
| 248 | - /etc/localtime:/etc/localtime:ro |
| 249 | ports: |
| 250 | - "9993:9993" |
| 251 | environment: |
| 252 | - APP=AAI-SIMULATOR |
| 253 | - JVM_ARGS=-Xms64m -Xmx512m |
| 254 | hostname: |
| 255 | aai-simulator |
| 256 | depends_on: |
| 257 | - mariadb |
| 258 | logging: |
| 259 | driver: "json-file" |
| 260 | options: |
| 261 | max-size: "30m" |
| 262 | max-file: "5" |
| 263 | ################################################################################ |
| 264 | populate-aai-config: |
| 265 | image: jobs/workaround-job-container:latest |
| 266 | container_name: populate-aai-config |
| 267 | ports: |
| 268 | - "9995:9995" |
| 269 | volumes: |
| 270 | - /etc/localtime:/etc/localtime:ro |
| 271 | - ${CONFIG_DIR_PATH}/populate-aai-simulator.sh:/config/populate-aai-simulator.sh |
| 272 | - ${CONFIG_DIR_PATH}/wait-for.sh:/config/wait-for.sh |
| 273 | - ${CONFIG_DIR_PATH}/aai-simulator-populate-data:/config/aai-simulator-populate-data/ |
| 274 | environment: |
| 275 | - AAI_SIMULATOR_HOST=aai-simulator |
| 276 | - AAI_SIMULATOR_PORT=9993 |
| 277 | - TIMEOUT_IN_SECONDS=300 #5 mins |
| 278 | depends_on: |
| 279 | - aai-simulator |
| 280 | command: |
| 281 | - "/config/populate-aai-simulator.sh" |
| 282 | ################################################################################ |
| 283 | workaround-config: |
| 284 | image: jobs/workaround-job-container:latest |
| 285 | container_name: workaround-config |
| 286 | ports: |
| 287 | - "9990:9990" |
| 288 | volumes: |
| 289 | - /etc/localtime:/etc/localtime:ro |
| 290 | - ${CONFIG_DIR_PATH}/apply-workarounds.sh:/config/apply-workarounds.sh |
| 291 | environment: |
| 292 | - MYSQL_ROOT_PASSWORD=password |
| 293 | - DB_HOST=mariadb |
| 294 | - DB_PORT=3306 |
| 295 | - CATALOG_DB=catalogdb |
| 296 | depends_on: |
| 297 | - mariadb |
| 298 | command: |
| 299 | - "/config/apply-workarounds.sh" |