summaryrefslogtreecommitdiffstats
path: root/csit/docker-compose-all.yml
diff options
context:
space:
mode:
authorJim Hahn <jrh3@att.com>2021-08-18 13:26:49 +0000
committerGerrit Code Review <gerrit@onap.org>2021-08-18 13:26:49 +0000
commit19ea8c41d6539a602a8f09a357b662723cccae12 (patch)
treed54306ffd652b5cc44f63121c82c99f2d2b3e66f /csit/docker-compose-all.yml
parenta179ce9586bdbd52edba9bb794473bd34f8dd02d (diff)
parent88a991b939a4c469b9d2c1c392ea4f683cdc8f7a (diff)
Merge "Add db-migrator to CSIT tests"
Diffstat (limited to 'csit/docker-compose-all.yml')
-rw-r--r--csit/docker-compose-all.yml27
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}