sharath | b0c1f13 | 2019-04-09 19:52:09 +0530 | [diff] [blame] | 1 | #!/bin/bash |
| 2 | |
| 3 | #get current host IP addres |
| 4 | HOST_IP=$(ip route get 8.8.8.8 | awk '/8.8.8.8/ {print $NF}') |
| 5 | |
| 6 | RCC_IMAGE=nexus3.onap.org:10001/onap/org.onap.dcaegen2.collectors.restconfcollector:latest |
| 7 | echo RCC_IMAGE=${RCC_IMAGE} |
| 8 | |
| 9 | # Start DCAE Restconf Collector |
| 10 | docker run -d -p 8080:8080/tcp -p 8443:8443/tcp -P --name rcc -e DMAAPHOST=${HOST_IP} ${RCC_IMAGE} |
| 11 | |
| 12 | RCC_IP=`get-instance-ip.sh rcc` |
| 13 | export RCC_IP=${RCC_IP} |
| 14 | export HOST_IP=${HOST_IP} |
| 15 | |
| 16 | export ROBOT_VARIABLES="--pythonpath ${WORKSPACE}/tests/dcaegen2-collectors-restconf/testcases/resources" |
| 17 | |
| 18 | pip install jsonschema uuid |
| 19 | # Wait container ready |
| 20 | sleep 5 |
| 21 | |