diff options
author | 2017-09-21 07:13:12 +0000 | |
---|---|---|
committer | 2017-09-21 07:13:12 +0000 | |
commit | 93e9b703854909847fcd031592ca44cee0f5fa10 (patch) | |
tree | 73aef753b5e6724b512312c3f5eebca661d77309 /vnfmarket-be/deployment/install/vnfsdk_vm_init.sh | |
parent | 984346f6f482323595ca0f5b3eb570291641de70 (diff) |
Add MTU variable to the docker compose file
Change-Id: I8fb4ef9341c9fce5e07ee171387c72b2b91081aa
Jira:VNFSDK-92
Signed-off-by: Murali <murali.p@huawei.com>
Diffstat (limited to 'vnfmarket-be/deployment/install/vnfsdk_vm_init.sh')
-rwxr-xr-x | vnfmarket-be/deployment/install/vnfsdk_vm_init.sh | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/vnfmarket-be/deployment/install/vnfsdk_vm_init.sh b/vnfmarket-be/deployment/install/vnfsdk_vm_init.sh new file mode 100755 index 00000000..e1db6b5a --- /dev/null +++ b/vnfmarket-be/deployment/install/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 + |