From 27571bd63a425696d5d8115d177a25050c001026 Mon Sep 17 00:00:00 2001 From: Jakob Ketterl Date: Sun, 13 Jan 2019 14:12:09 +0000 Subject: [PATCH] add docker packaging --- Dockerfile | 14 ++++++++++ docker/install-dependencies.sh | 49 ++++++++++++++++++++++++++++++++++ 2 files changed, 63 insertions(+) create mode 100644 Dockerfile create mode 100755 docker/install-dependencies.sh diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..1a94979 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,14 @@ +FROM raspbian/stretch + +RUN apt-get update &&\ + apt-get -y install sox libfftw3-dev python rtl-sdr netcat libitpp-dev libsndfile1-dev + +ADD docker/install-dependencies.sh / +RUN /install-dependencies.sh + +ADD . /openwebrx + +WORKDIR /openwebrx + +CMD python openwebrx.py +EXPOSE 8073 diff --git a/docker/install-dependencies.sh b/docker/install-dependencies.sh new file mode 100755 index 0000000..1cb6c15 --- /dev/null +++ b/docker/install-dependencies.sh @@ -0,0 +1,49 @@ +#!/bin/bash +set -euo pipefail + +cd /tmp + +BUILD_PACKAGES="git build-essential cmake" + +apt-get -y install $BUILD_PACKAGES + +git clone https://github.com/simonyiszk/csdr.git +cd csdr +make +make install +cd .. +rm -rf csdr + +git clone https://github.com/szechyjs/mbelib.git +cd mbelib +mkdir build +cd build +cmake .. +make +make install +cd ../.. +rm -rf mbelib + +git clone https://github.com/jketterl/digiham.git +cd digiham +mkdir build +cd build +cmake .. +make +make install +cd ../.. +rm -rf digiham + +git clone https://github.com/szechyjs/dsd.git +cd dsd +mkdir build +cd build +cmake .. +make +make install +cd ../.. +rm -rf dsd + +apt-get -y purge $BUILD_PACKAGES +apt-get -y autoremove +