aboutsummaryrefslogtreecommitdiffstats
path: root/docker/instance_init.sh
diff options
context:
space:
mode:
authorfujinhua <fu.jinhua@zte.com.cn>2018-08-08 14:03:17 +0800
committerfujinhua <fu.jinhua@zte.com.cn>2018-08-08 14:11:14 +0800
commit35b5bb6b423691ed1819732bae4e41864112810e (patch)
tree452fde436a5688e77c802f4bcc469bfd6e034539 /docker/instance_init.sh
parent007bfac568467b36154cb9cf43f83b38ad0e17d2 (diff)
Remove DB and redis service from catalog
Change-Id: I55361edccd5464702e828975694017b27a4f4f79 Issue-ID: VFC-978 Signed-off-by: fujinhua <fu.jinhua@zte.com.cn>
Diffstat (limited to 'docker/instance_init.sh')
-rwxr-xr-xdocker/instance_init.sh29
1 files changed, 1 insertions, 28 deletions
diff --git a/docker/instance_init.sh b/docker/instance_init.sh
index c2401144..cfc9b0d5 100755
--- a/docker/instance_init.sh
+++ b/docker/instance_init.sh
@@ -1,29 +1,2 @@
#!/bin/bash
-
-function install_python_libs {
- cd /service/vfc/nfvo/catalog/
- pip install -r requirements.txt
-}
-
-function start_redis_server {
- redis-server &
-}
-
-function start_mysql {
- service mysql start
- sleep 1
-}
-
-function create_database {
- cd /service/vfc/nfvo/catalog/resources/bin
- if [ ! -f dbexist.txt ]; then
- echo 1 > dbexist.txt
- bash initDB.sh root $MYSQL_ROOT_PASSWORD 3306 127.0.0.1
- fi
- cd /service
-}
-
-install_python_libs
-start_redis_server
-start_mysql
-create_database
+echo "No service needs init."