From 88fa599e5ea22b09dddbb60543fa89543f9253c8 Mon Sep 17 00:00:00 2001 From: Murali Date: Tue, 19 Sep 2017 04:45:09 +0000 Subject: Remove sql configuration from docke files Change-Id: I44bbb0f50555d37fcaa256182f709c6a2a2b0ec8 Jira:VNFSDK-78 Signed-off-by: Murali --- .../docker/docker-refrepo/src/main/docker/docker-entrypoint.sh | 7 +------ .../docker/docker-refrepo/src/main/docker/instance-init.sh | 5 ----- 2 files changed, 1 insertion(+), 11 deletions(-) (limited to 'vnfmarket-be/deployment') diff --git a/vnfmarket-be/deployment/docker/docker-refrepo/src/main/docker/docker-entrypoint.sh b/vnfmarket-be/deployment/docker/docker-refrepo/src/main/docker/docker-entrypoint.sh index 4dba1a4f..df6cfce9 100755 --- a/vnfmarket-be/deployment/docker/docker-refrepo/src/main/docker/docker-entrypoint.sh +++ b/vnfmarket-be/deployment/docker/docker-refrepo/src/main/docker/docker-entrypoint.sh @@ -37,10 +37,6 @@ echo # Configure service based on docker environment variables ./instance-config.sh -# Start mysql -chown -R mysql /var/lib/mysql -chgrp -R mysql /var/lib/mysql -su mysql -c /usr/bin/mysqld_safe & # Perform one-time config @@ -48,8 +44,7 @@ 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 diff --git a/vnfmarket-be/deployment/docker/docker-refrepo/src/main/docker/instance-init.sh b/vnfmarket-be/deployment/docker/docker-refrepo/src/main/docker/instance-init.sh index f052db2a..697eaded 100755 --- a/vnfmarket-be/deployment/docker/docker-refrepo/src/main/docker/instance-init.sh +++ b/vnfmarket-be/deployment/docker/docker-refrepo/src/main/docker/instance-init.sh @@ -15,11 +15,6 @@ # limitations under the License. # -# Initialize DB schema -mysql -uroot -prootpass < init/marketplace_tables_mysql.sql - -# Set mysql password -sed -i 's|Changeme_123|rootpass|' webapps/ROOT/WEB-INF/classes/mybatis/configuration/configuration.xml #Set postgres instance IP sed -i 's|127.0.0.1|'"$POSTGRES_IP"'|' webapps/ROOT/WEB-INF/classes/mybatis/configuration/configuration.xml -- cgit 1.2.3-korg