Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding Docker files #1

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions docker/P2000/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
FROM debian:bullseye

ARG DEBIAN_FRONTEND=noninteractive
ENV TZ="Europe/Amsterdam"

RUN apt update && apt upgrade -y && \
apt-get install -y python3-pip python3-paho-mqtt python3-geopy python3-cryptography rustc build-essential cmake unzip pkg-config libusb-1.0-0-dev git qt5-qmake libpulse-dev libx11-dev udev libssl-dev libffi-dev python3-dev cargo

RUN git clone git://git.osmocom.org/rtl-sdr.git && \
cd rtl-sdr && \
mkdir build && \
cd build && \
cmake ../ -DINSTALL_UDEV_RULES=ON -DDETACH_KERNEL_DRIVER=ON && \
make && \
make install && \
ldconfig && \
cp ../rtl-sdr.rules /etc/udev/rules.d/

RUN git clone https://github.com/EliasOenal/multimon-ng.git && \
cd multimon-ng && \
mkdir build && \
cd build && \
qmake -qt=qt5 ../multimon-ng.pro && \
make && \
make install && \
cd / && \
rm -rf /tmp/multimon-ng

RUN pip3 install --upgrade pip
RUN pip3 install opencage

CMD python3 /p2000/p2000.py
17 changes: 17 additions & 0 deletions docker/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
version: '3'
services:
p2000:
container_name: p2000
image: p2000
restart: always
stop_signal: SIGINT
devices:
- /dev/bus/usb
volumes:
- /etc/p2000:/p2000:rw
logging:
options:
max-size: 50m
build:
context: P2000
dockerfile: Dockerfile