add docker packaging
This commit is contained in:
parent
3e2c20b204
commit
27571bd63a
14
Dockerfile
Normal file
14
Dockerfile
Normal 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
49
docker/install-dependencies.sh
Executable 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
|
||||||
|
|
Loading…
Reference in New Issue
Block a user