-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathDockerfile
32 lines (27 loc) · 1.71 KB
/
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
ARG DEPENDENCIES_VERSION="latest"
FROM iqtlabs/gnuradio-dependencies:${DEPENDENCIES_VERSION} AS gr-builder
ARG GNURADIO_TAG
WORKDIR /root
# includes rx_freq tag - https://github.com/gnuradio/gnuradio/commit/915601c4a5d994532815fbd5c75a3c34f1fbd320
RUN git clone --depth 1 https://github.com/gnuradio/gnuradio -b ${GNURADIO_TAG}
WORKDIR /root/gnuradio/build
RUN CMAKE_CXX_STANDARD=17 cmake -DENABLE_DEFAULT=ON -DENABLE_PYTHON=ON -DENABLE_GNURADIO_RUNTIME=ON -DENABLE_GR_BLOCKS=ON -DENABLE_GR_FFT=ON -DENABLE_GR_FILTER=ON -DENABLE_GR_ANALOG=ON -DENABLE_GR_UHD=ON -DENABLE_GR_NETWORK=ON -DENABLE_GR_SOAPY=ON -DENABLE_GR_ZEROMQ=ON .. && make -j "$(nproc)" && make install
FROM iqtlabs/gnuradio-dependencies:${DEPENDENCIES_VERSION} AS driver-builder
COPY --from=gr-builder /usr/local /usr/local
WORKDIR /root
RUN git clone --depth 1 https://github.com/pothosware/SoapyBladeRF -b soapy-bladerf-0.4.1
RUN git clone --depth 1 https://github.com/pothosware/SoapyUHD -b soapy-uhd-0.4.1
RUN git clone --depth 1 https://github.com/Nuand/bladeRF.git -b 2023.02
RUN git clone --depth 1 https://github.com/anarkiwi/lime-tools -b samples
WORKDIR /root/SoapyBladeRF/build
RUN cmake .. && make -j "$(nproc)" && make install
WORKDIR /root/SoapyUHD/build
RUN cmake .. && make -j "$(nproc)" && make install
WORKDIR /root/bladeRF/host/build
RUN cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr/local -DINSTALL_UDEV_RULES=ON -DENABLE_BACKEND_LIBUSB=TRUE .. && make -j "$(nproc)" && make install
WORKDIR /root/lime-tools/build
RUN cmake .. && make install
FROM iqtlabs/gnuradio-dependencies:${DEPENDENCIES_VERSION}
COPY --from=driver-builder /usr/local /usr/local
RUN ldconfig -v
RUN python3 -c "from gnuradio import analog, blocks, gr, network, soapy, zeromq"