diff options
author | Christopher Lott (cl778h) <clott@research.att.com> | 2017-10-02 12:09:24 -0400 |
---|---|---|
committer | Christopher Lott (cl778h) <clott@research.att.com> | 2017-10-02 13:35:07 -0400 |
commit | 0acb4fcc133056f9fb401b6e23d70f6ec895302a (patch) | |
tree | 11d7e5f43ecaca871623c3d58a188a5503d99186 /deliveries/portal_vm_init.sh | |
parent | 7c18602deea3cd59158d6ae3a8894b10c55193a5 (diff) |
Update deliveries for portal deployment
Use onap (not openecomp) in Nexus tag.
Revise environment variables suitable for Rackspace via HEAT.
Use registry nexus.onap.org:10001 instead of port 1003.
Drop portal_vm_init.sh; moved back to ONAP demo repo.
Issue: PORTAL-90
Change-Id: Ib51668eceff851db0271cd6acb2bdecf08cafa06
Signed-off-by: Christopher Lott (cl778h) <clott@research.att.com>
Diffstat (limited to 'deliveries/portal_vm_init.sh')
-rwxr-xr-x | deliveries/portal_vm_init.sh | 53 |
1 files changed, 0 insertions, 53 deletions
diff --git a/deliveries/portal_vm_init.sh b/deliveries/portal_vm_init.sh deleted file mode 100755 index 8fb971a8..00000000 --- a/deliveries/portal_vm_init.sh +++ /dev/null @@ -1,53 +0,0 @@ -#!/bin/bash -# Starts docker containers for ONAP Portal -# This version for Amsterdam/R1 of Portal, uses docker-compose. -# Temporarily maintained in portal/deliveries area; -# replicated from the ONAP demo/boot area due to release concerns. - -# 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) -# Can use this version instead to use snapshot versions: -# DOCKER_IMAGE_VERSION=latest -# CLI has a different version than Portal -CLI_IMAGE_VERSION=1.1-STAGING-latest - -# Refresh configuration and scripts -cd /opt/portal -git pull -cd deliveries - -# Get variables from docker-compose environment file -source .env - -# Copy property files to new directory -mkdir -p $PROPS_DIR -cp -r properties_rackspace/* $PROPS_DIR -# Also create logs directory -mkdir -p $LOGS_DIR - -# Refresh images -docker login -u $NEXUS_USERNAME -p $NEXUS_PASSWD $NEXUS_DOCKER_REPO -docker pull $NEXUS_DOCKER_REPO/openecomp/${DB_IMG_NAME}:$DOCKER_IMAGE_VERSION -docker pull $NEXUS_DOCKER_REPO/openecomp/${EP_IMG_NAME}:$DOCKER_IMAGE_VERSION -docker pull $NEXUS_DOCKER_REPO/openecomp/${WMS_IMG_NAME}:$DOCKER_IMAGE_VERSION - -# CLI is not built locally -docker pull $NEXUS_DOCKER_REPO/onap/cli:${CLI_IMAGE_VERSION} - -# Tag them as expected by docker-compose file -docker tag $NEXUS_DOCKER_REPO/openecomp/${DB_IMG_NAME}:$DOCKER_IMAGE_VERSION $DB_IMG_NAME:$PORTAL_TAG -docker tag $NEXUS_DOCKER_REPO/openecomp/${EP_IMG_NAME}:$DOCKER_IMAGE_VERSION $EP_IMG_NAME:$PORTAL_TAG -docker tag $NEXUS_DOCKER_REPO/openecomp/${WMS_IMG_NAME}:$DOCKER_IMAGE_VERSION $WMS_IMG_NAME:$PORTAL_TAG - -# Tag CLI also -docker tag $NEXUS_DOCKER_REPO/onap/cli:${CLI_IMAGE_VERSION} onap/cli:$PORTAL_TAG - -# compose is not in /usr/bin -/opt/docker/docker-compose down -/opt/docker/docker-compose up -d |