From 5ef472983f2ebcac19eeabff17bb6c2232432033 Mon Sep 17 00:00:00 2001 From: Rajan Patel Date: Sun, 7 Apr 2024 21:25:28 +0000 Subject: [PATCH] add airspy one and hf --- Dockerfile | 41 ++++++++++++++++++++++++++++++++++++++--- 1 file changed, 38 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index e90815f..f21ec1b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,7 @@ FROM ghcr.io/sdr-enthusiasts/docker-baseimage:rtlsdr +ENV NO_SDRPLAY_API="true" + SHELL ["/bin/bash", "-o", "pipefail", "-c"] COPY satdump.patch /tmp/satdump.patch @@ -10,10 +12,15 @@ RUN set -x && \ KEPT_PACKAGES=() && \ TEMP_PACKAGES+=() && \ # temp + TEMP_PACKAGES+=(build-essential) && \ + TEMP_PACKAGES+=(cmake) && \ + TEMP_PACKAGES+=(pkg-config) && \ TEMP_PACKAGES+=(git) && \ TEMP_PACKAGES+=(libtiff-dev) && \ TEMP_PACKAGES+=(libjemalloc-dev) && \ + TEMP_PACKAGES+=(libusb-1.0-0-dev) && \ # keep + KEPT_PACKAGES+=(libusb-1.0-0) && \ KEPT_PACKAGES+=(libtiff6) && \ KEPT_PACKAGES+=(python3) && \ KEPT_PACKAGES+=(python3-prctl) && \ @@ -21,6 +28,36 @@ RUN set -x && \ apt-get install -y --no-install-recommends \ "${KEPT_PACKAGES[@]}" \ "${TEMP_PACKAGES[@]}" && \ + # deploy libmiri + git clone https://github.com/ericek111/libmirisdr-5.git /src/libmirisdr-5 && \ + pushd /src/libmirisdr-5 && \ + mkdir build && \ + pushd build && \ + cmake .. && \ + make && \ + make install && \ + popd && popd && \ + # build libairspy + git clone https://github.com/airspy/airspyhf.git /src/airspyhf && \ + pushd /src/airspyhf && \ + mkdir -p /src/airspyhf/build && \ + pushd /src/airspyhf/build && \ + cmake ../ -DCMAKE_BUILD_TYPE=Release -DINSTALL_UDEV_RULES=ON && \ + make && \ + make install && \ + ldconfig && \ + popd && popd && \ + # deploy airspyone host + git clone https://github.com/airspy/airspyone_host.git /src/airspyone_host && \ + pushd /src/airspyone_host && \ + mkdir -p /src/airspyone_host/build && \ + pushd /src/airspyone_host/build && \ + cmake ../ -DINSTALL_UDEV_RULES=ON && \ + make && \ + make install && \ + ldconfig && \ + popd && popd && \ + # deplot satdump git clone https://github.com/altillimity/satdump.git /src/satdump && \ pushd /src/satdump && \ git apply /tmp/satdump.patch && \ @@ -37,9 +74,7 @@ RUN set -x && \ # Clean up apt-get remove -y "${TEMP_PACKAGES[@]}" && \ apt-get autoremove -y && \ - rm -rf /src/* /tmp/* /var/lib/apt/lists/* - -RUN set -x && \ + rm -rf /src/* /tmp/* /var/lib/apt/lists/* && \ mkdir -p /opt && \ pushd /opt && \ curl --location --output /opt/citycodes.csv https://raw.githubusercontent.com/rpatel3001/Airports/main/citycodes.csv && \