Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Follow the steps below Depending on you requirements there are several ways to setup the CPS environment. 

Checkout the features project

Checkout https://gerrit.nordix.org/#/admin/projects/onap/ccsdk/features

Checkout the cps_poc branch

Code Block
git checkout cps_poc

Run a Postgres 13 container instance and create 'cpsdb' database.

Code Block
languagebash
docker run -d \
	--name postgres-instance \
	-e POSTGRES_DB=cpsdb \
	-e POSTGRES_USER=cps \
	-e POSTGRES_PASSWORD=cps \
	postgres:13.0

NB. On Linux the IP address of the Docker container (DB_HOST) can be determined using following command
('postgres-instance' is a container name)

Code Block
languagebash
docker inspect postgres-instance | grep IPAddress

Setup schema in DB

The spring-boot application auto creates the schema on startup via a script run by JPA.

Set environment variables with relevant connection details which can be found in application.yaml

Building the project

When building the project run from the root cps folder :

Code Block
mvn clean install

Running the project

From the features\cps\ folder run the following command :

Code Block
java -DDB_HOST=localhost -DDB_USERNAME=cps -DDB_PASSWORD=cps -jar cps-rest/target/cps-rest-0.0.1-SNAPSHOT.jar

...

and Its dependencies:

  1. Local Setup Using Docker
  2. Local Setup Using CSIT
  3. CPS Setup Using Minikube
  4. SDNC, RAN-sim controller and Honeycomb Simulator Setup Locally
  5. CPS-OOM Deployment for Kubernetes VM

Optional supporting setup guides:

...