File tree 2 files changed +46
-0
lines changed
2 files changed +46
-0
lines changed Original file line number Diff line number Diff line change
1
+ FROM gcc:9.4.0 AS builder
2
+
3
+ LABEL maintainer="Niloy Saha <
[email protected] >"
4
+ LABEL description="UERANSIM v3.2.6"
5
+
6
+ ENV DEBIAN_FRONTEND noninteractive
7
+
8
+ # Install dependencies
9
+ RUN apt-get update \
10
+ && apt-get install libsctp-dev lksctp-tools iproute2 -y \
11
+ && wget https://github.com/Kitware/CMake/releases/download/v3.22.1/cmake-3.22.1-linux-x86_64.sh -O cmake_installer.sh \
12
+ && chmod +x cmake_installer.sh \
13
+ && ./cmake_installer.sh --skip-license \
14
+ && git clone -b v3.2.6 -j `nproc` https://github.com/aligungr/UERANSIM \
15
+ && cd ./UERANSIM \
16
+ && make
17
+
18
+ FROM ubuntu:20.04
19
+
20
+ ENV DEBIAN_FRONTEND noninteractive
21
+
22
+ # Install runtime dependencies + debug tools
23
+ RUN apt-get update \
24
+ && apt-get install libsctp-dev lksctp-tools iproute2 iputils-ping -y \
25
+ && apt-get install vim iperf3 net-tools tcpdump -y \
26
+ && apt-get install python3 python3-pip wget -y \
27
+ && apt-get clean
28
+
29
+ WORKDIR /ueransim
30
+
31
+ RUN mkdir -p config/ binder/
32
+
33
+ COPY /app/* ./
34
+ RUN chmod +x init.sh
35
+
36
+ COPY --from=builder /UERANSIM/build/nr-gnb .
37
+ COPY --from=builder /UERANSIM/build/nr-ue .
38
+ COPY --from=builder /UERANSIM/build/nr-cli .
39
+ COPY --from=builder /UERANSIM/build/nr-binder binder/
40
+ COPY --from=builder /UERANSIM/build/libdevbnd.so binder/
41
+
42
+ VOLUME [ "/ueransim/config" ]
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+ mkdir /dev/net
4
+ mknod /dev/net/tun c 10 200
You can’t perform that action at this time.
0 commit comments