diff options
author | 2018-09-05 00:40:22 +0000 | |
---|---|---|
committer | 2018-09-05 00:40:22 +0000 | |
commit | 3344fe229f12febd8eba96efdc3cbb66ca3b5569 (patch) | |
tree | 93db82425d69e306318254c27b29e26cdd696ce2 /test/csit/scripts/dmaap-buscontroller/dmaapbc-launch.sh | |
parent | 5c5be7856e4824d064157be3e0c8bf6017845e0e (diff) | |
parent | f118f2e72217a2a07c57e114f7a165271f9bc87d (diff) |
Merge "Integrate with DR docker"
Diffstat (limited to 'test/csit/scripts/dmaap-buscontroller/dmaapbc-launch.sh')
-rwxr-xr-x | test/csit/scripts/dmaap-buscontroller/dmaapbc-launch.sh | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/test/csit/scripts/dmaap-buscontroller/dmaapbc-launch.sh b/test/csit/scripts/dmaap-buscontroller/dmaapbc-launch.sh index 688ce7d45..317c17f18 100755 --- a/test/csit/scripts/dmaap-buscontroller/dmaapbc-launch.sh +++ b/test/csit/scripts/dmaap-buscontroller/dmaapbc-launch.sh @@ -12,7 +12,16 @@ function dmaapbc_launch() { TMP_CFG=/tmp/docker-databus-controller.conf . ./onapCSIT.env > $TMP_CFG - docker run -d --name $CONTAINER_NAME -v $TMP_CFG:/opt/app/config/conf $TAG + ADDHOSTS="" + if [ ! -z "$2" ] + then + ADDHOSTS="$ADDHOSTS --add-host=message-router:$2" + fi + if [ ! -z "$3" ] + then + ADDHOSTS="$ADDHOSTS --add-host=dmaap-dr-prov:$3" + fi + docker run -d $ADDHOSTS --name $CONTAINER_NAME -v $TMP_CFG:/opt/app/config/conf $TAG IP=`get-instance-ip.sh ${CONTAINER_NAME}` # Wait for initialization |