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:
rigctld:
build:
context: .
args:
- GIT_RELEASE: abcdef
context: ./rigctld
# args:
# - GIT_RELEASE: abcdef
platforms:
- "linux/arm64"
network: host
dockerfile: rigctld-build.dockerfile
container_name: rigctld
group_add: dialout
# network: host
container_name: rigctld
# group_add: dialout
devices:
- "/dev/ttyUSB:/dev/ttyUSB0"
ports: 4534:4534
@@ -50,6 +49,6 @@ services:
# file: ./runtime_settings.json
#volumes:
# bpq-data:
networks:
farpn-local: {}
#networks:
# farpn-local: {}
# 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