Add method to build inside docker

pull/816/head
Dawid SQ6EMM 2021-10-04 15:31:04 +02:00
rodzic 0b966412f4
commit c85a4b9224
2 zmienionych plików z 34 dodań i 0 usunięć

Wyświetl plik

@ -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

Wyświetl plik

@ -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>