Skip to content

Instantly share code, notes, and snippets.

@krisk0
Last active September 6, 2022 15:05
Show Gist options
  • Save krisk0/22db13a23f0c07f808d9915bc0dc3d0f to your computer and use it in GitHub Desktop.
Save krisk0/22db13a23f0c07f808d9915bc0dc3d0f to your computer and use it in GitHub Desktop.

Build and run dockerized version of Open5gs version 1.2.0

As of today (21 Oct 2020) step-by-step instruction found in docker-open5gs does not produce expected result: sgw and pgw daemons do not start due to upstream (Open5gs) executable name change.

To start a fully functional core network, follow the steps below

  1. Download Open5gs 1.2.0 and my patch, unpack, apply patch.
wget -O - -q https://github.com/open5gs/open5gs/archive/v1.2.0.tar.gz | tar xz
wget https://gist.githubusercontent.com/krisk0/13eab47dc687c414b8839ad9e2ee6f36/raw/b3096ab7a18229c274c82126d1056e6fbd914abd/open5gs-12.diff
patch -p0 < open5gs-12.diff
  1. Build images with command from docker-open5gs README:
cd open5gs-1.2.0/docker
USER=open5gs DIST=ubuntu TAG=bionic BRANCH=v1.2.0 docker-compose build
  1. List docker images as that README suggests.

  2. Now proceed from step 2 of that README:

git clone https://github.com/hassiweb/docker-open5gs
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment