Compare commits

...

6 Commits

Author SHA1 Message Date
Shane Daley fb3956a648 Set perms 2022-01-24 00:28:47 +00:00
M0VUB a691c6e05f
Create docker-compose.yml
Add docker-compose
2022-01-24 00:26:42 +00:00
Shane Daley f01d88bd63 Set permissions 2022-01-23 23:45:38 +00:00
M0VUB ea5a67ae88
Create entrypoint
add entrypoint
2022-01-23 23:38:08 +00:00
M0VUB bc9eeeb0d6
Update requirements.txt
update requirements.txt
2022-01-23 23:22:54 +00:00
M0VUB e127be562d
Create Dockerfile
Add Dockerfile
2022-01-23 23:12:03 +00:00
4 changed files with 40 additions and 5 deletions

17
Dockerfile Executable file
View File

@ -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" ]

14
docker-compose.yml Executable file
View File

@ -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"

4
entrypoint Executable file
View File

@ -0,0 +1,4 @@
#!/bin/sh
cd /opt/hblink3
python /opt/hblink3/bridge.py -c hblink.cfg -r rules.py

View File

@ -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