Compare commits

...

12 Commits
v2.0.1 ... main

Author SHA1 Message Date
M0VUB c1a4431488
Update Dockerfile
Unable to build compiler for rust - Will work on this at a later date
2024-05-23 23:01:52 +01:00
M0VUB 74ad5078c8
Update Dockerfile 2024-05-23 22:56:11 +01:00
M0VUB e2b5a2db5e
Update Dockerfile 2024-05-23 22:53:53 +01:00
M0VUB 0e5fb32552
Update Dockerfile
&&
2024-05-23 22:49:54 +01:00
M0VUB 0bdd4422af
Update Dockerfile
Try fixing rust compiler
2024-05-23 22:49:14 +01:00
M0VUB 7c75872514
Update requirements.txt
revert
2024-05-23 22:40:00 +01:00
M0VUB 98c6651b1d
Update requirements.txt
remove dep
2024-05-23 22:33:06 +01:00
M0VUB 116eb2b2d6
Update Dockerfile 2024-05-23 22:30:02 +01:00
M0VUB ce56ad1047
Update Dockerfile
Revert upgrade to python to fix pip build
2024-05-23 22:26:02 +01:00
M0VUB c37d2d710e
Update Dockerfile
Update docker
2024-05-23 22:18:41 +01:00
Shane Daley dfb7d8824d Tidy up repo and prepare data structure 2024-02-27 23:34:30 +00:00
M0VUB f67a4213ef
Update config_SAMPLE.py
prep for new clean up
2024-02-27 23:20:59 +00:00
7 changed files with 46 additions and 12 deletions

View File

@ -17,20 +17,21 @@
# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
###############################################################################
FROM python:alpine3.17
FROM python:alpine3.16
COPY entrypoint /entrypoint
RUN adduser -D -u 54000 radio
RUN apk update && \
apk add git gcc musl-dev libffi-dev openssl-dev cargo && \
pip install --upgrade pip && \
pip cache purge && \
git clone https://github.com/shaymez/HBMonv2.git /hbmon && \
cd /hbmon && \
pip install --no-cache-dir -r requirements.txt && \
apk del git gcc musl-dev && \
chown -R radio /hbmon
RUN adduser -D -u 54000 radio && \
apk update && \
apk add git gcc musl-dev && \
pip install --upgrade pip && \
pip cache purge && \
cd /opt && \
git clone https://github.com/shaymez/HBMonv2.git /hbmon && \
cd /hbmon && \
pip install --no-cache-dir -r requirements.txt && \
apk del git gcc musl-dev && \
chown -R radio: /hbmon
USER radio

View File

@ -15,7 +15,7 @@ CLIENT_TIMEOUT = 0 # Clients are timed out after t
OPB_FILTER = ""
# Files and stuff for loading alias files for mapping numbers to names
PATH = './' # MUST END IN '/'
PATH = './data/' # MUST END IN '/'
PEER_FILE = 'peer_ids.json' # Will auto-download
SUBSCRIBER_FILE = 'subscriber_ids.json' # Will auto-download
TGID_FILE = 'talkgroup_ids.json' # User provided

33
hbmon-config.py Normal file
View File

@ -0,0 +1,33 @@
##### Version 2.0.1 #####
##### DOCKER CONFIG ONLY USE THIS WHEN USING A DOCKERIZED ENVIROMENT #####
CONFIG_INC = True # Include HBlink stats
HOMEBREW_INC = True # Display Homebrew Peers status
LASTHEARD_INC = True # Display lastheard table on main page
BRIDGES_INC = False # Display Bridge status and button
EMPTY_MASTERS = False # Display Enable (True) or DISABLE (False) empty masters in status
#
HBLINK_IP = '172.16.238.10' # HBlink's IP Address (Normally 127.0.0.1)
HBLINK_PORT = 4321 # HBlink's TCP reporting socket
FREQUENCY = 10 # Frequency to push updates to web clients
CLIENT_TIMEOUT = 0 # Clients are timed out after this many seconds, 0 to disable
# Generally you don't need to use this but
# if you don't want to show in lastherad received traffic from OBP link put NETWORK ID
# for example: "260210,260211,260212"
OPB_FILTER = ""
# Files and stuff for loading alias files for mapping numbers to names
PATH = './data/' # MUST END IN '/'
PEER_FILE = 'peer_ids.json' # Will auto-download
SUBSCRIBER_FILE = 'subscriber_ids.json' # Will auto-download
TGID_FILE = 'talkgroup_ids.json' # User provided
LOCAL_SUB_FILE = 'local_subscriber_ids.json' # User provided (optional, leave '' if you don't use it)
LOCAL_PEER_FILE = 'local_peer_ids.json' # User provided (optional, leave '' if you don't use it)
LOCAL_TGID_FILE = 'local_talkgroup_ids.json' # User provided (optional, leave '' if you don't use it)
FILE_RELOAD = 28 # Number of days before we reload RadioID.net database files
PEER_URL = 'https://radioid.net/static/rptrs.json'
SUBSCRIBER_URL = 'https://radioid.net/static/users.json'
# Settings for log files
LOG_PATH = './log/' # MUST END IN '/'
LOG_NAME = 'hbmon.log'