diff --git a/docker/Dockerfiles/Dockerfile-full b/docker/Dockerfiles/Dockerfile-full index e502515..3a71c03 100644 --- a/docker/Dockerfiles/Dockerfile-full +++ b/docker/Dockerfiles/Dockerfile-full @@ -9,3 +9,6 @@ RUN /install-dependencies-hackrf.sh RUN /install-dependencies-soapysdr.sh RUN /install-dependencies-sdrplay.sh RUN /install-dependencies-airspy.sh + +ADD docker/scripts/install-connectors.sh / +RUN /install-connectors.sh diff --git a/docker/Dockerfiles/Dockerfile-rtlsdr b/docker/Dockerfiles/Dockerfile-rtlsdr index 3e14ab0..28a6f4d 100644 --- a/docker/Dockerfiles/Dockerfile-rtlsdr +++ b/docker/Dockerfiles/Dockerfile-rtlsdr @@ -4,3 +4,5 @@ FROM openwebrx-base:$ARCH ADD docker/scripts/install-dependencies-rtlsdr.sh / RUN /install-dependencies-rtlsdr.sh +ADD docker/scripts/install-connectors.sh / +RUN /install-connectors.sh diff --git a/docker/Dockerfiles/Dockerfile-sdrplay b/docker/Dockerfiles/Dockerfile-sdrplay index f9f2f1e..4c173b1 100644 --- a/docker/Dockerfiles/Dockerfile-sdrplay +++ b/docker/Dockerfiles/Dockerfile-sdrplay @@ -5,3 +5,5 @@ ADD docker/scripts/install-dependencies-sdrplay.sh / ADD docker/scripts/install-lib.*.patch / RUN /install-dependencies-sdrplay.sh +ADD docker/scripts/install-connectors.sh / +RUN /install-connectors.sh diff --git a/docker/scripts/install-connectors.sh b/docker/scripts/install-connectors.sh new file mode 100755 index 0000000..2d828bd --- /dev/null +++ b/docker/scripts/install-connectors.sh @@ -0,0 +1,25 @@ +#!/usr/bin/env bash +set -euxo pipefail + +function cmakebuild() { + cd $1 + mkdir build + cd build + cmake .. + make + make install + cd ../.. + rm -rf $1 +} + +cd /tmp + +BUILD_PACKAGES="git cmake make gcc g++ musl-dev" + +apk add --no-cache --virtual .build-deps $BUILD_PACKAGES + + +git clone https://github.com/jketterl/owrx_connector.git +cmakebuild owrx_connector + +apk del .build-deps