dglFromAtt | 62b8b12 | 2018-03-03 11:57:29 -0500 | [diff] [blame] | 1 | #!/bin/bash |
| 2 | |
| 3 | # script to launch DMaaP buscontroller docker container |
| 4 | # sets global var IP with assigned IP address |
| 5 | |
| 6 | function dmaapbc_launch() { |
Dominic Lunanuova | 5a2d897 | 2018-04-17 20:59:12 +0000 | [diff] [blame] | 7 | TAG=onap/dmaap/buscontroller |
dglFromAtt | 62b8b12 | 2018-03-03 11:57:29 -0500 | [diff] [blame] | 8 | CONTAINER_NAME=dmaapbc |
| 9 | IP="" |
| 10 | |
| 11 | cd ${WORKSPACE}/test/csit/scripts/dmaap-buscontroller |
| 12 | |
| 13 | TMP_CFG=/tmp/docker-databys-controller.conf |
| 14 | . ./onapCSIT.env > $TMP_CFG |
| 15 | docker run -d --name $CONTAINER_NAME -v $TMP_CFG:/opt/app/config/conf $TAG |
| 16 | IP=`get-instance-ip.sh ${CONTAINER_NAME}` |
| 17 | |
| 18 | # Wait for initialization |
| 19 | for i in {1..10}; do |
| 20 | curl -sS ${IP}:8080 && break |
| 21 | echo sleep $i |
| 22 | sleep $i |
| 23 | done |
| 24 | |
| 25 | set -x |
| 26 | ${WORKSPACE}/test/csit/scripts/dmaap-buscontroller/dmaapbc-init.sh ${IP} |
| 27 | set +x |
| 28 | |
| 29 | |
| 30 | } |