-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
45 lines (36 loc) · 1 KB
/
Dockerfile
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
FROM ubuntu:bionic as base
# 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 \
cmake \
libuhd-dev \
uhd-host \
libboost-program-options-dev \
libvolk1-dev \
libfftw3-dev \
libmbedtls-dev \
libsctp-dev \
libconfig++-dev \
curl \
iputils-ping \
iproute2 \
iptables \
unzip \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /srslte
git clone https://github.com/jgiovatto/srsLTE.git
WORKDIR /srslte/build
RUN cmake ../ \
&& make install
# Update dynamic linker
RUN ldconfig
WORKDIR /srslte
# Copy all .example files and remove that suffix
RUN cp srsLTE/*/*.example ./ \
&& bash -c 'for file in *.example; do mv "$file" "${file%.example}"; done'
# Run commands with line buffered standard output
# (-> get log messages in real time)
ENTRYPOINT [ "stdbuf", "-o", "L" ]