diff options
author | Marco Platania <platania@research.att.com> | 2017-09-20 13:56:31 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2017-09-20 13:56:31 +0000 |
commit | 48e87a5668b870051e2b03b3c412b41dc791b021 (patch) | |
tree | 0d4a5c43f1bba22ea0337890ec664f02d4512583 /boot/vnfsdk_vm_init.sh | |
parent | b9742163a50d1971567f924315708106c7235075 (diff) | |
parent | 65505f4c2f3d6e3a988ee9dc5d709ad205a9f558 (diff) |
Merge "Add install support using Heat for vnfsdk"
Diffstat (limited to 'boot/vnfsdk_vm_init.sh')
-rwxr-xr-x | boot/vnfsdk_vm_init.sh | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/boot/vnfsdk_vm_init.sh b/boot/vnfsdk_vm_init.sh new file mode 100755 index 00000000..e1db6b5a --- /dev/null +++ b/boot/vnfsdk_vm_init.sh @@ -0,0 +1,32 @@ +#!/bin/bash +# Starts docker containers for VNFSDK VNF repository. +# Version for Amsterdam/R1 uses docker-compose. + +# be verbose +set -x + +# Establish environment variables +NEXUS_USERNAME=$(cat /opt/config/nexus_username.txt) +NEXUS_PASSWD=$(cat /opt/config/nexus_password.txt) +NEXUS_DOCKER_REPO=$(cat /opt/config/nexus_docker_repo.txt) +DOCKER_IMAGE_VERSION=$(cat /opt/config/docker_version.txt) + +# Refresh configuration and scripts +cd /opt/refrepo +git pull +cd vnfmarket-be/deployment/install + +# Get image names used below from docker-compose environment file +source .env + + +# Refresh images +docker login -u $NEXUS_USERNAME -p $NEXUS_PASSWD $NEXUS_DOCKER_REPO +docker pull $NEXUS_DOCKER_REPO/onap/refrepo:${REFREPO_TAG} +docker pull $NEXUS_DOCKER_REPO/onap/refrepo:${POSTGRES_TAG} + + +# docker-compose is not in /usr/bin +/opt/docker/docker-compose down +/opt/docker/docker-compose up -d + |