mirror of https://github.com/ShaYmez/hblink3.git
Compare commits
6 Commits
c05d8fed5a
...
fb3956a648
Author | SHA1 | Date |
---|---|---|
Shane Daley | fb3956a648 | |
M0VUB | a691c6e05f | |
Shane Daley | f01d88bd63 | |
M0VUB | ea5a67ae88 | |
M0VUB | bc9eeeb0d6 | |
M0VUB | e127be562d |
|
@ -0,0 +1,17 @@
|
|||
FROM python:3.9-alpine
|
||||
|
||||
COPY entrypoint /entrypoint
|
||||
|
||||
RUN adduser -D -u 54000 radio && \
|
||||
apk update && \
|
||||
apk add git gcc musl-dev && \
|
||||
cd /opt && \
|
||||
git clone https://github.com/ShaYmez/hblink3 && \
|
||||
cd /opt/hblink3 && \
|
||||
pip install --no-cache-dir -r requirements.txt && \
|
||||
apk del git gcc musl-dev && \
|
||||
chown -R radio: /opt/hblink3
|
||||
|
||||
USER radio
|
||||
|
||||
ENTRYPOINT [ "/entrypoint" ]
|
|
@ -0,0 +1,14 @@
|
|||
version: '3.3'
|
||||
services:
|
||||
hblink3:
|
||||
container_name: hblink
|
||||
volumes:
|
||||
- '/etc/hblink3/hblink.cfg:/opt/hblink3/hblink.cfg'
|
||||
- '/var/log/hblink/hblink.log:/opt/hblink3/hblink.log'
|
||||
- '/etc/hblink3/rules.py:/opt/hblink3/rules.py'
|
||||
ports:
|
||||
- '62030:62030/udp'
|
||||
- '62031-62051:62031-62051/udp'
|
||||
- '4321:4321/tcp'
|
||||
image: 'shaymez/hblink3:latest'
|
||||
restart: "unless-stopped"
|
|
@ -0,0 +1,4 @@
|
|||
#!/bin/sh
|
||||
|
||||
cd /opt/hblink3
|
||||
python /opt/hblink3/bridge.py -c hblink.cfg -r rules.py
|
|
@ -1,5 +1,5 @@
|
|||
bitstring>=3.1.5
|
||||
bitarray>=0.8.1
|
||||
Twisted>=16.3.0
|
||||
dmr_utils3>=0.1.19
|
||||
configparser>=3.0.0
|
||||
bitstring>=3.1.9
|
||||
bitarray>=2.3.5
|
||||
Twisted>=21.7.0
|
||||
dmr_utils3>=0.1.29
|
||||
configparser>=5.2.0
|
||||
|
|
Loading…
Reference in New Issue