moved dockerfile for rigctld container build

This commit is contained in:
Evan H // KC2IHX
2025-11-30 08:36:37 -08:00
parent c297fae2fb
commit 635a199ed5
2 changed files with 28 additions and 9 deletions

View File

@@ -2,15 +2,14 @@ version: '0.1'
services: services:
rigctld: rigctld:
build: build:
context: . context: ./rigctld
args: # args:
- GIT_RELEASE: abcdef # - GIT_RELEASE: abcdef
platforms: platforms:
- "linux/arm64" - "linux/arm64"
network: host # network: host
dockerfile: rigctld-build.dockerfile
container_name: rigctld container_name: rigctld
group_add: dialout # group_add: dialout
devices: devices:
- "/dev/ttyUSB:/dev/ttyUSB0" - "/dev/ttyUSB:/dev/ttyUSB0"
ports: 4534:4534 ports: 4534:4534
@@ -50,6 +49,6 @@ services:
# file: ./runtime_settings.json # file: ./runtime_settings.json
#volumes: #volumes:
# bpq-data: # bpq-data:
networks: #networks:
farpn-local: {} # farpn-local: {}
# farpn-ygg: {} # farpn-ygg: {}

20
rigctld/Dockerfile Normal file
View File

@@ -0,0 +1,20 @@
# build rigctld
FROM debian:latest
RUN mkdir src
# this might be too much, but let's try it
RUN apt update
RUN apt install -y libconfig-dev autoconf libtool git gcc g++ make cmake libudev-dev libreadline-dev libusb-1.0-0-dev libavahi-common-dev libavahi-client-dev
# build hamlib/rigctld
RUN <<EOF
cd src
git clone https://github.com/Hamlib/Hamlib.git
cd Hamlib
./bootstrap
./configure
make
EOF
CMD /bin/rigctld