One single docker command to start policy agent is like this:
docker run -d -p 8081:8081 -p 8344:8433 -v "application_configuratio.json:/opt/app/policy-agent/application_configuration.json" [--network=<network-name>] nexus3.o-ran-sc.org:10004/o-ran-sc/nonrtric-policy-agent
- The key point here is that Korea team must compose an “application_configuration.json” file, this is the config file for policy-agent to start properly.
And to mount it when starting the docker container.
application_configuration.json template is like this:
{
"config": {
"//description": "Application configuration",
"controller": [
{
"name": "a1-controller",
"baseUrl": "http://a1-controller:8181",
"userName": "admin",
"password": "Kp8bJ4SXszM0WXlhak3eHlcse2gAw84vaoGGmJvUy2U"
}
],
"ric": [//should be gnodeb config
{
"name": "ric1",
"baseUrl": "http://a1-sim-OSC:8085/",
"controller": "a1-controller",
"managedElementIds": [
"kista_1",
"kista_2"
]
},
{
"name":"ric2",
"baseUrl":"http://a1-sim-STD:8085/",
"controller": "a1-controller",
"managedElementIds":[
"kista_1",
"kista_2"
]
}
]
}
}
If they are not using default network, should also append [--network=<network-name>] in the comand.