README.md

August 11, 2026 ยท View on GitHub

OpenAirInterface: Building UBI Container Images

TABLE OF CONTENTS

  1. Pre-requisites
  2. How to Build UBI Images of Core Network Function
  3. How to Build UBI Images of gNB and UE

0. Pre-requisites

We assume that there is already a project name oai-tutorial in case there is no project like that then create a new project oc new-project oai-tutorial.

oc get secret etc-pki-entitlement -n openshift-config-managed -o json |   jq 'del(.metadata.resourceVersion)' | jq 'del(.metadata.creationTimestamp)' |   jq 'del(.metadata.uid)' | jq 'del(.metadata.namespace)' |   oc create -f -

1. How to Build UBI Images of Core Network Functions?

Create the build configs for each core network function, the build config yamls will also create the image streams.

oc create -f oai-amf.yaml
oc create -f oai-ausf.yaml
oc create -f oai-udr.yaml
oc create -f oai-udm.yaml
oc create -f oai-smf.yaml
oc create -f oai-upf.yaml
oc create -f oai-nrf.yaml

You can do oc get bc to see all the build configs in oai-tutorial project. Once all the build config definitions are there, you can start building the network function images parallel or one by one its a choice,

oc start-bc oai-amf 
oc start-bc oai-smf 
oc start-bc oai-ausf 
oc start-bc oai-nrf
oc start-bc oai-upf
oc start-bc oai-udm
oc start-bc oai-udr

2. How to Build UBI Images of gNB and UE?

For the moment CU and DU are using the same image with different configuration parameters so you just need to build one monolithic gNB image.

The gNB image is build in three steps

  • Base image
  • Builder image
  • Final/Target image

You can follow this tutorial to build RAN network function images.