Skip to content

Commit

Permalink
Dockerize ue controller
Browse files Browse the repository at this point in the history
  • Loading branch information
cueltschey committed Oct 11, 2024
1 parent 5ec96a2 commit cf49dff
Show file tree
Hide file tree
Showing 17 changed files with 87 additions and 320 deletions.
8 changes: 7 additions & 1 deletion configs/basic_ue_zmq.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
gnb:
config: "../../configs/zmq/gnb_zmq.yaml"
ip: "127.0.0.1"
port: 5000

namespaces:
- name: "ue1"

processes:
- type: "clean"
- type: "tester" # This means attack
config_file: "../../configs/zmq/ue_zmq.conf"
args: "--rrc.sdu_fuzzed_bits 1 --rrc.fuzz_target_message 'rrcSetupRequest'" # this means fuzz bits in the rrc setup
44 changes: 44 additions & 0 deletions controller/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
FROM ubuntu:22.04

ENV CONFIG="./configs/zmq/ue_zmq.conf"
ENV ARGS=""
ENV DEBIAN_FRONTEND=noninteractive

RUN apt-get update && apt-get upgrade -y && \
apt-get install -y \
cmake \
make \
gcc \
g++ \
pkg-config \
libfftw3-dev \
libmbedtls-dev \
libsctp-dev \
libyaml-cpp-dev \
libgtest-dev \
libzmq3-dev \
net-tools \
libboost-all-dev \
libconfig++-dev \
iperf3 \
git \
libxcb-cursor0 \
libgles2-mesa-dev \
gr-osmosdr \
python3 \
python3-pip && \
pip3 install kivy kivy_garden.graph

WORKDIR /opt

RUN git clone https://github.com/oran-testing/soft-t-ue && mkdir -p ./soft-t-ue/build

WORKDIR /opt/soft-t-ue/build
RUN cmake ../ && \
make -j$(nproc) && \
make install && \
srsran_install_configs.sh user

WORKDIR /opt/soft-t-ue/

CMD /usr/local/bin/srsue "${CONFIG}" "${ARGS}"
61 changes: 0 additions & 61 deletions controller/gnb/CoreNetwork.py

This file was deleted.

54 changes: 0 additions & 54 deletions controller/gnb/Gnb.py

This file was deleted.

63 changes: 0 additions & 63 deletions controller/gnb/MetricsServer.py

This file was deleted.

Empty file removed controller/gnb/__init__.py
Empty file.
122 changes: 0 additions & 122 deletions controller/gnb/main.py

This file was deleted.

2 changes: 1 addition & 1 deletion controller/ue/ChannelAgent.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import threading

from common.utils import kill_subprocess, start_subprocess
from utils import kill_subprocess, start_subprocess


class ChannelAgent:
Expand Down
2 changes: 1 addition & 1 deletion controller/common/Iperf.py → controller/ue/Iperf.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import threading
from datetime import datetime

from common.utils import kill_subprocess, start_subprocess
from utils import kill_subprocess, start_subprocess


class Iperf:
Expand Down
2 changes: 1 addition & 1 deletion controller/ue/MainApp.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
from ResultsPage import ResultsPage
from SharedState import SharedState

from common.utils import send_command
from utils import send_command


class MainApp(App):
Expand Down
2 changes: 1 addition & 1 deletion controller/ue/MetricsClient.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def __init__(self, plot_map):
try:
self.query_api: QueryApi = InfluxDBClient(
**{
"url": "http://192.168.1.11:8086",
"url": "http://localhost:8086",
"org": self.org,
"token": self.token
}
Expand Down
Loading

0 comments on commit cf49dff

Please sign in to comment.