You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

(warning) Copied from Release A, not updated to B level yet!

This page describes how to get the release A version of NonRTRIC up and running locally. All four components of the NonRTRIC repo run inside docker containers, and communicate via a docker network. Details of the architecture can be found in the link: Release B.

Project Requirements

  • Java 11 (make sure that JAVA_HOME environment variable points to correct Java version)
  • Maven 3.6
  • Docker (latest)

Build Code

  • Download the nonrtric repo: 
     git clone "https://gerrit.o-ran-sc.org/r/nonrtric" -b Amber
  • For local testing, change the 'a1ControllerBaseUrl' in application.yaml file of policy-agent to http://a1-controller-container:8181 (The current URL http://sdnc.onap:8282 is used in Kubernetes-based ONAP deployment).
    cd nonrtric/policy-agent/config
    vi application.yaml

  • Build the code and create docker images. 
    cd ../..
    mvn clean install

Run A1 Controller Docker Container

  • Change directory to: 
    cd nonrtric/sdnc-a1-controller/oam/installation/src/main/yaml
  • Run docker container using the command below and wait until this message appears 'Healthcheck Passed in XX seconds'. 
    docker-compose up a1-controller
  • The Karaf logs of A1 controller can be seen using the following commands: 
    docker exec -it a1-controller-container sh
    cd opt/opendaylight/data/log/
    tail -f karaf.log


Run Near-RT-RIC Simulator Docker Container

  • Run docker container using this command: 
    docker run -p 8181:8085 --network=nonrtric-docker-net --name=ric1 o-ran-sc/near-rt-ric-simulator:1.0.0-SNAPSHOT
  • Change directory to:  
    cd nonrtric/near-rt-ric-simulator/ric-plt/a1
  • Put an example policy_type inside the near-rt-ric-simulator by running this curl command:
    curl -X PUT -v "http://localhost:8181/policytypes/STD_QoSNudging_0.2.0" -H "accept: application/json" 
    -H "Content-Type: application/json" --data-binary @policy_type_STD_QoSNudging_0.2.0.json

Run Policy-agent Docker Container

  • Run docker container using this command: 
    docker run -p 8081:8081 --network=nonrtric-docker-net --name=policy-agent-container o-ran-sc/nonrtric-policy-agent:1.0.0-SNAPSHOT

Run Non-RT-RIC Dashboard Docker Container

  • Run docker container using this command: 
    docker run -p 8080:8080 --network=nonrtric-docker-net o-ran-sc/nonrtric-dashboard:1.0.0-SNAPSHOT

Open Dashboard UI

  • No labels