forked from opennetworkinglab/srsRAN-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile-ue
70 lines (56 loc) · 1.5 KB
/
Dockerfile-ue
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
ARG OS_VERSION=22.04
ARG SRSRAN_BRANCH=release_23_11
##################
# Stage 1: Build #
##################
FROM ubuntu:$OS_VERSION AS builder
# Install dependencies
# We need uhd so enb and ue are built
# Use curl and unzip to get a specific commit state from github
# Also install ping to test connections
RUN apt-get update && \
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
git \
build-essential \
cmake \
libuhd-dev \
uhd-host \
curl \
unzip \
libboost-system-dev \
libboost-program-options-dev \
libfftw3-dev \
libmbedtls-dev \
libconfig++-dev \
libsctp-dev \
libzmq3-dev && \
rm -rf /var/lib/apt/lists/*
ARG SRSRAN_BRANCH
RUN git clone --depth 1 --branch ${SRSRAN_BRANCH} https://github.com/srsran/srsRAN_4G.git /src
WORKDIR /src/build
RUN cmake ../
RUN make -j"$(nproc)"
RUN make install
# ################
# # Stage 2: Run #
# ################
FROM ubuntu:$OS_VERSION AS ue
COPY --from=builder /usr/local /usr/local
RUN apt-get update && \
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
iputils-ping \
iproute2 \
iptables \
iperf3 \
libboost-program-options1.74.0 \
libfftw3-3 \
libmbedtls14 \
libzmq3-dev && \
rm -rf /var/lib/apt/lists/*
# Update dynamic linker
RUN ldconfig
WORKDIR /opt
COPY srsue/startup.sh startup.sh
# Run commands with line buffered standard output
# (-> get log messages in real time)
CMD ["/bin/bash","-c","./startup.sh"]