Versions Compared

Key

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

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


This article is an out of date guide to help you to deploy the nonrtric A1 Policy Functions using docker compose.

Table of Contents

Prerequisite

  • Docker
  • Docker Compose

Installation

Clone nonrtric and go to nonrtric/docker-compose/

Image Removed


The docker-compose.yml file will create an entire nonrtric system with one command:
docker-compose up
Two docker-compose files are provided in this folder:
nosdnc/docker-compose.yml
This file Image Added


You can see a few folders for different components. You have the option to install the nonrtric with/without A1 controller based on your requirement.

NONRTRIC A1 Policy functions without A1 Controller

This command is to create nonrtric system without sdnc a1-controller
sdnc/docker-compose.yml
This file


Code Block
languagebash
themeMidnight
titlenosdnc
cd nonrtric/docker-compose/
cp policy-service/config/application_configuration.nocontroller.json policy-service/config/application_configuration.json
docker-compose -f docker-compose.yml -f control-panel/docker-compose.yaml up -d


You can see the docker containers with docker ps,

Image Added

you should be able to see containers running as above.

Nonrtric with A1 Controller

This command is to create nonrtric system with sdnc a1-controller
Howto:
cd nosdnc/
docker-compose up
or
cd sdnc/
docker-compose up
The scripts in data/ will generate


Code Block
languagebash
themeMidnight
titlesdnc
cd nonrtric/docker-compose/
cp policy-service/config/application_configuration.controller.json policy-service/config/application_configuration.json
docker-compose -f docker-compose.yml -f sdnc/docker-compose.yml -f control-panel/docker-compose.yaml up -d

You can see the docker containers with docker ps,


Image Added

you should be able to see container running as above.

Init Script

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

Run the fill_data.sh script under directory /data to create some dummy data in the running system.
It will create:
one policy type in a1-sim-OSC
one service in policy agent
one policy in a1-sim-OSC
one policy in a1-sim-STD
Run command:
cd data/
./fill_data.sh

Command to load the data,

Code Block
languagebash
themeMidnight
titleload data
cd /nonrtric/docker-compose/data

./preparePmsData.sh.sh [policy-agent-port] [a1-sim-OSC-port] [a1-sim-STD-port] [http/https]

...

This will create,

  • one policy type in a1-sim-OSC
  • one service in policy agent
  • one policy in a1-sim-OSC
  • one policy in a1-sim-STD

Open the GUI to view all the policies & policy types created by the above script.

http://localhost:[control-panel-port]/All the generated data is shown on the web page


Image Added