Add deployment file for srsRAN gNB

This commit is contained in:
herlesupreeth
2022-05-09 16:30:20 +02:00
parent fe47d52a7f
commit 708a870bf5
2 changed files with 34 additions and 1 deletions

View File

@@ -44,9 +44,11 @@ source .env
docker-compose build --no-cache
docker-compose up
# srsLTE eNB
# srsRAN eNB
docker-compose -f srsenb.yaml build --no-cache
docker-compose -f srsenb.yaml up -d && docker attach srsenb
# srsRAN gNB
docker-compose -f srsgnb.yaml up -d && docker attach srsgnb
# UERANSIM gNB
docker-compose -f nr-gnb.yaml up -d && docker attach nr_gnb

31
srsgnb.yaml Normal file
View File

@@ -0,0 +1,31 @@
version: '3'
services:
srsgnb:
build: ./srslte
image: docker_srslte
container_name: srsgnb
stdin_open: true
tty: true
privileged: true
devices:
- "/dev/bus"
volumes:
- /dev/serial:/dev/serial:ro
- /dev/bus/usb:/dev/bus/usb:ro
- ./srslte:/mnt/srslte
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
env_file:
- .env
environment:
- COMPONENT_NAME=gnb
expose:
- "38412/sctp"
- "2152/udp"
networks:
default:
ipv4_address: ${SRS_ENB_IP}
networks:
default:
external:
name: docker_open5gs_default