diff options
Diffstat (limited to 'csit/scripts/dmaap-buscontroller/dmaapbc-launch.sh')
-rwxr-xr-x | csit/scripts/dmaap-buscontroller/dmaapbc-launch.sh | 27 |
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 +} |