diff options
Diffstat (limited to 'vnfmarket-be')
-rwxr-xr-x | vnfmarket-be/deployment/docker/docker-refrepo/src/main/docker/docker-entrypoint.sh | 7 | ||||
-rwxr-xr-x | vnfmarket-be/deployment/docker/docker-refrepo/src/main/docker/instance-init.sh | 5 |
2 files changed, 1 insertions, 11 deletions
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 |