1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33
|
ARG IMAGE_NAME=archlinux
ARG IMAGE_TAG=latest
FROM ${IMAGE_NAME}:${IMAGE_TAG}
LABEL org.opencontainers.image.authors='Daniel Ekman <knegge@gmail.com>'
RUN pacman -Sy --noconfirm archlinux-keyring &&\
pacman -Syu --noconfirm &&\
pacman -S --noconfirm \
base-devel \
cmake \
git \
libusb \
pkg-config \
soapysdr
ARG HOST_TOOLS_REF=https://github.com/hydrasdr/hydrasdr-host.git
RUN git clone --depth 1 ${HOST_TOOLS_REF} hydrasdr-host &&\
cd hydrasdr-host &&\
cmake -B build \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr &&\
cmake --build build --target install
ARG SOAPY_MODULE_REF=https://github.com/hydrasdr/SoapyHydraSDR.git
RUN git clone --depth 1 ${SOAPY_MODULE_REF} soapyhydrasdr &&\
cd soapyhydrasdr &&\
cmake -B build \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr&&\
cmake --build build --target install
COPY test.sh /
CMD ["bash", "/test.sh"]
|