add connectors to docker

This commit is contained in:
Jakob Ketterl 2019-11-18 14:15:59 +01:00
parent a9b99fa0ff
commit 5ba89035b4
4 changed files with 32 additions and 0 deletions

View File

@ -9,3 +9,6 @@ RUN /install-dependencies-hackrf.sh
RUN /install-dependencies-soapysdr.sh RUN /install-dependencies-soapysdr.sh
RUN /install-dependencies-sdrplay.sh RUN /install-dependencies-sdrplay.sh
RUN /install-dependencies-airspy.sh RUN /install-dependencies-airspy.sh
ADD docker/scripts/install-connectors.sh /
RUN /install-connectors.sh

View File

@ -4,3 +4,5 @@ FROM openwebrx-base:$ARCH
ADD docker/scripts/install-dependencies-rtlsdr.sh / ADD docker/scripts/install-dependencies-rtlsdr.sh /
RUN /install-dependencies-rtlsdr.sh RUN /install-dependencies-rtlsdr.sh
ADD docker/scripts/install-connectors.sh /
RUN /install-connectors.sh

View File

@ -5,3 +5,5 @@ ADD docker/scripts/install-dependencies-sdrplay.sh /
ADD docker/scripts/install-lib.*.patch / ADD docker/scripts/install-lib.*.patch /
RUN /install-dependencies-sdrplay.sh RUN /install-dependencies-sdrplay.sh
ADD docker/scripts/install-connectors.sh /
RUN /install-connectors.sh

View File

@ -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