aboutsummaryrefslogtreecommitdiffstats
path: root/test/csit/scripts/dmaap-buscontroller/dmaapbc-launch.sh
diff options
context:
space:
mode:
authorGary Wu <gary.i.wu@huawei.com>2018-09-05 00:40:22 +0000
committerGerrit Code Review <gerrit@onap.org>2018-09-05 00:40:22 +0000
commit3344fe229f12febd8eba96efdc3cbb66ca3b5569 (patch)
tree93db82425d69e306318254c27b29e26cdd696ce2 /test/csit/scripts/dmaap-buscontroller/dmaapbc-launch.sh
parent5c5be7856e4824d064157be3e0c8bf6017845e0e (diff)
parentf118f2e72217a2a07c57e114f7a165271f9bc87d (diff)
Merge "Integrate with DR docker"
Diffstat (limited to 'test/csit/scripts/dmaap-buscontroller/dmaapbc-launch.sh')
-rwxr-xr-xtest/csit/scripts/dmaap-buscontroller/dmaapbc-launch.sh11
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