diff options
author | Christopher Lott (cl778h) <clott@research.att.com> | 2017-07-26 18:04:56 -0400 |
---|---|---|
committer | Christopher Lott (cl778h) <clott@research.att.com> | 2017-07-26 18:06:34 -0400 |
commit | cc805e781c5c764860a1f801e637c6ed6e471f63 (patch) | |
tree | c2976903f21258a82b5557441d00a569731ecb4e /deliveries/dbstart.sh | |
parent | a9627f8c54b7e9d5712320621e8a0b748ad9baf4 (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/dbstart.sh')
-rwxr-xr-x | deliveries/dbstart.sh | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/deliveries/dbstart.sh b/deliveries/dbstart.sh index eaea9c18..518a5485 100755 --- a/deliveries/dbstart.sh +++ b/deliveries/dbstart.sh @@ -1,3 +1,9 @@ +#!/bin/bash + +# Establish environment variables +source $(dirname $0)/os_settings.sh + #docker create --name data_vol_portal -v /var/lib/mysql mariadb; -docker run -d --volumes-from data_vol_portal -p 3306:3306 -e MYSQL_ROOT_PASSWORD=Aa123456 --net=host --name ecompdb_portal ecompdb:portal; +echo "Running docker image ${DB_IMG_NAME} as name ${DB_CONT_NAME}" +docker run -d --volumes-from data_vol_portal -p 3306:3306 -e MYSQL_ROOT_PASSWORD=Aa123456 --net=host --name ${DB_CONT_NAME} ${DB_IMG_NAME}; |