...
Set environment variables with relevant connection details which can be found in application.yml in cps-application/resources folder.:
Code Block |
---|
export CPS_USERNAME=cpsuser
export CPS_PASSWORD=cpsr0cks!
export DMI_USERNAME=cpsuser
export DMI_PASSWORD=cpsr0cks! |
Running the project
Info |
---|
This option is if you have a local PostgreSQL running. |
...
Code Block |
---|
mvn spring-boot:run -DDB_HOST=localhost -DDB_USERNAME=cps -DDB_PASSWORD=cps -DCPS_USERNAME=cps -DCPS_PASSWORD=cps -DDMI_USERNAME=cps -DDMI_PASSWORD=cps |
Setting up SDNC, CPS & NCMP, DMI-Plugin and netconf-pnp-simulator locally:
...
Navigate to the folder where the files were extracted and run the below command from '<sim/>' directory
Code Block |
---|
language | bash |
---|
title | Docker compose command from sim folder |
---|
|
docker-compose up -d |
Then navigate to the folder where the files were extracted and run the below command.
Code Block |
---|
language | bash |
---|
title | Create a docker network |
---|
|
docker network create test_network |
Then cd .. and run the following command.
Code Block |
---|
language | bash |
---|
title | docker compose command |
---|
|
docker-compose up -d |
If you wish to only run certain containers, comment out the lines in the run_all.sh file that bring up those containersCheck using 'docker container ls' that SDNC, CPS&NCMP, DMI-Plugin and netconf-pnp-simulator are up and running.