Add basic config for hbmonv2

This commit is contained in:
Simon 2021-06-28 01:26:58 +01:00
parent b19abfbd1e
commit cdbba03122
3 changed files with 22 additions and 1 deletions

View File

@ -0,0 +1,17 @@
FROM python:3.7-alpine
COPY entrypoint-proxy /entrypoint
RUN adduser -D -u 54001 hbmon && \
apk update && \
apk add git gcc musl-dev && \
cd /opt && \
git clone https://github.com/sp2ong/HBMonv2.git && \
cd /opt/HBmonv2 && \
pip install --no-cache-dir -r requirements.txt && \
apk del git gcc musl-dev && \
chown -R radio: /opt/HBMonv2
USER hbmon
ENTRYPOINT [ "/entrypoint" ]

View File

@ -6,7 +6,7 @@ services:
- '/etc/freedmr/freedmr.cfg:/opt/freedmr/freedmr.cfg'
- '/var/log/freedmr/freedmr.log:/opt/freedmr/freedmr.log'
- '/etc/freedmr/rules.py:/opt/freedmr/rules.py'
#Uncomment these are create appropriate path and files if you want to make downloaded
#Uncomment these and create appropriate path and files if you want to make downloaded
#JSON files available outside of the container
# - '/etc/freedmr/json/talkgroup_ids.json:/opt/freedmr/talkgroup_ids.json'
# - '/etc/freedmr/json/subscriber_ids.json:/opt/freedmr/subscriber_ids.json'

View File

@ -0,0 +1,4 @@
#!/bin/sh
cd /opt/HBMonv2
python /opt/HBMonv2/monitor.py &