Prerequisites:
- Docker (tutorial here) and docker compose (tutorial here)
- An account on hub.docker.com
- IPv4 forwarding enabled (just run
sudo sysctl net.ipv4.conf.all.forwarding=1
andsudo iptables -P FORWARD ACCEPT
) - Python3
Run the following:
#!/bin/bash
docker login
docker pull oaisoftwarealliance/oai-amf:v1.5.1
docker pull oaisoftwarealliance/oai-nrf:v1.5.1
docker pull oaisoftwarealliance/oai-spgwu-tiny:v1.5.1
docker pull oaisoftwarealliance/oai-smf:v1.5.1
docker pull oaisoftwarealliance/oai-udr:v1.5.1
docker pull oaisoftwarealliance/oai-udm:v1.5.1
docker pull oaisoftwarealliance/oai-ausf:v1.5.1
docker pull oaisoftwarealliance/oai-upf-vpp:v1.5.1
docker pull oaisoftwarealliance/oai-nssf:v1.5.1
docker pull oaisoftwarealliance/oai-pcf:v1.5.1
docker pull oaisoftwarealliance/oai-nef:v1.5.1
# Utility image to generate traffic
docker pull oaisoftwarealliance/trf-gen-cn5g:latest
You will be asked for your dockerhub username and password first
Run the following
#!/bin/bash
git clone --branch v1.5.1 https://gitlab.eurecom.fr/oai/cn5g/oai-cn5g-fed.git
cd oai-cn5g-fed
git checkout -f v1.5.1
./scripts/syncComponents.sh
git submodule deinit --all --force
git submodule init
git submodule update
Go in this folder
cd oai-cn5g-fed/docker-compose
And comment out (by adding # at the beginning of the line) these lines:
cap_drop:
- ALL
in the file named docker-compose-no-privilege.yaml
.
Then deploy the core network with the following command:
docker-compose -f docker-compose-no-privilege.yaml up
git clone https://gitlab.eurecom.fr/oai/openairinterface5g.git
cd openairinterface5g
cd cmake_targets
./build_oai --ninja -I
./build_oai --ninja --gNB --nrUE -w SIMU -c
Copy all the scripts in the scripts
folder of this repo in openairinterface5g/
In one terminal ./run_gnb.sh
, wait a few seconds, and then in another terminal ./run_ue.sh