summaryrefslogtreecommitdiffstats
path: root/deliveries/widget_ms_start.sh
diff options
context:
space:
mode:
authorChristopher Lott (cl778h) <clott@research.att.com>2017-07-26 18:04:56 -0400
committerChristopher Lott (cl778h) <clott@research.att.com>2017-07-26 18:06:34 -0400
commitcc805e781c5c764860a1f801e637c6ed6e471f63 (patch)
treec2976903f21258a82b5557441d00a569731ecb4e /deliveries/widget_ms_start.sh
parenta9627f8c54b7e9d5712320621e8a0b748ad9baf4 (diff)
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) <clott@research.att.com>
Diffstat (limited to 'deliveries/widget_ms_start.sh')
-rwxr-xr-xdeliveries/widget_ms_start.sh9
1 files changed, 7 insertions, 2 deletions
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}