forked from pgorczak/srslte-docker-emulated
-
-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathDockerfile
46 lines (35 loc) · 965 Bytes
/
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:focal 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 update
RUN DEBIAN_FRONTEND=noninteractive apt install -y \
build-essential \
cmake libfftw3-dev \
libmbedtls-dev \
libboost-program-options-dev \
libconfig++-dev \
libsctp-dev \
curl \
iputils-ping \
iproute2 \
iptables \
unzip \
git
RUN rm -rf /var/lib/apt/lists/*
WORKDIR /srsran
# Pinned git commit used for this example
ARG COMMIT=48cfe041f06942bb32213a126f7706a46a676713
# Download and build
RUN git clone https://github.com/srsRAN/srsRAN.git ./
RUN git fetch origin ${COMMIT}
RUN git checkout ${COMMIT}
WORKDIR /srsran/build
RUN cmake -j$(nproc) ../
RUN make -j$(nproc)
RUN make -j$(nproc) install
RUN srsran_install_configs.sh service
# Update dynamic linker
RUN ldconfig
WORKDIR /srsran