-
Notifications
You must be signed in to change notification settings - Fork 37
/
Dockerfile
51 lines (41 loc) · 1.22 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
46
47
48
49
50
51
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
# Pinned git commit used for this example
ARG COMMIT=5d82f19988bc148d7f4cec7a0f29184375a64b40
# Download and build
RUN curl -LO https://github.com/jgiovatto/srsLTE/archive/${COMMIT}.zip \
&& unzip ${COMMIT}.zip \
&& rm ${COMMIT}.zip
WORKDIR /srslte/srsLTE-build
RUN cmake ../srsLTE-${COMMIT} \
&& make install
# Update dynamic linker
RUN ldconfig
WORKDIR /srslte
# Copy all .example files and remove that suffix
RUN cp srsLTE-${COMMIT}/*/*.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" ]