Skip to content
Snippets Groups Projects
Commit 9c3659c6 authored by Your Name's avatar Your Name
Browse files

Files to create gNB and UE with docker

parent 6aecb25a
No related branches found
No related tags found
No related merge requests found
FROM ubuntu:20.04
WORKDIR /root
RUN apt-get update -y
RUN apt-get install software-properties-common -y
RUN apt-get install wget -y
RUN apt-get install git -y
RUN add-apt-repository ppa:ettusresearch/uhd -y
RUN apt-get install libuhd-dev uhd-host -y
RUN apt-get install libuhd-dev uhd-host -y
RUN dpkg -i --force-overwrite /var/cache/apt/archives/libuhd4.2.0_4.2.0.1-0ubuntu1~focal1_amd64.deb; exit 0
RUN dpkg -i --force-overwrite /var/cache/apt/archives/libuhd4.4.0_4.4.0.0-0ubuntu1~focal1_amd64.deb; exit 0
RUN git clone https://gitlab.eurecom.fr/oai/openairinterface5g.git && cd openairinterface5g && git checkout develop
RUN wget -O /root/openairinterface5g/targets/PROJECTS/GENERIC-NR-5GC/CONF/ue.conf https://projetos.imd.ufrn.br/reginalab/sdran-openairinterface/-/raw/main/openairinterface5g/openairinterface-conf/flexric_gNB_UE/ue.conf?inline=false
RUN wget -O /root/openairinterface5g/targets/PROJECTS/GENERIC-NR-5GC/CONF/gnb.sa.band78.fr1.106PRB.usrpb210.conf https://projetos.imd.ufrn.br/reginalab/sdran-openairinterface/-/raw/main/openairinterface5g/openairinterface-conf/flexric_gNB_UE/gnb.sa.band78.fr1.106PRB.usrpb210.conf?inline=false
RUN cd /root/openairinterface5g/cmake_targets && ./build_oai -I -w USRP -i && ./build_oai --gNB --nrUE -w USRP
services:
oai-gnb:
container_name: "oai-gnb"
image: test-oai
command: tail -F anything
privileged: true
networks:
public_net:
ipv4_address: 192.168.70.151
oai-ue:
container_name: "oai-ue"
image: test-oai
command: tail -F anything
privileged: true
networks:
public_net:
ipv4_address: 192.168.70.150
networks:
public_net:
external:
name: demo-oai-public-net
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment