aboutsummaryrefslogtreecommitdiffstats
path: root/test/csit/scripts/dmaap-buscontroller/dmaapbc-launch.sh
diff options
context:
space:
mode:
authorDominic Lunanuova <dgl@research.att.com>2018-09-04 23:14:13 +0000
committerDominic Lunanuova <dgl@research.att.com>2018-09-04 23:14:24 +0000
commitf118f2e72217a2a07c57e114f7a165271f9bc87d (patch)
tree99c1050905074248058886258f4811e534255f78 /test/csit/scripts/dmaap-buscontroller/dmaapbc-launch.sh
parentc3a8defbdc6192c6a8164d2cb1d2c75ae54f7cfd (diff)
Integrate with DR docker
addresses CLONED Jiras: 441, 443, 444, 445 Change-Id: If20f5773427e4a82b62745efd804049228d629ae Signed-off-by: Dominic Lunanuova <dgl@research.att.com> Issue-ID: DMAAP-437
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