From 05485ba8e3ff8668c3521ac6f8a27b0d9668550f Mon Sep 17 00:00:00 2001 From: Jakob Ketterl Date: Sat, 21 Mar 2020 18:58:03 +0100 Subject: [PATCH] add perseus basic build (not enabled for now) --- docker/Dockerfiles/Dockerfile-full | 2 +- docker/Dockerfiles/Dockerfile-perseus | 7 ++++++ .../scripts/install-dependencies-perseus.sh | 24 +++++++++++++++++++ 3 files changed, 32 insertions(+), 1 deletion(-) create mode 100644 docker/Dockerfiles/Dockerfile-perseus create mode 100755 docker/scripts/install-dependencies-perseus.sh diff --git a/docker/Dockerfiles/Dockerfile-full b/docker/Dockerfiles/Dockerfile-full index b38511c..8ba106b 100644 --- a/docker/Dockerfiles/Dockerfile-full +++ b/docker/Dockerfiles/Dockerfile-full @@ -14,7 +14,7 @@ RUN /install-dependencies-rtlsdr.sh &&\ /install-dependencies-limesdr.sh &&\ /install-dependencies-soapyremote.sh &&\ rm /install-dependencies-*.sh &&\ - rm /install-libp.*.patch + rm /install-lib.*.patch ADD docker/scripts/install-connectors.sh / RUN /install-connectors.sh &&\ diff --git a/docker/Dockerfiles/Dockerfile-perseus b/docker/Dockerfiles/Dockerfile-perseus new file mode 100644 index 0000000..fa3f912 --- /dev/null +++ b/docker/Dockerfiles/Dockerfile-perseus @@ -0,0 +1,7 @@ +ARG ARCHTAG +FROM openwebrx-base:$ARCHTAG + +ADD docker/scripts/install-dependencies-perseus.sh / +RUN /install-dependencies-perseus.sh &&\ + rm /install-dependencies-perseus.sh + diff --git a/docker/scripts/install-dependencies-perseus.sh b/docker/scripts/install-dependencies-perseus.sh new file mode 100755 index 0000000..b94ea6c --- /dev/null +++ b/docker/scripts/install-dependencies-perseus.sh @@ -0,0 +1,24 @@ +#!/usr/bin/env bash +set -euxo pipefail +export MAKEFLAGS="-j4" + +cd /tmp + +STATIC_PACKAGES="libusb udev" +BUILD_PACKAGES="git make gcc autoconf automake libtool musl-dev libusb-dev shadow" + +apk add --no-cache $STATIC_PACKAGES +apk add --no-cache --virtual .build-deps $BUILD_PACKAGES + +git clone https://github.com/Microtelecom/libperseus-sdr.git +cd libperseus-sdr +git checkout 72ac67c5b7936a1991be0ec97c03a59c1a8ac8f3 +./bootstrap.sh +./configure +make +make install +ldconfig /etc/ld.so.conf.d +cd .. +rm -rf libperseus-sdr + +apk del .build-deps