diff options
author | ktimoney <kevin.timoney@est.tech> | 2021-08-09 17:23:35 +0100 |
---|---|---|
committer | ktimoney <kevin.timoney@est.tech> | 2021-08-12 08:28:12 +0100 |
commit | 88a991b939a4c469b9d2c1c392ea4f683cdc8f7a (patch) | |
tree | 5ad7cdff1d83b534c34153cf7ca8b2c82eb9597f /csit/docker-compose-all.yml | |
parent | dba630d099ad3366d398407e6c1cae263324f787 (diff) |
Add db-migrator to CSIT tests
Issue-ID: POLICY-3491
Change-Id: I987986da7325a040b80b031ae4e7fbf9776c4c54
Signed-off-by: ktimoney <kevin.timoney@est.tech>
Diffstat (limited to 'csit/docker-compose-all.yml')
-rw-r--r-- | csit/docker-compose-all.yml | 27 |
1 files changed, 25 insertions, 2 deletions
diff --git a/csit/docker-compose-all.yml b/csit/docker-compose-all.yml index d271f5c6..50b20548 100644 --- a/csit/docker-compose-all.yml +++ b/csit/docker-compose-all.yml @@ -2,6 +2,7 @@ # ===========LICENSE_START==================================================== # Copyright (C) 2020-2021 AT&T Intellectual Property. All rights reserved. # Modifications Copyright (C) 2021 Bell Canada. All rights reserved. +# Modification Copyright 2021. Nordix Foundation. # ============================================================================ # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -28,6 +29,27 @@ services: - ./config/db:/docker-entrypoint-initdb.d:ro expose: - 3306 + policy-db-migrator: + image: nexus3.onap.org:10001/onap/policy-db-migrator:${POLICY_DOCKER_VERSION} + container_name: policy-db-migrator + hostname: policy-db-migrator + depends_on: + - mariadb + expose: + - 6824 + env_file: config/db/db.conf + environment: + SQL_DB: policyadmin + SQL_HOST: mariadb + volumes: + - ./db_migrator_policy_init.sh:/opt/app/policy/bin/db_migrator_policy_init.sh:ro + - ./wait_for_port.sh:/opt/app/policy/bin/wait_for_port.sh:ro + entrypoint: /opt/app/policy/bin/wait_for_port.sh + command: [ + '-c', + '/opt/app/policy/bin/db_migrator_policy_init.sh', + 'mariadb', '3306' + ] simulator: image: nexus3.onap.org:10001/onap/policy-models-simulator:${POLICY_MODELS_VERSION} container_name: simulator @@ -56,7 +78,7 @@ services: image: nexus3.onap.org:10001/onap/policy-api:${POLICY_API_VERSION} container_name: policy-api depends_on: - - mariadb + - policy-db-migrator hostname: policy-api expose: - 6969 @@ -67,7 +89,8 @@ services: entrypoint: ./wait_for_port.sh command: [ '-c', './policy-api.sh', - 'mariadb', '3306' + 'mariadb', '3306', + 'policy-db-migrator', '6824' ] pap: image: nexus3.onap.org:10001/onap/policy-pap:${POLICY_PAP_VERSION} |