Skip to content

Commit

Permalink
new file: Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
ShubhamTatvamasi committed May 9, 2021
1 parent ee9bd30 commit 6afd4ac
Showing 1 changed file with 57 additions and 0 deletions.
57 changes: 57 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
FROM gcc:11.1.0

ARG SRSRAN_VERSION=21_04_pre

ARG LIBZMQ_VERSION=4.3.4

ARG CZMQ_VERSION=4.2.1

RUN apt update && \
apt install -y \
cmake \
fftw3-dev \
libuhd-dev \
libsctp-dev \
libzmq3-dev \
libboost-dev \
libmbedtls-dev \
libbladerf-dev \
libpcsclite-dev \
libsoapysdr-dev \
libconfig++-dev

WORKDIR /tmp

ADD https://github.com/srsran/srsRAN/archive/refs/tags/release_${SRSRAN_VERSION}.zip .

ADD https://github.com/zeromq/libzmq/archive/refs/tags/v${LIBZMQ_VERSION}.zip .

ADD https://github.com/zeromq/czmq/archive/refs/tags/v${CZMQ_VERSION}.zip .

RUN unzip release_${SRSRAN_VERSION}.zip && \
unzip v${LIBZMQ_VERSION}.zip && \
unzip v${CZMQ_VERSION}.zip && \
rm *.zip

WORKDIR /tmp/libzmq-${LIBZMQ_VERSION}

RUN ./autogen.sh && \
./configure && \
make && \
make install && \
ldconfig

WORKDIR /tmp/czmq-${CZMQ_VERSION}

RUN ./autogen.sh && \
./configure && \
make && \
make install && \
ldconfig

WORKDIR /tmp/srsRAN-release_${SRSRAN_VERSION}/build

RUN cmake ..
# RUN cmake .. && \
# make

0 comments on commit 6afd4ac

Please sign in to comment.