mirror of
https://github.com/Hamlib/Hamlib.git
synced 2024-09-21 02:17:21 +00:00
Add method to build inside docker
This commit is contained in:
parent
0b966412f4
commit
c85a4b9224
21
docker-build/Dockerfile
Normal file
21
docker-build/Dockerfile
Normal file
@ -0,0 +1,21 @@
|
||||
# Idea from https://github.com/ok2cqr/cqrlog
|
||||
|
||||
FROM ubuntu:latest
|
||||
|
||||
RUN apt-get update && apt-get -y upgrade
|
||||
|
||||
ENV DEBIAN_FRONTEND="noninteractive" TZ="Europe/London"
|
||||
|
||||
RUN apt-get install -y git build-essential automake libtool
|
||||
|
||||
RUN mkdir -p /usr/local/hamlib-alpha /home/hamlib/build
|
||||
|
||||
# Mount point for the git repository:
|
||||
VOLUME ["/home/hamlib/build"]
|
||||
|
||||
# Mount point for the result of the build:
|
||||
VOLUME ["/usr/local/hamlib-alpha"]
|
||||
|
||||
WORKDIR /home/hamlib/build
|
||||
|
||||
ENTRYPOINT rm -rf build && mkdir -p build && cd build && ../bootstrap && ../configure --prefix=/usr/local/hamlib-alpha && make clean && make && make install
|
13
docker-build/README.docker
Normal file
13
docker-build/README.docker
Normal file
@ -0,0 +1,13 @@
|
||||
This is all about building hamlib inside docker contariner - so that you do not need to install dependencied on your local machine.
|
||||
|
||||
1. Build docker container
|
||||
|
||||
(cd docker-build && docker build --no-cache -t this.registry.is.invalid/hamlib-build .)
|
||||
|
||||
2. Build hamlib
|
||||
|
||||
docker run -ti -u root -v $(pwd):/home/hamlib/build -v /usr/local/hamlib-alpha:/usr/local/hamlib-alpha this.registry.is.invalid/hamlib-build
|
||||
|
||||
3. Execute hamlib
|
||||
|
||||
/usr/local/hamlib-alpha/bin/rigctl <your options here>
|
Loading…
Reference in New Issue
Block a user