diff --git a/.github/workflows/docker-test.yml b/.github/workflows/docker-test.yml index b4e3f266..a58a6bb1 100644 --- a/.github/workflows/docker-test.yml +++ b/.github/workflows/docker-test.yml @@ -32,6 +32,7 @@ jobs: run: | docker build -f docker/Dockerfile.vkfft docker -t iqtlabs/gamutrf-vkfft:latest docker build -f docker/Dockerfile.driver docker -t iqtlabs/gamutrf-driver:latest + docker build -f docker/Dockerfile.uhd-sr docker -t iqtlabs/gamutrf-uhd-sr:latest docker build -f docker/Dockerfile.base docker -t iqtlabs/gamutrf-base:latest docker build -f Dockerfile . -t iqtlabs/gamutrf:latest docker build -f docker/Dockerfile.torchsig . -t iqtlabs/gamutrf-torchsig:latest diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index e246d8f3..5823b327 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -49,6 +49,15 @@ jobs: push: true tags: iqtlabs/gamutrf-driver:${{ steps.change_version.outputs.VERSION }} if: github.repository == 'iqtlabs/gamutrf' && github.event_name == 'push' + - name: Build and push platforms uhd-sr + uses: docker/build-push-action@v5 + with: + context: docker + file: docker/Dockerfile.uhd-sr + platforms: linux/amd64,linux/arm64 + push: true + tags: iqtlabs/gamutrf-uhd-sr:${{ steps.change_version.outputs.VERSION }} + if: github.repository == 'iqtlabs/gamutrf' && github.event_name == 'push' - name: Build and push platforms base uses: docker/build-push-action@v5 with: diff --git a/docker/Dockerfile.base b/docker/Dockerfile.base index 50e48141..b8f4bc34 100644 --- a/docker/Dockerfile.base +++ b/docker/Dockerfile.base @@ -12,25 +12,6 @@ RUN cmake .. && make -j "$(nproc)" && make install WORKDIR /root/libsigmf/build RUN cmake -DUSE_SYSTEM_JSON=ON -DUSE_SYSTEM_FLATBUFFERS=ON .. && make -j "$(nproc)" && make install -FROM ubuntu:22.04 as uhd_sample_recorder-builder -ENV DEBIAN_FRONTEND noninteractive -RUN apt-get update && apt-get install -y --no-install-recommends \ - build-essential \ - ca-certificates \ - cmake \ - git \ - libboost-all-dev \ - libuhd-dev \ - libvulkan-dev \ - sudo -WORKDIR /root -RUN git clone https://github.com/iqtlabs/uhd_sample_recorder -b v1.0.8 -WORKDIR /root/uhd_sample_recorder -RUN ./bin/install-deps.sh && rm -rf VkFFT -COPY --from=iqtlabs/gamutrf-vkfft:latest /root /root/uhd_sample_recorder -WORKDIR /root/uhd_sample_recorder/build -RUN CMAKE_BUILD_TYPE=Release cmake ../lib && make -j $(nproc) && cp uhd_sample_recorder /usr/local/bin - FROM ubuntu:22.04 as gr-iqtlabs-builder COPY --from=iqtlabs/gnuradio:3.10.8 /usr/local /usr/local ENV DEBIAN_FRONTEND noninteractive @@ -73,7 +54,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \ && apt-get -y -q clean && rm -rf /var/lib/apt/lists/* COPY --from=iqtlabs/gnuradio:3.10.8 /usr/local /usr/local COPY --from=iqtlabs/gamutrf-driver /usr/local /usr/local +COPY --from=iqtlabs/gamutrf-uhd-sr /usr/local /usr/local COPY --from=gr-iqtlabs-builder /usr/local /usr/local -COPY --from=uhd_sample_recorder-builder /usr/local /usr/local RUN ldconfig -v RUN python3 -c "from gnuradio import soapy, iqtlabs ; from gnuradio.iqtlabs import vkfft" diff --git a/docker/Dockerfile.uhd-sr b/docker/Dockerfile.uhd-sr new file mode 100644 index 00000000..d5445068 --- /dev/null +++ b/docker/Dockerfile.uhd-sr @@ -0,0 +1,20 @@ +FROM ubuntu:22.04 as uhd_sample_recorder-builder +ENV DEBIAN_FRONTEND noninteractive +RUN apt-get update && apt-get install -y --no-install-recommends \ + build-essential \ + ca-certificates \ + cmake \ + git \ + libboost-all-dev \ + libuhd-dev \ + libvulkan-dev \ + sudo +WORKDIR /root +RUN git clone https://github.com/iqtlabs/uhd_sample_recorder -b v1.0.8 +WORKDIR /root/uhd_sample_recorder +RUN ./bin/install-deps.sh && rm -rf VkFFT +COPY --from=iqtlabs/gamutrf-vkfft:latest /root /root/uhd_sample_recorder +WORKDIR /root/uhd_sample_recorder/build +RUN CMAKE_BUILD_TYPE=Release cmake ../lib && make -j $(nproc) && cp uhd_sample_recorder /usr/local/bin +FROM ubuntu:22.04 +COPY --from=uhd_sample_recorder-builder /usr/local /usr/local