summaryrefslogtreecommitdiffstats
path: root/nokia/vnfmdriver
diff options
context:
space:
mode:
authoryufei_zhou <yufei.zhou@nokia-sbell.com>2017-10-18 10:52:42 +0800
committeryufei_zhou <yufei.zhou@nokia-sbell.com>2017-10-18 10:55:03 +0800
commit745f0040b6ad786862b5548cf9285267d209d613 (patch)
tree774c68ea57a814f0c6883e4d0f45ec8b146ccf3c /nokia/vnfmdriver
parent3dd2f129d7cdb40dfc2d9300cae3ccd0a9e2fa11 (diff)
start mysql in docker
Change-Id: I887515145fe309692b901d9489c73b420cdc6693 Issue-ID: VFC-54 Signed-off-by: yufei_zhou <yufei.zhou@nokia-sbell.com>
Diffstat (limited to 'nokia/vnfmdriver')
-rwxr-xr-xnokia/vnfmdriver/vfcadaptorservice/deployment/src/main/release/bin/init_db.sh1
-rwxr-xr-xnokia/vnfmdriver/vfcadaptorservice/docker/instance-init.sh7
2 files changed, 8 insertions, 0 deletions
diff --git a/nokia/vnfmdriver/vfcadaptorservice/deployment/src/main/release/bin/init_db.sh b/nokia/vnfmdriver/vfcadaptorservice/deployment/src/main/release/bin/init_db.sh
index e510bfaa..a200e513 100755
--- a/nokia/vnfmdriver/vfcadaptorservice/deployment/src/main/release/bin/init_db.sh
+++ b/nokia/vnfmdriver/vfcadaptorservice/deployment/src/main/release/bin/init_db.sh
@@ -44,6 +44,7 @@ fi
echo
echo "DB-INIT [vnfm_db] : START"
+echo "start to create database and tables ... "
mysql -u$1 -p$2 -h$3 -P$4 <$(cd `dirname $0`; pwd)/db/mysql/db-schema.sql > myout_init_db.file 2>&1
if [ $? != 0 ] ; then
diff --git a/nokia/vnfmdriver/vfcadaptorservice/docker/instance-init.sh b/nokia/vnfmdriver/vfcadaptorservice/docker/instance-init.sh
index 3c1ec6ca..a0595456 100755
--- a/nokia/vnfmdriver/vfcadaptorservice/docker/instance-init.sh
+++ b/nokia/vnfmdriver/vfcadaptorservice/docker/instance-init.sh
@@ -16,6 +16,13 @@
#
# Config mysql credentials
+function start_mysql {
+ service mysql start
+ sleep 1
+}
+
+start_mysql
+
# Initialize MySQL schema
cd bin
./init_db.sh root rootpass 127.0.0.1 3306