Change-Id: I44bbb0f50555d37fcaa256182f709c6a2a2b0ec8
Jira:VNFSDK-78
Signed-off-by: Murali <murali.p@huawei.com>
# 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
# 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
# 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