From cc805e781c5c764860a1f801e637c6ed6e471f63 Mon Sep 17 00:00:00 2001 From: "Christopher Lott (cl778h)" Date: Wed, 26 Jul 2017 18:04:56 -0400 Subject: Prepare to deploy widget-ms docker container in Rackspace Restore hardcoded image name ep:1610-1 due to demo/boot script file dependencies. Store image and container names in settings file; push and tag image for WMS at same time as portal and db. Issue: PORTAL-30 Change-Id: I349bfb91676dda0b4f106c6cab784dc6e6cec647 Signed-off-by: Christopher Lott (cl778h) --- deliveries/widget_ms_start.sh | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'deliveries/widget_ms_start.sh') diff --git a/deliveries/widget_ms_start.sh b/deliveries/widget_ms_start.sh index aa9da147..5e51aebe 100755 --- a/deliveries/widget_ms_start.sh +++ b/deliveries/widget_ms_start.sh @@ -1,5 +1,10 @@ +#!/bin/sh + +# Establish environment variables +source $(dirname $0)/os_settings.sh + BASEDIR=/PROJECT/OpenSource/UbuntuEP WIDGETMSAPPPROPDIR=ECOMPWIDGETMS -echo "Starting ecomp-portal-widget-ms image in a new container !!!" -docker run -d --name "ecomp-portal-widget-ms" -p 8082:8082 -v ${BASEDIR}/etc/${WIDGETMSAPPPROPDIR}/application.properties:/application.properties widget-ms +echo "Running docker image ${WMS_IMG_NAME} as container ${WMS_CONT_NAME}" +docker run -d --name ${WMS_CONT_NAME} -p 8082:8082 -v ${BASEDIR}/etc/${WIDGETMSAPPPROPDIR}/application.properties:/application.properties ${WMS_IMG_NAME} -- cgit 1.2.3-korg