Compare commits

...

6 Commits

Author SHA1 Message Date
1f6774612b Delete rigctld/Dockerfile
go away
2025-12-15 13:56:11 +00:00
Evan H // KC2IHX
6432092210 doot doot dooo - fixing my bad rebase 2025-12-15 05:54:12 -08:00
Evan H // KC2IHX
7ec96c0718 something something fixing branches 2025-11-30 09:43:24 -08:00
Evan H // KC2IHX
062518b922 remove wrong dockerfile 2025-11-30 09:41:47 -08:00
Evan H // KC2IHX
c1c00a2267 moved dockerfile for rigctld, added config stubs 2025-11-30 09:39:48 -08:00
Evan H // KC2IHX
635a199ed5 moved dockerfile for rigctld container build 2025-11-30 08:36:37 -08:00
5 changed files with 46 additions and 27 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: {}

0
config/udev-serial.rules Normal file
View File

0
config/udev-sound.rules Normal file
View File

View File

@@ -1,18 +0,0 @@
# build rigctld
FROM debian;latest
RUN mkdir bin src
# this migh be too much, but let's try it
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
./bootstrap
./configure
make
EOF
CMD /bin/rigctld

38
rigctld/Containerfile Normal file
View File

@@ -0,0 +1,38 @@
# 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
FROM debian:latest AS farpn-base
# ENV DEBIAN_FRONTEND="noninteractive" TZ="Etc/UTC"
# this might be too much, but let's try it
RUN apt update
RUN apt update \
&& apt install -y build-essential libconfig-dev autoconf \
libtool git gcc g++ make cmake libudev-dev libusb-1.0-0-dev \
libavahi-common-dev libavahi-client-dev
# build hamlib/rigctld
FROM farpn-base AS rigctld-builder
RUN <<EOF
mkdir src
cd src
git clone --branch 4.6.5 --single-branch https://github.com/Hamlib/Hamlib.git
cd Hamlib
./bootstrap
./configure
make
EOF
FROM farpn-base AS rigctld
COPY --from=rigctld-builder /usr/local /usr/local
ENV LD_LIBRARY_PATH="/usr/local/lib"
CMD /bin/rigctld --model=$RIG_MODEL --rig-file=$RIG_DEVICE -serial-speed=$RIG_SPEED --port=$RIGCTLD_PORT $RIGCTLD_ARGS