2 # Starts docker containers for VNFSDK VNF repository.
3 # Version for Amsterdam/R1 uses docker-compose.
8 # Establish environment variables
9 NEXUS_USERNAME=$(cat /opt/config/nexus_username.txt)
10 NEXUS_PASSWD=$(cat /opt/config/nexus_password.txt)
11 export NEXUS_DOCKER_REPO=$(cat /opt/config/nexus_docker_repo.txt)
12 export MTU=$(/sbin/ifconfig | grep MTU | sed 's/.*MTU://' | sed 's/ .*//' | sort -n | head -1)
13 #DOCKER_IMAGE_VERSION=$(cat /opt/config/docker_version.txt) --> not needed at the moment
15 # Refresh configuration and scripts
18 cd vnfmarket-be/deployment/install
20 # Get image names used below from docker-compose environment file
24 docker login -u $NEXUS_USERNAME -p $NEXUS_PASSWD $NEXUS_DOCKER_REPO
25 docker pull $NEXUS_DOCKER_REPO/onap/vnfsdk/refrepo:${REFREPO_TAG}
26 docker pull $NEXUS_DOCKER_REPO/onap/vnfsdk/refrepo/postgres:${POSTGRES_TAG}
28 # docker-compose is not in /usr/bin
29 /opt/docker/docker-compose down
30 /opt/docker/docker-compose up -d