Versions Compared

Key

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

This page is out of date.
Please see the relevant page for the latest release: e.g. Release J - Run in Docker


This article helps you to deploy the nonrtric NON-RT-RIC components using docker compose.

Table of Contents

Prerequisite

  • Docker
  • Docker Compose

Installation

Clone nonrtric and go to nonrtric/docker-compose/

...

You can see a few folders, each of them container docker-compose file for different components. You have the option to install the nonrtric with/without A1 controller/dmapp-mr based on your requirement.

...

NON-RT-RIC without A1 Controller, with dmaap-mr

withDmaap_nosdnc/docker-compose.yml
This file is to create nonrtric system without sdnc a1-controller, with dmapp-mr

...

You can see the docker containers with docker ps,

Image Modified

you should be able to see containers running as above.

Init Script

You can create sample policy types/policy instances of both Standard & OSC Version.

...

http://localhost:[control-panel-port]/


Manual test


Code Block
languagebash
titlesend messages to dmaap-mr
cd nonrtric/docker-compose/data
curl -X POST "http://localhost:3904/events/A1-POLICY-AGENT-READ/" -H "accept: application/json" -H "Content-Type: application/json" --data-binary @testdata/dmaap-msg-policy-get.json

...

Code Block
languagebash
titlepull messages from dmaap-mr
curl -X GET "http://localhost:3904/events/A1-POLICY-AGENT-WRITE/users/policy-agent?timeout=15000&limit=100" -H "accept: application/json" -H "Content-Type: application/json" | jq .

You can see the messages from dmaap-mr topic A1-POLICY-AGENT-WRITE, with consumer group "user", consumer id "policy-agent"


Message format

Code Block
languagejs
titlecreate a policy via dmaap-mr
{
        "apiVersion": "1.0",
        "operation": "PUT",
        "correlationId": "1596304565904621535",
        "originatorId": "849e6c6b420",
        "payload": {
            "scope": {
                "ueId": "ue3000",
                "qosId": "qos3000"
            },
            "qosObjective": {
                "priorityLevel": 3000
            }
        },
        "requestId": "23343221",
        "target": "policy-agent",
        "timestamp": "2020-08-01 17:56:05.905035",
        "type": "request",
        "url": "/policy?id=0f7bb041e1584b1fa17e87520d70a3000&ric=ric1&service=service1&type=1"
    }

...