...
- Download the configDb source files from configdb-3.0.0.zip
- cd configdb (after extracting the files)
- Setup and run maridb container
- 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
- JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64/ mvn clean install
- Run the application
- JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64/ mvn spring-boot:run &
- Execute this script(update configDB IPAddress and Port) to upload sample closed-loop-data: config_requests_script_closed_loop.sh
CPS and CPS-TBDMT:
CPS:
- git clone "https://gerrit.onap.org/r/cps"
- cd cps/
- mvn clean install
- cd docker-compose/
- docker-compose up
...
Creating anchor:
curl --location --user cpsuser:cpsr0cks! --request POST \
http://$CPS_IP:8080/cps/api/v1/dataspaces/E2EDemo/anchors?schema-set-name=ran-network \
-d anchor-name=11
Uploading cps sample-payload:
payload-ran-network.json
curl --location --user cpsuser:cpsr0cks! --request POST \
http://$CPS_IP:8080/cps/api/v1/dataspaces/E2EDemo/anchors/11/nodes \
--header 'Content-Type: application/json' \
-d @payload-ran-network.json
ran-inventory-sample-data.json
curl --location --user cpsuser:cpsr0cks! --request POST \
http://$CPS_IP:8080/cps/api/v1/dataspaces/E2EDemo/anchors/ran-inventory-anchor/nodes \
--header 'Content-Type: application/json' \
-d @ran-inventory-sample-data.json ran-inventory-sample-data.json
Uploading tbdmt-templates:
...