Cancel modifying the config file in the docker entrypoint
[modeling/etsicatalog.git] / docker / instance_init.sh
diff --git a/docker/instance_init.sh b/docker/instance_init.sh
deleted file mode 100755 (executable)
index d545d67..0000000
+++ /dev/null
@@ -1,27 +0,0 @@
-#!/bin/bash
-
-MYSQL_IP=`echo $MYSQL_ADDR | cut -d: -f 1`
-MYSQL_PORT=`echo $MYSQL_ADDR | cut -d: -f 2`
-
-if [ $MYSQL_AUTH ]; then
-    MYSQL_ROOT_USER=`echo $MYSQL_AUTH | cut -d: -f 1`
-    MYSQL_ROOT_PASSWORD=`echo $MYSQL_AUTH | cut -d: -f 2`
-else
-    MYSQL_ROOT_USER="root"
-    MYSQL_ROOT_PASSWORD="root"
-fi
-
-function create_database {
-
-    cd /service/modeling/etsicatalog/resources/bin
-    bash initDB.sh $MYSQL_ROOT_USER $MYSQL_ROOT_PASSWORD $MYSQL_PORT $MYSQL_IP
-
- }
-
-function migrate_database {
-    cd /service/modeling/etsicatalog
-    python manage.py migrate
-}
-
-create_database
-migrate_database