diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2019-11-17 01:58:33 +0300 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2019-11-17 02:37:13 +0300 |
commit | 736a1fb9fca4ba11612e2bd38a290f95ae8002b6 (patch) | |
tree | 48c0a7ac6d7c299098de4a9f17660d9f4b830929 /dump1090/Dockerfile | |
download | fr24feed-736a1fb9fca4ba11612e2bd38a290f95ae8002b6.tar.gz fr24feed-736a1fb9fca4ba11612e2bd38a290f95ae8002b6.zip |
initial commit
Diffstat (limited to 'dump1090/Dockerfile')
-rw-r--r-- | dump1090/Dockerfile | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/dump1090/Dockerfile b/dump1090/Dockerfile new file mode 100644 index 0000000..490e5ef --- /dev/null +++ b/dump1090/Dockerfile @@ -0,0 +1,40 @@ +FROM debian:stretch + +LABEL maintainer="Egor Tensin <Egor.Tensin@gmail.com>" + +# Don't prompt: +ENV DEBIAN_FRONTEND=noninteractive + +RUN apt-get update -yq && apt-get dist-upgrade -yq + +# Install dependencies (from README at https://github.com/flightaware/dump1090): +RUN apt-get install -yq build-essential debhelper librtlsdr-dev pkg-config dh-systemd libncurses5-dev libbladerf-dev + +# Install Supervisor to run both lighttpd and dump1090: +RUN apt-get install -yq supervisor + +# Build and install the dump1090-fa package: +WORKDIR /tmp + +# Variables: +ARG DUMP1090_VERSION=3.7.2 +ARG DUMP1090_ARCH=armhf + +ADD ["https://github.com/flightaware/dump1090/archive/v${DUMP1090_VERSION}.tar.gz", "./dump1090-${DUMP1090_VERSION}.tar.gz"] + +RUN tar xzf dump1090-${DUMP1090_VERSION}.tar.gz && \ + cd dump1090-${DUMP1090_VERSION} && \ + dpkg-buildpackage -b && \ + dpkg-buildpackage -Tclean && \ + apt-get install -yq ../dump1090-fa_${DUMP1090_VERSION}_${DUMP1090_ARCH}.deb + +# Create the /run/dump1090-fa directory, typically created by systemd: +RUN mkdir --mode=0755 /run/dump1090-fa + +# Config files: +COPY ["config.js", "/usr/share/dump1090-fa/html/"] +COPY ["supervisord.conf", "/etc/supervisor/conf.d/"] + +EXPOSE 80 30001 30002 30003 30004 30005 30104 + +CMD ["/usr/bin/supervisord", "--configuration=/etc/supervisor/conf.d/supervisord.conf"] |