Skip to content

ngkore/Charmed-RAN

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

2 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Charmed-RAN CU & DU (Central Unit & Distributed Unit)

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.


πŸ“ Project Structure

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 Instructions

πŸ”Ή Central Unit (CU)

  1. Build Rock Image
cd cu/build
rockcraft pack
  1. 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
  1. Build the Charm
cd ../
charmcraft pack

πŸ”Ή Distributed Unit (DU)

  1. Build Rock Image
cd du/build
rockcraft pack
  1. 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
  1. Build the Charm
cd ../
charmcraft pack

πŸš€ Deployment

  1. Update image names in quick_deploy.sh
  2. Run the deployment script:
./quick_deploy.sh

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages