Modify CSIT script to have absolute root path env
- change set up to call docker compose for cps-ncmp
- add root as a property in 'test.properties'
- root is specified to be root directory folder for the current
project
- modified docker compose init container to use ROOT env var
Issue-ID: CPS-1472
Signed-off-by: emaclee <lee.anjella.macabuhay@est.tech>
Change-Id: Ie5ac6bbff7cb1e761501bd0db8447f86af06b95f
diff --git a/docker-compose/docker-compose.yml b/docker-compose/docker-compose.yml
index 7d6379a..dd7749a 100644
--- a/docker-compose/docker-compose.yml
+++ b/docker-compose/docker-compose.yml
@@ -110,13 +110,12 @@
restart: unless-stopped
init-db:
- build: ../../../docker-compose/initfile
+ build: ${CPS_HOME:-.}/docker-compose/initfile
environment:
CPS_CORE_PORT: ${CPS_CORE_PORT:-8883}
CPS_CORE_MANAGEMENT_PORT: ${CPS_CORE_MANAGEMENT_PORT:-8887}
volumes:
- - ./initfile:/initfile
- - ../../../cps-ncmp-service/src/main/resources/model/:/model
+ - ${CPS_HOME:-.}/cps-ncmp-service/src/main/resources/model/:/model
depends_on:
cps-and-ncmp:
condition: service_started