Skip to content

Commit

Permalink
modified: Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
ShubhamTatvamasi committed May 10, 2021
1 parent b32ea99 commit 40b41e5
Showing 1 changed file with 10 additions and 13 deletions.
23 changes: 10 additions & 13 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ RUN apt update && \
build-essential \
cmake \
unzip \
wget \
curl \
libfftw3-dev \
libmbedtls-dev \
libpcsclite-dev \
Expand All @@ -30,13 +32,10 @@ RUN apt update && \

WORKDIR /srsran

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 && \
RUN wget https://github.com/srsran/srsRAN/archive/refs/tags/release_${SRSRAN_VERSION}.zip && \
wget https://github.com/zeromq/libzmq/archive/refs/tags/v${LIBZMQ_VERSION}.zip && \
wget https://github.com/zeromq/czmq/archive/refs/tags/v${CZMQ_VERSION}.zip && \
unzip release_${SRSRAN_VERSION}.zip && \
unzip v${LIBZMQ_VERSION}.zip && \
unzip v${CZMQ_VERSION}.zip && \
rm *.zip
Expand All @@ -61,19 +60,17 @@ WORKDIR /srsran/srsRAN-release_${SRSRAN_VERSION}/build

RUN cmake .. && \
make && \
ldconfig

RUN mv ./srsenb/src/srsenb \
ldconfig && \
mv ./srsenb/src/srsenb \
./srsepc/src/srsepc \
./srsepc/src/srsmbms \
./srsue/src/srsue \
/usr/local/bin

WORKDIR /srsran/srsRAN-release_${SRSRAN_VERSION}

RUN mkdir -p /etc/srsran

RUN find . -type f -name '*.example' -exec \
RUN mkdir -p /etc/srsran && \
find . -type f -name '*.example' -exec \
bash -c 'x={}; y=${x##*/}; z=${y%.example}; \
cp {} /etc/srsran/${z}' \;

Expand Down

0 comments on commit 40b41e5

Please sign in to comment.