diff options
Diffstat (limited to 'boot/vnfsdk_vm_init.sh')
-rwxr-xr-x | boot/vnfsdk_vm_init.sh | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/boot/vnfsdk_vm_init.sh b/boot/vnfsdk_vm_init.sh deleted file mode 100755 index 6d99d29b..00000000 --- a/boot/vnfsdk_vm_init.sh +++ /dev/null @@ -1,31 +0,0 @@ -#!/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) -export NEXUS_DOCKER_REPO=$(cat /opt/config/nexus_docker_repo.txt) -export MTU=$(/sbin/ifconfig | grep MTU | sed 's/.*MTU://' | sed 's/ .*//' | sort -n | head -1) -#DOCKER_IMAGE_VERSION=$(cat /opt/config/docker_version.txt) --> not needed at the moment - -# 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/vnfsdk/refrepo:${REFREPO_TAG} -docker pull $NEXUS_DOCKER_REPO/onap/vnfsdk/refrepo/postgres:${POSTGRES_TAG} - -# docker-compose is not in /usr/bin -/opt/docker/docker-compose down -/opt/docker/docker-compose up -d - |