From 6f588d5a78f6baabb7c96aebbfd2fcfb443e5802 Mon Sep 17 00:00:00 2001 From: "Christopher Lott (cl778h)" Date: Mon, 7 Aug 2017 08:26:05 -0400 Subject: Move hardcoded container tags to variables. Improve robustness of management scripts: move image tag name prefixes to os_settings.sh script and use them in all scripts, also in ONAP boot/portal_vm_init.sh script. Issue: PORTAL-62 Change-Id: I62bd27f498d65551c70e18dced38de7bc3be016f Signed-off-by: Christopher Lott (cl778h) --- deliveries/dbstart.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'deliveries/dbstart.sh') diff --git a/deliveries/dbstart.sh b/deliveries/dbstart.sh index 518a5485..c76cb391 100755 --- a/deliveries/dbstart.sh +++ b/deliveries/dbstart.sh @@ -3,7 +3,7 @@ # Establish environment variables source $(dirname $0)/os_settings.sh -#docker create --name data_vol_portal -v /var/lib/mysql mariadb; +#docker create --name ${DB_VOL_NAME} -v /var/lib/mysql mariadb; -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}; +echo "Running docker image ${DB_IMG_NAME} as name ${DB_CONT_NAME} with volume ${DB_VOL_NAME}" +docker run -d --volumes-from ${DB_VOL_NAME} -p 3306:3306 -e MYSQL_ROOT_PASSWORD=Aa123456 --net=host --name ${DB_CONT_NAME} ${DB_IMG_NAME}; -- cgit 1.2.3-korg