moved dockerfile for rigctld container build
This commit is contained in:
17
compose.yaml
17
compose.yaml
@@ -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
20
rigctld/Dockerfile
Normal 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
|
||||
Reference in New Issue
Block a user