Created
July 1, 2021 14:01
-
-
Save ravens/a8a151c7cb219e822b37ab512a33ca41 to your computer and use it in GitHub Desktop.
Dockerfile for srsRAN EPC
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM ubuntu:20.04 as builder | |
ENV DEBIAN_FRONTEND noninteractive | |
RUN apt-get update && apt-get install -yq --no-install-recommends \ | |
cmake \ | |
libuhd-dev \ | |
uhd-host \ | |
libboost-program-options-dev \ | |
libfftw3-dev \ | |
libmbedtls-dev \ | |
libsctp-dev \ | |
libconfig++-dev \ | |
curl \ | |
iputils-ping \ | |
unzip \ | |
build-essential git ca-certificates libzmq3-dev \ | |
&& apt-get clean && rm -rf /var/lib/apt/lists/* | |
ARG SRSRAN_REPO_URL=https://github.com/srsRAN/srsRAN.git | |
ARG SRSRAN_RELEASE="release_21_04" | |
RUN git clone ${SRSRAN_REPO_URL} && cd srsRAN && git checkout ${SRSRAN_RELEASE} | |
RUN mkdir -p srsRAN/build && cd srsRAN/build && cmake ../ && make -j `nproc` && make install && ldconfig | |
FROM ubuntu:20.04 | |
ENV DEBIAN_FRONTEND noninteractive | |
RUN apt-get update && apt-get install -yq --no-install-recommends \ | |
libsctp1 \ | |
libboost-program-options1.71.0 \ | |
libmbedcrypto3 \ | |
libconfig++9v5 \ | |
libfftw3-bin \ | |
libuhd3.15.0 \ | |
libzmq5 \ | |
iproute2 tcpdump net-tools iperf iperf3 \ | |
&& apt-get clean && rm -rf /var/lib/apt/lists/* | |
COPY --from=builder /usr/local/lib /usr/local/lib | |
RUN ldconfig | |
COPY --from=builder /usr/local/bin/srsepc /usr/local/bin/srsepc | |
COPY --from=builder /srsRAN/srsepc/*.example /etc/srsran/ | |
ENTRYPOINT ["/usr/local/bin/srsepc"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment