diff --git a/README.md b/README.md new file mode 100644 index 0000000..830edf7 --- /dev/null +++ b/README.md @@ -0,0 +1 @@ +# gnuradio-docker diff --git a/ci_lib/gr_adi_lib_iio/README.md b/ci_lib/gr_adi_lib_iio/README.md new file mode 100644 index 0000000..d64fcbd --- /dev/null +++ b/ci_lib/gr_adi_lib_iio/README.md @@ -0,0 +1,18 @@ +# gr_adi_lib_iio + +For automated testing using hardware such as an Analog Devices ADALM-PLUTO: + +``` +docker \ + run \ + --device \ + "/dev/bus/usb" \ + --device-cgroup-rule \ + "a 189:* rwm" \ + --interactive \ + --name \ + "he_ad_lib_iio" \ + --rm \ + --tty \ + "gr_adi_lib_iio:v0.21" +``` diff --git a/ci_lib/gr_adi_lib_iio/gr_adi_lib_iio b/ci_lib/gr_adi_lib_iio/gr_adi_lib_iio new file mode 100644 index 0000000..6c5899a --- /dev/null +++ b/ci_lib/gr_adi_lib_iio/gr_adi_lib_iio @@ -0,0 +1,286 @@ +# syntax=docker/dockerfile:1.0.0-experimental + +# Copyright (c) 2020 - 2021 Adam Horden + +# ---------------------------------------------------------------------------------------- +# +# ---------------------------------------------------------------------------------------- + +# + +FROM debian:bullseye-slim + +# + +LABEL maintainer="adam.horden@horden.engineering" + +# ---------------------------------------------------------------------------------------- +# +# ---------------------------------------------------------------------------------------- + +# + +ENV DEBIAN_FRONTEND="noninteractive" + +# ---------------------------------------------------------------------------------------- +# +# ---------------------------------------------------------------------------------------- + +RUN \ + set \ + -o \ + "errexit" \ + -o \ + "xtrace" \ + && apt-get update \ + && apt-get upgrade --no-install-recommends --yes \ + && rm \ + --force \ + --recursive \ + "/usr/share/man" \ + && rm \ + --force \ + --recursive \ + "/var/lib/apt/lists" + +# ---------------------------------------------------------------------------------------- +# +# ---------------------------------------------------------------------------------------- + +RUN \ + set \ + -o \ + "errexit" \ + -o \ + "xtrace" \ + && apt-get update \ + && apt-get install --no-install-recommends --yes "bison" \ + && apt-get install --no-install-recommends --yes "ca-certificates" \ + && apt-get install --no-install-recommends --yes "clang-11" \ + && apt-get install --no-install-recommends --yes "cmake" \ + && apt-get install --no-install-recommends --yes "flex" \ + && apt-get install --no-install-recommends --yes "git" \ + && apt-get install --no-install-recommends --yes "libc++-11-dev" \ + && apt-get install --no-install-recommends --yes "libc++abi1-11" \ + && apt-get install --no-install-recommends --yes "libc++abi-11-dev" \ + && apt-get install --no-install-recommends --yes "libclang-11-dev" \ + && apt-get install --no-install-recommends --yes "libclang-common-11-dev" \ + && apt-get install --no-install-recommends --yes "libserialport0" \ + && apt-get install --no-install-recommends --yes "libserialport-dev" \ + && apt-get install --no-install-recommends --yes "libusb-1.0-0" \ + && apt-get install --no-install-recommends --yes "libusb-1.0-0-dev" \ + && apt-get install --no-install-recommends --yes "libxml2" \ + && apt-get install --no-install-recommends --yes "libxml2-dev" \ + && apt-get install --no-install-recommends --yes "llvm-11-dev" \ + && apt-get install --no-install-recommends --yes "make" \ + && apt-get install --no-install-recommends --yes "pkg-config" \ + && rm \ + --force \ + --recursive \ + "/usr/share/man" \ + && rm \ + --force \ + --recursive \ + "/var/lib/apt/lists" + +# ---------------------------------------------------------------------------------------- +# Arguments: +# ---------------------------------------------------------------------------------------- + +ARG GR_BLD_ARCH + +# ---------------------------------------------------------------------------------------- +# +# ---------------------------------------------------------------------------------------- + +RUN \ + set \ + -o \ + "errexit" \ + -o \ + "xtrace" \ + && ln \ + --force \ + --symbolic \ + "/usr/bin/clang-11" \ + "/usr/bin/clang" + +# ---------------------------------------------------------------------------------------- +# Arguments: +# ---------------------------------------------------------------------------------------- + +ARG GR_ADI_LIB_IIO_CMAKE_FLAGS=" \ + -DBUILD_SHARED_LIBS=ON \ + -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_C_COMPILER=/usr/bin/clang \ + -DCMAKE_C_FLAGS=-std=c11 -stdlib=libc++ \ + -DCMAKE_C_STANDARD=11 \ + -DCMAKE_EXE_LINKER_FLAGS=-lc++abi \ + -DCMAKE_INSTALL_LIBDIR:PATH=lib \ + -DCMAKE_INSTALL_PREFIX:PATH=/usr" + +# ---------------------------------------------------------------------------------------- +# Arguments: +# ---------------------------------------------------------------------------------------- + +ARG GR_ADI_LIB_IIO_SRC +ARG GR_ADI_LIB_IIO_SRC_BR +ARG GR_ADI_LIB_IIO_SRC_VER + +# ---------------------------------------------------------------------------------------- +# +# ---------------------------------------------------------------------------------------- + +RUN \ + set \ + -o \ + "errexit" \ + -o \ + "xtrace" \ + && export \ + GR_BLD_PTH="$( \ + printf \ + "/%s/%s/gr_adi_lib_iio_bld_%s" \ + "root" \ + "gr" \ + "${GR_ADI_LIB_IIO_SRC_VER}")" \ + && export \ + GR_ADI_LIB_IIO_BLD_PTH="$( \ + printf \ + "%s/gr_adi_lib_iio_%s/gr_adi_lib_iio_bld_%s" \ + "${GR_BLD_PTH}" \ + "${GR_ADI_LIB_IIO_SRC_VER}" \ + "${GR_ADI_LIB_IIO_SRC_VER}")" \ + && export \ + GR_ADI_LIB_IIO_SRC_PTH="$( \ + printf \ + "%s/gr_adi_lib_iio_%s/gr_adi_lib_iio_src_%s" \ + "${GR_BLD_PTH}" \ + "${GR_ADI_LIB_IIO_SRC_VER}" \ + "${GR_ADI_LIB_IIO_SRC_VER}")" \ + && mkdir \ + --parents \ + "${GR_ADI_LIB_IIO_BLD_PTH}" \ + && mkdir \ + --parents \ + "${GR_ADI_LIB_IIO_SRC_PTH}" \ + && cd \ + "${GR_ADI_LIB_IIO_BLD_PTH}" \ + && /usr/bin/git \ + clone \ + --jobs \ + "$(\ + grep \ + "processor.*:" \ + /proc/cpuinfo | \ + wc \ + --lines)" \ + "${GR_ADI_LIB_IIO_SRC}" \ + "${GR_ADI_LIB_IIO_SRC_PTH}" \ + && /usr/bin/git \ + -C \ + "${GR_ADI_LIB_IIO_SRC_PTH}" \ + fetch \ + && /usr/bin/git \ + -C \ + "${GR_ADI_LIB_IIO_SRC_PTH}" \ + checkout \ + "${GR_ADI_LIB_IIO_SRC_BR}" \ + -b \ + "${GR_ADI_LIB_IIO_SRC_BR}" \ + && /usr/bin/cmake \ + ${GR_ADI_LIB_IIO_CMAKE_FLAGS} \ + "${GR_ADI_LIB_IIO_SRC_PTH}" \ + && /usr/bin/cmake \ + --build \ + "${GR_ADI_LIB_IIO_BLD_PTH}" \ + -- \ + -j \ + "$(\ + grep \ + "processor.*:" \ + /proc/cpuinfo | \ + wc \ + --lines)" \ + && /usr/bin/cmake \ + --build \ + "${GR_ADI_LIB_IIO_BLD_PTH}" \ + -- \ + "install" \ + && rm \ + --force \ + --recursive \ + "${GR_BLD_PTH}" + +# ---------------------------------------------------------------------------------------- +# +# ---------------------------------------------------------------------------------------- + +RUN \ + set \ + -o \ + "errexit" \ + -o \ + "xtrace" \ + && rm \ + --force \ + "/usr/bin/iio_adi_xflow_check" \ + "/usr/bin/iio_attr" \ + "/usr/bin/iio_genxml" \ + "/usr/bin/iio_readdev" \ + "/usr/bin/iio_reg" \ + "/usr/bin/iio_stresstest" \ + "/usr/bin/iio_writedev" + +# ---------------------------------------------------------------------------------------- +# +# ---------------------------------------------------------------------------------------- + +RUN \ + set \ + -o \ + "errexit" \ + -o \ + "xtrace" \ + && apt-get update \ + && apt-get remove --purge --yes "bison" \ + && apt-get remove --purge --yes "ca-certificates" \ + && apt-get remove --purge --yes "clang-11" \ + && apt-get remove --purge --yes "cmake" \ + && apt-get remove --purge --yes "flex" \ + && apt-get remove --purge --yes "git" \ + && apt-get remove --purge --yes "libc++-11-dev" \ + && apt-get remove --purge --yes "libc++abi-11-dev" \ + && apt-get remove --purge --yes "libclang-11-dev" \ + && apt-get remove --purge --yes "libclang-common-11-dev" \ + && apt-get remove --purge --yes "libserialport-dev" \ + && apt-get remove --purge --yes "libusb-1.0-0-dev" \ + && apt-get remove --purge --yes "libxml2-dev" \ + && apt-get remove --purge --yes "llvm-11-dev" \ + && apt-get remove --purge --yes "make" \ + && apt-get remove --purge --yes "pkg-config" \ + && apt-get autoremove --purge --yes \ + && rm \ + --force \ + --recursive \ + "/usr/share/man" \ + && rm \ + --force \ + --recursive \ + "/var/lib/apt/lists" + +# ---------------------------------------------------------------------------------------- +# +# ---------------------------------------------------------------------------------------- + +COPY \ + "gr_adi_lib_iio.sh" \ + "/usr/bin/gr_adi_lib_iio.sh" + +# ---------------------------------------------------------------------------------------- +# +# ---------------------------------------------------------------------------------------- + +ENTRYPOINT [ \ + "/usr/bin/gr_adi_lib_iio.sh" \ +] diff --git a/ci_lib/gr_adi_lib_iio/gr_adi_lib_iio.sh b/ci_lib/gr_adi_lib_iio/gr_adi_lib_iio.sh new file mode 100644 index 0000000..c648c4a --- /dev/null +++ b/ci_lib/gr_adi_lib_iio/gr_adi_lib_iio.sh @@ -0,0 +1,22 @@ +#!/usr/bin/env bash + +# Copyright (c) 2020 - 2021 Adam Horden + +# ---------------------------------------------------------------------------------------- +# +# ---------------------------------------------------------------------------------------- + +set \ + -o \ + "errexit" \ + -o \ + "xtrace" \ + +# ---------------------------------------------------------------------------------------- +# +# ---------------------------------------------------------------------------------------- + +exec \ + "/usr/bin/iio_info" \ + "-S" \ + "usb" diff --git a/ci_lib/gr_adi_lib_iio/gr_adi_lib_iio_run.sh b/ci_lib/gr_adi_lib_iio/gr_adi_lib_iio_run.sh new file mode 100755 index 0000000..85af030 --- /dev/null +++ b/ci_lib/gr_adi_lib_iio/gr_adi_lib_iio_run.sh @@ -0,0 +1,76 @@ +#!/usr/bin/env bash + +# Copyright (c) 2020 - 2021 Adam Horden + +# ---------------------------------------------------------------------------------------- +# +# ---------------------------------------------------------------------------------------- + +set \ + -o \ + "errexit" \ + -o \ + "xtrace" \ + +# ---------------------------------------------------------------------------------------- +# +# ---------------------------------------------------------------------------------------- + +export DOCKER_BUILDKIT="$(\ + printf \ + "%d" \ + "1" \ +)" + +# ---------------------------------------------------------------------------------------- +# +# ---------------------------------------------------------------------------------------- + +export GR_BLD_ARCH="$(\ + printf \ + "%s" \ + "$( \ + uname \ + -m \ + )" \ +)" + +# ---------------------------------------------------------------------------------------- +# +# ---------------------------------------------------------------------------------------- + +docker \ + build \ + --build-arg \ + GR_BLD_ARCH="${GR_BLD_ARCH}" \ + --build-arg \ + GR_ADI_LIB_IIO_SRC="https://github.com/analogdevicesinc/libiio.git" \ + --build-arg \ + GR_ADI_LIB_IIO_SRC_BR="v0.21" \ + --build-arg \ + GR_ADI_LIB_IIO_SRC_VER="v_0_21" \ + --file \ + "gr_adi_lib_iio" \ + --progress \ + "plain" \ + --tag \ + "gr_adi_lib_iio:v0.21" \ + "$(pwd)" + +# ---------------------------------------------------------------------------------------- +# +# ---------------------------------------------------------------------------------------- + +# docker \ +# image \ +# tag \ +# "gr_adi_lib_iio:v0.21" \ +# "gnuradio/gr_adi_lib_iio:v0.21" + +# ---------------------------------------------------------------------------------------- +# +# ---------------------------------------------------------------------------------------- + +# docker \ +# push \ +# "gnuradio/gr_adi_lib_iio:v0.21" diff --git a/ci_lib/gr_adi_lib_iio_ad9361/README.md b/ci_lib/gr_adi_lib_iio_ad9361/README.md new file mode 100644 index 0000000..af1afbd --- /dev/null +++ b/ci_lib/gr_adi_lib_iio_ad9361/README.md @@ -0,0 +1 @@ +# gr_adi_lib_iio diff --git a/ci_lib/gr_adi_lib_iio_ad9361/gr_adi_lib_iio_ad9361 b/ci_lib/gr_adi_lib_iio_ad9361/gr_adi_lib_iio_ad9361 new file mode 100644 index 0000000..c83c61b --- /dev/null +++ b/ci_lib/gr_adi_lib_iio_ad9361/gr_adi_lib_iio_ad9361 @@ -0,0 +1,289 @@ +# syntax=docker/dockerfile:1.0.0-experimental + +# Copyright (c) 2020 - 2021 Adam Horden + +# ---------------------------------------------------------------------------------------- +# +# ---------------------------------------------------------------------------------------- + +# + +FROM debian:bullseye-slim + +# + +LABEL maintainer="adam.horden@horden.engineering" + +# ---------------------------------------------------------------------------------------- +# +# ---------------------------------------------------------------------------------------- + +# + +ENV DEBIAN_FRONTEND="noninteractive" + +# ---------------------------------------------------------------------------------------- +# +# ---------------------------------------------------------------------------------------- + +RUN \ + set \ + -o \ + "errexit" \ + -o \ + "xtrace" \ + && apt-get update \ + && apt-get upgrade --no-install-recommends --yes \ + && rm \ + --force \ + --recursive \ + "/usr/share/man" \ + && rm \ + --force \ + --recursive \ + "/var/lib/apt/lists" + +# ---------------------------------------------------------------------------------------- +# +# ---------------------------------------------------------------------------------------- + +RUN \ + set \ + -o \ + "errexit" \ + -o \ + "xtrace" \ + && apt-get update \ + && apt-get install --no-install-recommends --yes "ca-certificates" \ + && apt-get install --no-install-recommends --yes "clang-11" \ + && apt-get install --no-install-recommends --yes "cmake" \ + && apt-get install --no-install-recommends --yes "git" \ + && apt-get install --no-install-recommends --yes "libc++-11-dev" \ + && apt-get install --no-install-recommends --yes "libc++abi1-11" \ + && apt-get install --no-install-recommends --yes "libc++abi-11-dev" \ + && apt-get install --no-install-recommends --yes "libclang-11-dev" \ + && apt-get install --no-install-recommends --yes "libclang-common-11-dev" \ + && apt-get install --no-install-recommends --yes "libserialport0" \ + && apt-get install --no-install-recommends --yes "libusb-1.0-0" \ + && apt-get install --no-install-recommends --yes "llvm-11-dev" \ + && apt-get install --no-install-recommends --yes "make" \ + && apt-get install --no-install-recommends --yes "pkg-config" \ + && rm \ + --force \ + --recursive \ + "/usr/share/man" \ + && rm \ + --force \ + --recursive \ + "/var/lib/apt/lists" + +# ---------------------------------------------------------------------------------------- +# Arguments: +# ---------------------------------------------------------------------------------------- + +ARG GR_BLD_ARCH + +# ---------------------------------------------------------------------------------------- +# +# ---------------------------------------------------------------------------------------- + +COPY \ + --from=gnuradio/gr_adi_lib_iio:v0.21 \ + /usr/include/iio.h \ + /usr/include/iio.h + +COPY \ + --from=gnuradio/gr_adi_lib_iio:v0.21 \ + /usr/lib/libiio.so.0.21 \ + /usr/lib/libiio.so.0.21 + +COPY \ + --from=gnuradio/gr_adi_lib_iio:v0.21 \ + /usr/lib/pkgconfig/libiio.pc \ + /usr/lib/pkgconfig/libiio.pc + +# ---------------------------------------------------------------------------------------- +# +# ---------------------------------------------------------------------------------------- + +RUN \ + set \ + -o \ + "errexit" \ + -o \ + "xtrace" \ + && ln \ + --force \ + --symbolic \ + "/usr/lib/libiio.so.0.21" \ + "/usr/lib/libiio.so" \ + && ln \ + --force \ + --symbolic \ + "/usr/lib/libiio.so.0.21" \ + "/usr/lib/libiio.so.0" + +# ---------------------------------------------------------------------------------------- +# +# ---------------------------------------------------------------------------------------- + +RUN \ + set \ + -o \ + "errexit" \ + -o \ + "xtrace" \ + && ln \ + --force \ + --symbolic \ + "/usr/bin/clang-11" \ + "/usr/bin/clang" + +# ---------------------------------------------------------------------------------------- +# Arguments: +# ---------------------------------------------------------------------------------------- + +ARG GR_ADI_LIB_IIO_AD9361_CMAKE_FLAGS=" \ + -DBUILD_SHARED_LIBS=ON \ + -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_C_COMPILER=/usr/bin/clang \ + -DCMAKE_C_FLAGS=-std=c11 -stdlib=libc++ \ + -DCMAKE_C_STANDARD=11 \ + -DCMAKE_EXE_LINKER_FLAGS=-lc++abi \ + -DCMAKE_INSTALL_LIBDIR:PATH=lib \ + -DCMAKE_INSTALL_PREFIX:PATH=/usr" + +# ---------------------------------------------------------------------------------------- +# Arguments: +# ---------------------------------------------------------------------------------------- + +ARG GR_ADI_LIB_IIO_AD9361_SRC +ARG GR_ADI_LIB_IIO_AD9361_SRC_TAG +ARG GR_ADI_LIB_IIO_AD9361_SRC_VER + +# ---------------------------------------------------------------------------------------- +# +# ---------------------------------------------------------------------------------------- + +RUN \ + set \ + -o \ + "errexit" \ + -o \ + "xtrace" \ + && export \ + GR_BLD_PTH="$( \ + printf \ + "/%s/%s/gr_adi_lib_iio_ad9361_bld_%s" \ + "root" \ + "gr" \ + "${GR_ADI_LIB_IIO_AD9361_SRC_VER}")" \ + GR_ADI_LIB_IIO_AD9361_BLD_PTH="$( \ + printf \ + "%s/gr_adi_lib_iio_ad9361_%s/gr_adi_lib_iio_ad9361_bld_%s" \ + "${GR_BLD_PTH}" \ + "${GR_ADI_LIB_IIO_AD9361_SRC_VER}" \ + "${GR_ADI_LIB_IIO_AD9361_SRC_VER}")" \ + && export \ + GR_ADI_LIB_IIO_AD9361_SRC_PTH="$( \ + printf \ + "%s/gr_adi_lib_iio_ad9361_%s/gr_adi_lib_iio_ad9361_src_%s" \ + "${GR_BLD_PTH}" \ + "${GR_ADI_LIB_IIO_AD9361_SRC_VER}" \ + "${GR_ADI_LIB_IIO_AD9361_SRC_VER}")" \ + && mkdir \ + --parents \ + "${GR_ADI_LIB_IIO_AD9361_BLD_PTH}" \ + && mkdir \ + --parents \ + "${GR_ADI_LIB_IIO_AD9361_SRC_PTH}" \ + && cd \ + "${GR_ADI_LIB_IIO_AD9361_BLD_PTH}" \ + && /usr/bin/git \ + clone \ + --jobs \ + "$(\ + grep \ + "processor.*:" \ + /proc/cpuinfo | \ + wc \ + --lines)" \ + "${GR_ADI_LIB_IIO_AD9361_SRC}" \ + "${GR_ADI_LIB_IIO_AD9361_SRC_PTH}" \ + && /usr/bin/git \ + -C \ + "${GR_ADI_LIB_IIO_AD9361_SRC_PTH}" \ + fetch \ + && /usr/bin/git \ + -C \ + "${GR_ADI_LIB_IIO_AD9361_SRC_PTH}" \ + checkout \ + "$( \ + printf \ + "tags/%s" \ + "${GR_ADI_LIB_IIO_AD9361_SRC_TAG}")" \ + -b \ + ${GR_ADI_LIB_IIO_AD9361_SRC_TAG} \ + && /usr/bin/cmake \ + ${GR_ADI_LIB_IIO_AD9361_CMAKE_FLAGS} \ + "${GR_ADI_LIB_IIO_AD9361_SRC_PTH}" \ + && /usr/bin/cmake \ + --build \ + "${GR_ADI_LIB_IIO_AD9361_BLD_PTH}" \ + -- \ + -j \ + "$(\ + grep \ + "processor.*:" \ + /proc/cpuinfo | \ + wc \ + --lines)" \ + # && /usr/bin/cmake \ + # --build \ + # "${GR_ADI_LIB_IIO_AD9361_BLD_PTH}" \ + # -- \ + # "test" \ + && /usr/bin/cmake \ + --build \ + "${GR_ADI_LIB_IIO_AD9361_BLD_PTH}" \ + -- \ + "install" \ + && rm \ + --force \ + --recursive \ + "${GR_BLD_PTH}" + +# ---------------------------------------------------------------------------------------- +# +# ---------------------------------------------------------------------------------------- + +RUN \ + set \ + -o \ + "errexit" \ + -o \ + "xtrace" \ + && apt-get update \ + && apt-get remove --purge --yes "ca-certificates" \ + && apt-get remove --purge --yes "clang-11" \ + && apt-get remove --purge --yes "cmake" \ + && apt-get remove --purge --yes "git" \ + && apt-get remove --purge --yes "libc++-11-dev" \ + && apt-get remove --purge --yes "libc++abi1-11" \ + && apt-get remove --purge --yes "libc++abi-11-dev" \ + && apt-get remove --purge --yes "libclang-11-dev" \ + && apt-get remove --purge --yes "libclang-common-11-dev" \ + && apt-get remove --purge --yes "libserialport0" \ + && apt-get remove --purge --yes "libusb-1.0-0" \ + && apt-get remove --purge --yes "llvm-11-dev" \ + && apt-get remove --purge --yes "make" \ + && apt-get remove --purge --yes "pkg-config" \ + && apt-get autoremove --purge --yes \ + && rm \ + --force \ + --recursive \ + "/usr/share/man" \ + && rm \ + --force \ + --recursive \ + "/var/lib/apt/lists" diff --git a/ci_lib/gr_adi_lib_iio_ad9361/gr_adi_lib_iio_ad9361_run.sh b/ci_lib/gr_adi_lib_iio_ad9361/gr_adi_lib_iio_ad9361_run.sh new file mode 100755 index 0000000..a8ecade --- /dev/null +++ b/ci_lib/gr_adi_lib_iio_ad9361/gr_adi_lib_iio_ad9361_run.sh @@ -0,0 +1,73 @@ +#!/usr/bin/env bash + +# Copyright (c) 2020 - 2021 Adam Horden + +# ---------------------------------------------------------------------------------------- +# +# ---------------------------------------------------------------------------------------- + +set \ + -o \ + "errexit" \ + -o \ + "xtrace" \ + +# ---------------------------------------------------------------------------------------- +# +# ---------------------------------------------------------------------------------------- + +export DOCKER_BUILDKIT="$(\ + printf \ + "%d" \ + "1" \ +)" + +# ---------------------------------------------------------------------------------------- +# +# ---------------------------------------------------------------------------------------- + +docker \ + image \ + tag \ + "gr_adi_lib_iio:v0.21" \ + "gnuradio/gr_adi_lib_iio:v0.21" + +# ---------------------------------------------------------------------------------------- +# +# ---------------------------------------------------------------------------------------- + +docker \ + build \ + --build-arg \ + GR_BLD_ARCH="${GR_BLD_ARCH}" \ + --build-arg \ + GR_ADI_LIB_IIO_AD9361_SRC="https://github.com/analogdevicesinc/libad9361-iio.git" \ + --build-arg \ + GR_ADI_LIB_IIO_AD9361_SRC_TAG="v0.2" \ + --build-arg \ + GR_ADI_LIB_IIO_AD9361_SRC_VER="v_0_2" \ + --file \ + "gr_adi_lib_iio_ad9361" \ + --progress \ + "plain" \ + --tag \ + "gr_adi_lib_iio_ad9361:v0.2" \ + "$(pwd)" + +# ---------------------------------------------------------------------------------------- +# +# ---------------------------------------------------------------------------------------- + +# docker \ +# image \ +# tag \ +# "gr_adi_lib_iio_ad9361:v0.2" \ +# "gnuradio/gr_adi_lib_iio_ad9361:v0.2" + +# ---------------------------------------------------------------------------------------- +# +# ---------------------------------------------------------------------------------------- + +# docker \ +# push \ +# "gnuradio/gr_adi_lib_iio_ad9361:v0.2"