2 function install_python_libs {
3 cd /service/vfc/gvnfm/vnflcm/lcm
4 pip install -r requirements.txt
7 function start_redis_server {
11 function start_mysql {
13 # Wait for mysql to initialize; Set mysql root password
16 bash /usr/bin/mysqladmin -u root password $MYSQL_ROOT_PASSWORD &> /dev/null && break
20 function create_database {
22 bash initDB.sh root $MYSQL_ROOT_PASSWORD 3306 127.0.0.1
25 function edit_configs {
26 cd /service/vfc/gvnfm/vnflcm/lcm/docker
27 bash instance_config.sh
30 function start_server {
31 cd /service/vfc/gvnfm/vnflcm/lcm
35 if [ $MYSQL_ROOT_PASSWORD ]; then
43 echo "MYSQL_ROOT_PASSWORD environment variable not set."