diff options
author | Adheli Tavares <adheli.tavares@est.tech> | 2024-04-24 09:23:16 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2024-04-24 09:23:16 +0000 |
commit | b6d1d479556b6798d8dfb70aa87db4e247327113 (patch) | |
tree | 4ecb78c74d200f78415d808ece1ae85aab8e1809 /compose/docker-compose.yml | |
parent | 427f193118436b2aa7664f72fcb16ca1b25b8061 (diff) | |
parent | aa86c67092daa5bd10dd6506fd33f3a6233dd281 (diff) |
Merge "Add ACM db upgrade/downgrade to db-migrator"
Diffstat (limited to 'compose/docker-compose.yml')
-rw-r--r-- | compose/docker-compose.yml | 25 |
1 files changed, 23 insertions, 2 deletions
diff --git a/compose/docker-compose.yml b/compose/docker-compose.yml index 3d7c1462..d5c6c3b2 100644 --- a/compose/docker-compose.yml +++ b/compose/docker-compose.yml @@ -35,7 +35,7 @@ services: container_name: policy-db-migrator hostname: policy-db-migrator depends_on: - - mariadb + - mariadb expose: - 6824 env_file: ./config/db/db.conf @@ -51,6 +51,27 @@ services: '/opt/app/policy/bin/db_migrator_policy_init.sh', 'mariadb', '3306' ] + policy-db-migrator-clamp: + image: ${CONTAINER_LOCATION}onap/policy-db-migrator:${POLICY_DOCKER_VERSION} + container_name: policy-db-migrator-clamp + hostname: policy-db-migrator-clamp + depends_on: + - mariadb + expose: + - 6824 + env_file: ./config/db/db.conf + environment: + SQL_DB: clampacm + SQL_HOST: mariadb + volumes: + - ./config/db-migrator/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: ${CONTAINER_LOCATION}onap/policy-models-simulator:${POLICY_MODELS_VERSION} container_name: simulator @@ -240,7 +261,7 @@ services: image: ${CONTAINER_LOCATION}onap/policy-clamp-runtime-acm:${POLICY_CLAMP_VERSION} container_name: policy-clamp-runtime-acm depends_on: - - mariadb + - policy-db-migrator-clamp - kafka - policy-clamp-ac-http-ppnt - policy-clamp-ac-k8s-ppnt |