sungo 10 months ago
parent
commit
f12bb0c8ef
2 changed files with 51 additions and 0 deletions
  1. 49 0
      dump1090/Dockerfile
  2. 2 0
      dump1090/README.md

+ 49 - 0
dump1090/Dockerfile

@@ -0,0 +1,49 @@
+FROM ubuntu:bionic AS build
+LABEL MAINTAINER "sungo@sungo.us"
+
+ENV DEBIAN_FRONTEND=noninteractive
+
+RUN apt-get update && \
+	apt-get upgrade -y
+
+RUN apt-get install -y --no-install-recommends \
+		git \
+		build-essential \
+		ca-certificates \
+		libncurses-dev \
+		pkg-config
+
+RUN apt-get install -y --no-install-recommends \
+	librtlsdr-dev \
+	libbladerf-dev \
+	libbladerf1
+
+
+RUN useradd -ms /bin/bash duser
+USER duser
+WORKDIR /home/duser
+
+RUN git clone https://github.com/flightaware/dump1090.git
+WORKDIR /home/duser/dump1090
+RUN make
+
+USER root
+FROM ubuntu:bionic
+
+COPY --from=build /home/duser/dump1090/dump1090 /bin/dump1090
+
+RUN apt-get update && \
+	apt-get upgrade -y
+
+RUN apt-get install -y --no-install-recommends \
+	librtlsdr-dev \
+	libbladerf-dev \
+	libbladerf1
+
+RUN rm -r /var/cache/apt
+
+EXPOSE 30003
+ENTRYPOINT [ "/bin/dump1090" ]
+
+CMD [ "--quiet", "--forward-mlat", "--mlat", "--stats-every", "10", "--net"]
+

+ 2 - 0
dump1090/README.md

@@ -0,0 +1,2 @@
+`mkdir /dev/shm/dump1090`
+`docker run --restart always -d --device /dev/bus/usb --name dump1090 -v /dev/shm/dump1090:/tmp/output sungo/dump1090 --lat 38.8381895 --lon -76.8432661 --write-json /tmp/output --write-json-every 1`