forked from srsran/srsRAN_4G
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile.ue
More file actions
50 lines (43 loc) · 1.21 KB
/
Dockerfile.ue
File metadata and controls
50 lines (43 loc) · 1.21 KB
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
ARG UBUNTU_VERSION=bionic
ARG SRSLTE_RELEASE_TAG=release_20_10_1
FROM ubuntu:${UBUNTU_VERSION} as builder
ARG UBUNTU_VERSION
ARG SRSLTE_REPO=https://github.com/srsLTE/srsLTE
ARG SRSLTE_CHECKOUT=${SRSLTE_RELEASE_TAG}
RUN apt update \
&& apt install -y \
build-essential \
git \
cmake \
libfftw3-dev \
libmbedtls-dev \
libboost-program-options-dev \
libconfig++-dev \
libsctp-dev \
libzmq3-dev \
&& mkdir /srslte \
&& cd /srslte \
&& git clone $SRSLTE_REPO srslte \
&& cd srslte \
&& git checkout ${SRSLTE_CHECKOUT} \
&& mkdir build \
&& cd build \
&& cmake -DCMAKE_INSTALL_PREFIX:PATH=/opt/srslte -DENABLE_SRSENB=OFF -DENABLE_SRSEPC=OFF ../ \
&& make \
&& make install \
&& ./srslte_install_configs.sh user
FROM ubuntu:${UBUNTU_VERSION}
ARG UBUNTU_VERSION
RUN apt update \
&& apt install -y \
libfftw3-dev \
libmbedtls-dev \
libboost-program-options-dev \
libconfig++-dev \
libsctp-dev \
libzmq3-dev
COPY --from=builder /opt/srslte /opt/srslte
COPY --from=builder /root/.config/srslte/ /root/.config/srslte/
ENV LD_LIBRARY_PATH /opt/srslte/lib:$LD_LIBRARY_PATH
ENV PATH /opt/srslte/bin:$PATH
CMD ["srsue", "/conf/ue.conf"]