X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=lcm%2Fdocker%2Finstance_init.sh;h=599584d4a04fecc42a8a068cb694d5451305d0b3;hb=1f98be8e933753c1ad97ce0fd8883d95899e212a;hp=d727efe3c8b8e4abb664979bb3d9c9fe9e472077;hpb=f2580f8d27468047c199f921728548e815a89d94;p=vfc%2Fgvnfm%2Fvnflcm.git diff --git a/lcm/docker/instance_init.sh b/lcm/docker/instance_init.sh index d727efe3..599584d4 100755 --- a/lcm/docker/instance_init.sh +++ b/lcm/docker/instance_init.sh @@ -1,21 +1,12 @@ #!/bin/bash -function install_python_libs { - cd /service/vfc/gvnfm/vnflcm/lcm - pip install -r requirements.txt -} function start_redis_server { redis-server & } function start_mysql { - su mysql -c /usr/bin/mysqld_safe & - service mysql start - # Wait for mysql to initialize; Set mysql root password - for i in {1..10}; do - sleep $i - bash /usr/bin/mysqladmin -u root password $MYSQL_ROOT_PASSWORD &> /dev/null && break - done + find /var/lib/mysql -type f -exec touch {} \; && service mysql start + sleep 1 } function create_database { @@ -24,7 +15,6 @@ function create_database { cd /service } -install_python_libs start_redis_server start_mysql create_database