forked from mrlnc/LTE-ciphercheck
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
31 lines (23 loc) · 935 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
FROM ubuntu:18.04
# avoid user interaction in APT (e.g. timezone selection)
ARG DEBIAN_FRONTEND=noninteractive
RUN apt update && \
apt install -yy git cmake libfftw3-dev libmbedtls-dev\
libboost-program-options-dev libconfig++-dev\
libsctp-dev libuhd-dev libpcsclite-dev pcsc-tools pcscd
RUN mkdir srsLTE_sec-algo-test
# copies entire source code into container
COPY ./ srsLTE_sec-algo-test/
# build the tools
RUN mkdir srsLTE_sec-algo-test/build
WORKDIR /srsLTE_sec-algo-test/build
RUN cmake ..
RUN make -j `nproc` srsue
# download USRP firmware images
RUN /usr/lib/uhd/utils/uhd_images_downloader.py
# start pcscd for SIM reader access
RUN echo "#!/bin/bash" >> /etc/startup.sh \
&& echo "pcscd" >> /etc/startup.sh \
&& echo "/srsLTE_sec-algo-test/build/srsue/src/srsue --fast-test true" >> /etc/startup.sh \
&& chmod u+x /etc/startup.sh
ENTRYPOINT ["/etc/startup.sh"]