aboutsummaryrefslogtreecommitdiffstats
path: root/csit/scripts/dmaap-buscontroller/dmaapbc-launch.sh
diff options
context:
space:
mode:
authorefiacor <fiachra.corcoran@est.tech>2021-04-08 16:40:06 +0100
committerefiacor <fiachra.corcoran@est.tech>2021-04-21 13:49:22 +0100
commit71d3d0925874247de5e657821638b1c08360f571 (patch)
tree91bcca2c8bd53c3ee54269c3101538cba70fa588 /csit/scripts/dmaap-buscontroller/dmaapbc-launch.sh
parent20221353bdb213a1f143a132d819d4e0810e3794 (diff)
[DMAAP-BC] Consolidate bus controller repos
Migrate BC CSITs to the repo Fix documentation Signed-off-by: efiacor <fiachra.corcoran@est.tech> Change-Id: I874ed61be1b61187e233e9fd0937f6658f0ec0f0 Issue-ID: DMAAP-1544
Diffstat (limited to 'csit/scripts/dmaap-buscontroller/dmaapbc-launch.sh')
-rwxr-xr-xcsit/scripts/dmaap-buscontroller/dmaapbc-launch.sh27
1 files changed, 27 insertions, 0 deletions
diff --git a/csit/scripts/dmaap-buscontroller/dmaapbc-launch.sh b/csit/scripts/dmaap-buscontroller/dmaapbc-launch.sh
new file mode 100755
index 0000000..6f46845
--- /dev/null
+++ b/csit/scripts/dmaap-buscontroller/dmaapbc-launch.sh
@@ -0,0 +1,27 @@
+#!/bin/bash
+
+# script to launch DMaaP buscontroller docker container
+# sets global var IP with assigned IP address
+
+function dmaapbc_launch() {
+ if [ $# == 1 ]; then
+ export dmaap_prov_ip=$1
+ export dmaap_mr_ip=$2
+ else
+ export dmaap_prov_ip=$1
+ export dmaap_mr_ip=$1
+ fi
+
+ docker-compose -f ${WORKSPACE}/scripts/dmaap-buscontroller/docker-compose/docker-compose-bc.yml up -d
+
+ sleep 10
+
+ DMAAP_BC_IP=`get-instance-ip.sh dmaap-bc`
+
+ # Wait for initialization
+ for i in 1 2 3 4 5 6 7 8 9 10; do
+ curl -sS ${DMAAP_BC_IP}:8080 && break
+ echo sleep ${i}
+ sleep ${i}
+ done
+}