2 # Starts docker containers for ONAP Portal in test environment
3 # For development use only; this does NOT pull from git nor build.
8 # Get variables from docker-compose environment file
11 # Define local subdirectory with host-specific property files
12 # The leading "./" is required for docker-compose
13 export PROPS_DIR=./properties_vm-ep-dev11
14 if [ ! -d $PROPS_DIR ] ; then
15 echo "Failed to find directory $PROPS_DIR"
18 echo "Using properties directory $PROPS_DIR"
20 # Constants as of Oct 2017, Amsterdam release
21 NEXUS_REPO=nexus3.onap.org:10001
22 CLI_IMG_VERSION=1.1-STAGING-latest
23 CDR_IMG_VERSION=latest
26 # Pull and tag the CLI image, which is provided elsewhere.
27 # Authenticate like this; the username and password are NOT stored here.
28 docker login -u username -p password $NEXUS_REPO
29 docker pull $NEXUS_REPO/$CLI_IMG_NAME:${CLI_IMG_VERSION}
30 docker tag $NEXUS_REPO/$CLI_IMG_NAME:${CLI_IMG_VERSION} $CLI_IMG_NAME:$PORTAL_TAG
32 # Pull and tag the Music Cassandra image.
33 docker pull $NEXUS_REPO/$CDR_IMG_NAME:${CDR_IMG_VERSION}
34 docker tag $NEXUS_REPO/$CDR_IMG_NAME:${CDR_IMG_VERSION} $CDR_IMG_NAME:$PORTAL_TAG
36 # Pull and tag the ZK image.
37 docker pull library/$ZK_IMG_NAME:${ZK_IMG_VERSION}
38 docker tag library/$ZK_IMG_NAME:${ZK_IMG_VERSION} $ZK_IMG_NAME:$PORTAL_TAG
40 # Create local logs directory
41 # The leading "./" is required for docker-compose
42 export LOGS_DIR=./logs
45 # Make inter-app communication work in dev3
46 export EXTRA_HOST_IP=localhost
47 export EXTRA_HOST_NAME="portal.api.simpledemo.onap.org"
49 # (re)start containers