This repository contains Charmed Operators for both the Central Unit (CU) and Distributed Unit (DU) components of the OAI 7.2x RAN stack, built using Canonical's Operator Framework. It supports lifecycle management, container image building, and deployment automation for each unit.
Charmed-RAN/
βββ cu/ # Central Unit charm
β βββ build/ # Rockcraft build configs
β βββ src/ # Operator source code
β βββ lib/ # Reusable Python libraries
β βββ tests/ # Unit and integration tests
β βββ terraform/ # Infrastructure provisioning
β βββ charmcraft.yaml # Charmcraft configuration
β βββ cu_amd64.charm # Built charm artifact
β
βββ du/ # Distributed Unit charm
β βββ build/ # Rockcraft build configs
β βββ src/ # Operator source code
β βββ lib/ # Reusable Python libraries
β βββ tests/ # Unit and integration tests
β βββ terraform/ # Infrastructure provisioning
β βββ charmcraft.yaml # Charmcraft configuration
β βββ du_amd64.charm # Built charm artifact
β
βββ quick_deploy.sh # Deployment script (update image names before use)
βββ README.md
- Build Rock Image
cd cu/build
rockcraft pack- Push to Docker (Optional)
sudo rockcraft.skopeo --insecure-policy copy oci-archive:"oai-cu-72x_2.1.0_amd64.rock" docker-daemon:"docker.io/shivank1128/oai-cu:2.1.0"
docker push docker.io/shivank1128/oai-cu:2.1.0- Build the Charm
cd ../
charmcraft pack- Build Rock Image
cd du/build
rockcraft pack- Push to Docker (Optional)
sudo rockcraft.skopeo --insecure-policy copy oci-archive:"oai-du-72x_2.1.0_amd64.rock" docker-daemon:"docker.io/shivank1128/oai-du:2.1.0"
docker push docker.io/shivank1128/oai-du:2.1.0- Build the Charm
cd ../
charmcraft pack- Update image names in
quick_deploy.sh - Run the deployment script:
./quick_deploy.sh