Config DB is a spring boot application with JPA support. MariaDB is used to implement Config DB.
Latest Source code is available at Image versions, preparation steps and useful info-Config DB Preload Info
Follow the below steps to setup config DB.
Steps
cd configdb
#Setup and run maridb container -
...
SDNC_ConfigDB_SchemaV4.sql
...
is attached in the Config DB - Pre-loaded Data section
sudo docker run -p 3306:3306 -v $PWD/SDNC_ConfigDB_SchemaV4.sql:/docker-entrypoint-initdb.d/SDNC_ConfigDB_SchemaV4.sql --name mariadb -e MYSQL_ROOT_PASSWORD=password -d mariadb
#Navigate to project directory
cd configdb/Config-DB-API-App
#Build the application
mvn clean install
#Run the application
mvn spring-boot:run &
Execute the below script
...
(with the Config DB IP as an argument) for closed loop and intelligent slicing. This is applicable for closed loop scenario alone.
1. configdb_requests_script_closedloop.sh
2. config_requests_script_intelligent_slicing.sh