DRAFT - This page describes how to build release E version of Non-RT RIC.
Note: In general, there is no need to build the images manually. All images for the release are available in nexus image repositories. Please refer to the page Draft - Release E - Run for running the release E Non-RT RIC.
Details of the architecture can be found from Release E page.
Table of Contents |
---|
Project Requirements
- Java 11 (make sure that JAVA_HOME environment variable points to correct Java version)
- Docker and docker-compose (latest)
- git (latest) - for downloading code repos
Maven 3.6
- Note: There are several build-time dependencies for ONAP Maven modules.
Your Maven build settings will need to access the ONAP Maven repos, as described on this ONAP wiki page. (A sample ONAP Maven settings file is available).
- Note: There are several build-time dependencies for ONAP Maven modules.
Build Code
Build nonrtric containers
Download the nonrtric repo (defaults to master branch): FIXME: branch name
git clone "https://gerrit.o-ran-sc.org/r/nonrtric" -b <branch-name>
Build the code and create docker images
To build docker images of r-app-catalogue, information-coordinator-service, policy-management-service (image name ends with policy-agent), helm-manager, dmaap-adaptor and dmaap-mediator-producer.
...
Code Block | ||||
---|---|---|---|---|
| ||||
$ docker images o-ran-sc/nonrtric-r-app-catalogue 1.1.0-SNAPSHOT o-ran-sc/nonrtric-information-coordinator-service 1.2.0-SNAPSHOT o-ran-sc/nonrtric-policy-agent 2.3.0-SNAPSHOT o-ran-sc/nonrtric-helm-manager 1.1.0-SNAPSHOT o-ran-sc/nonrtric-dmaap-adaptor 1.0.0-SNAPSHOT o-ran-sc/nonrtric-dmaap-mediator-producer 1.0.0-SNAPSHOT |
Build near-rt-ric-simulator container
Download the near-rt-ric-simulator repo (defaults to master branch - the simulator supports all available A1 versions):
git clone "https://gerrit.o-ran-sc.org/r/sim/a1-interface"
Create docker image
To create docker image near-rt-ric-simulator (note that the given image name must match the name given in docker startup later):
...
Code Block | ||||
---|---|---|---|---|
| ||||
$ docker images o-ran-sc/nonrtric-r-app-catalogue 1.1.0-SNAPSHOT o-ran-sc/nonrtric-information-coordinator-service 1.2.0-SNAPSHOT o-ran-sc/nonrtric-policy-agent 2.3.0-SNAPSHOT o-ran-sc/nonrtric-helm-manager 1.1.0-SNAPSHOT o-ran-sc/nonrtric-dmaap-adaptor 1.0.0-SNAPSHOT o-ran-sc/nonrtric-dmaap-mediator-producer 1.0.0-SNAPSHOT near-rt-ric-simulator latest |
Build NONRTRIC / Control panel and gateway containers
Download the nonrtric repo (defaults to master branch): FIXME: branch name
git clone "https://gerrit.o-ran-sc.org/r/portal/nonrtric-controlpanel" -b <branch-name>
Build the code and create docker images FIXME:Keep this block if the build can me transformed into one step mvn clean install
To build docker images of the gateway and the controlpanel
Code Block | ||
---|---|---|
| ||
cd nonrtric-controlpanel mvn clean install -Dmaven.test.skip=true |
FIXME:REMOVE THE BLOCK BELOW
Build the code and create docker images
Code Block | ||
---|---|---|
| ||
cd nonrtric-controlpanel/nonrtric-gateway mvn clean install -Dmaven.test.skip=true docker build --build-arg JAR=nonrtric-gateway-1.1.0-SNAPSHOT.jar -t o-ran-sc/nonrtric-gateway:1.1.0-SNAPSHOT . cd nonrtric-controlpanel/webapp-frontend docker build -t o-ran-sc/nonrtric-controlpanel:2.3.0-SNAPSHOT . |
...