Two main process in vfc huawei vnfm pod
[vfc/nfvo/driver/vnfm/svnfm.git] / huawei / vnfmadapter / VnfmadapterService / docker / docker-entrypoint.sh
index 9cfd4dc..e61bbd1 100755 (executable)
@@ -46,11 +46,17 @@ echo
 # Configure service based on docker environment variables
 ./instance-config.sh
 
+# Start mysql
+/usr/bin/mysqld_safe &
+
 # Perform one-time config
 if [ ! -e init.log ]; then
     # Perform workarounds due to defects in release binary
     ./instance-workaround.sh
 
+    # Init mysql; set root password
+    ./init-mysql.sh
+
     # microservice-specific one-time initialization
     ./instance-init.sh