Skip to content
Home » Open5Gs – Create Container Images on Rocky8 linux

Open5Gs – Create Container Images on Rocky8 linux

Introduction

In this article we will go through the steps in preparing Open5gs containers using Dockerfile.

Following this article, it is assumed that you already have a repository. Otherwise, you can follow our other article setting up a private repository

Preparing Container Images

The Base OS will be Rocky OS 8

$ docker pull rockylinux 

$ docker run -ti rockylinux /bin/bash

# Install extra packages

$ dnf install 
       python3 meson cmake ninja-build gcc gcc-c++ flex bison git cmake 
       lksctp-tools-devel libidn-devel gnutls-devel libgcrypt-devel 
       openssl-devel cyrus-sasl-devel libyaml-devel mongo-c-driver-devel 
       libmicrohttpd-devel libcurl-devel libnghttp2-devel libtalloc-devel


Building Open5Gs images

# Build Open5Gs base image

# clone Open5gs from Github

$ git clone https://github.com/open5gs/open5gs
$ cd open5gs

# compile
$ meson build --prefix=`pwd`/install
$ ninja -C build

# follow link https://open5gs.org/open5gs/docs/ for more info

# after successful build/compile commit the image changes in docker
$ docker commit 243891d606e1 localhost:5000/base-open5gs:v2.9.5
$ docker push localhost:5000/base-open5gs:v7.0.5

Building UERANSIM Image

# re-using Open5gs Base images

# clone and compile UERANSIM
$ git clone https://github.com/aligungr/UERANSIM
$ cd UERANSIM/
$ make

# after successful build/compile commit the image changes in docker
$ docker commit f2aa601b2def localhost:5000/base-ueransim:v1.0.0
$ docker push localhost:5000/base-ueransim:v1.0.0

Building WebUI Container Image

Leave a Reply

Your email address will not be published. Required fields are marked *