blob: 2b018172b0ac8127b57d9ae0dfb1529f5bdf0d5e [file] [log] [blame]
sharathb0c1f132019-04-09 19:52:09 +05301#!/bin/bash
2
3#get current host IP addres
4HOST_IP=$(ip route get 8.8.8.8 | awk '/8.8.8.8/ {print $NF}')
sharath.reddy580e2bb2019-12-05 14:31:52 +08005CONTAINER_NAME=rcc
sharathb0c1f132019-04-09 19:52:09 +05306RCC_IMAGE=nexus3.onap.org:10001/onap/org.onap.dcaegen2.collectors.restconfcollector:latest
7echo RCC_IMAGE=${RCC_IMAGE}
8
sharath.reddy580e2bb2019-12-05 14:31:52 +08009#get JAVA version
10echo java -version
11java -version
sharathb0c1f132019-04-09 19:52:09 +053012
sharath.reddy580e2bb2019-12-05 14:31:52 +080013# Start DCAE Restconf Collector
14docker run -d -p 8080:8080/tcp -p 8443:8443/tcp -P --name ${CONTAINER_NAME} -e DMAAPHOST=${HOST_IP} ${RCC_IMAGE}
15
16RCC_IP=`get-instance-ip.sh ${CONTAINER_NAME}`
sharathb0c1f132019-04-09 19:52:09 +053017export RCC_IP=${RCC_IP}
18export HOST_IP=${HOST_IP}
19
20export ROBOT_VARIABLES="--pythonpath ${WORKSPACE}/tests/dcaegen2-collectors-restconf/testcases/resources"
21
22pip install jsonschema uuid
23# Wait container ready
24sleep 5
25
sharath.reddy580e2bb2019-12-05 14:31:52 +080026#get the docker log
27echo DOCKER LOG ${CONTAINER_NAME}
28docker logs ${CONTAINER_NAME}