moved dockerfile for rigctld container build
This commit is contained in:
15
compose.yaml
15
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: {}
|
||||||
|
|||||||
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