Compare commits
6 Commits
c297fae2fb
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| 1f6774612b | |||
|
|
6432092210 | ||
|
|
7ec96c0718 | ||
|
|
062518b922 | ||
|
|
c1c00a2267 | ||
|
|
635a199ed5 |
17
compose.yaml
17
compose.yaml
@@ -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: {}
|
||||||
|
|||||||
0
config/udev-serial.rules
Normal file
0
config/udev-serial.rules
Normal file
0
config/udev-sound.rules
Normal file
0
config/udev-sound.rules
Normal 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
38
rigctld/Containerfile
Normal 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
|
||||||
Reference in New Issue
Block a user