blob: c1b4f34272d64f14aa06f72fe8f44eda13f453df [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}')
5
6RCC_IMAGE=nexus3.onap.org:10001/onap/org.onap.dcaegen2.collectors.restconfcollector:latest
7echo RCC_IMAGE=${RCC_IMAGE}
8
9# Start DCAE Restconf Collector
10docker run -d -p 8080:8080/tcp -p 8443:8443/tcp -P --name rcc -e DMAAPHOST=${HOST_IP} ${RCC_IMAGE}
11
12RCC_IP=`get-instance-ip.sh rcc`
13export RCC_IP=${RCC_IP}
14export HOST_IP=${HOST_IP}
15
16export ROBOT_VARIABLES="--pythonpath ${WORKSPACE}/tests/dcaegen2-collectors-restconf/testcases/resources"
17
18pip install jsonschema uuid
19# Wait container ready
20sleep 5
21