add docker packaging

This commit is contained in:
Jakob Ketterl 2019-01-13 14:12:09 +00:00
parent 3e2c20b204
commit 27571bd63a
2 changed files with 63 additions and 0 deletions

14
Dockerfile Normal file
View File

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

49
docker/install-dependencies.sh Executable file
View File

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