From 61767924af48f1ed690a57525d178c2723965b79 Mon Sep 17 00:00:00 2001 From: dernasherbrezon Date: Fri, 1 Nov 2024 08:33:31 +0000 Subject: [PATCH] docker images for cross compilation --- docker/bionic.Dockerfile | 6 ++++++ docker/bookworm.Dockerfile | 6 ++++++ docker/build_all.sh | 10 ++++++++++ docker/bullseye.Dockerfile | 6 ++++++ docker/buster.Dockerfile | 6 ++++++ docker/focal.Dockerfile | 6 ++++++ docker/jammy.Dockerfile | 6 ++++++ docker/r2cloud.gpg | Bin 0 -> 1175 bytes docker/stretch.Dockerfile | 8 ++++++++ 9 files changed, 54 insertions(+) create mode 100644 docker/bionic.Dockerfile create mode 100644 docker/bookworm.Dockerfile create mode 100644 docker/build_all.sh create mode 100644 docker/bullseye.Dockerfile create mode 100644 docker/buster.Dockerfile create mode 100644 docker/focal.Dockerfile create mode 100644 docker/jammy.Dockerfile create mode 100644 docker/r2cloud.gpg create mode 100644 docker/stretch.Dockerfile diff --git a/docker/bionic.Dockerfile b/docker/bionic.Dockerfile new file mode 100644 index 0000000..cecb1a9 --- /dev/null +++ b/docker/bionic.Dockerfile @@ -0,0 +1,6 @@ +FROM ubuntu:bionic +ENV DEBIAN_FRONTEND noninteractive +COPY --chmod=644 r2cloud.gpg /usr/share/keyrings/r2cloud.gpg +RUN echo "deb [signed-by=/usr/share/keyrings/r2cloud.gpg] http://r2cloud.s3.amazonaws.com bionic main" >> /etc/apt/sources.list +RUN echo "deb [signed-by=/usr/share/keyrings/r2cloud.gpg] http://r2cloud.s3.amazonaws.com/cpu-generic bionic main" >> /etc/apt/sources.list +RUN apt-get update && apt-get install --no-install-recommends -y build-essential file valgrind cmake libconfig-dev pkg-config libvolk2-dev libprotobuf-c-dev libvolk2-bin libiio check librtlsdr-dev zlib1g-dev && rm -rf /var/lib/apt/lists/* \ No newline at end of file diff --git a/docker/bookworm.Dockerfile b/docker/bookworm.Dockerfile new file mode 100644 index 0000000..3a3408c --- /dev/null +++ b/docker/bookworm.Dockerfile @@ -0,0 +1,6 @@ +FROM debian:bookworm-slim +ENV DEBIAN_FRONTEND noninteractive +COPY --chmod=644 r2cloud.gpg /usr/share/keyrings/r2cloud.gpg +RUN echo "deb [signed-by=/usr/share/keyrings/r2cloud.gpg] http://r2cloud.s3.amazonaws.com bookworm main" >> /etc/apt/sources.list +RUN echo "deb [signed-by=/usr/share/keyrings/r2cloud.gpg] http://r2cloud.s3.amazonaws.com/cpu-generic bookworm main" >> /etc/apt/sources.list +RUN apt-get update && apt-get install --no-install-recommends -y build-essential file valgrind cmake libconfig-dev pkg-config libvolk2-dev libprotobuf-c-dev libvolk2-bin libiio check librtlsdr-dev zlib1g-dev && rm -rf /var/lib/apt/lists/* \ No newline at end of file diff --git a/docker/build_all.sh b/docker/build_all.sh new file mode 100644 index 0000000..ba59ea3 --- /dev/null +++ b/docker/build_all.sh @@ -0,0 +1,10 @@ +#!/usr/bin/env bash + +docker buildx build --load --platform=armhf -t sdrmodem-buster-armhf -f buster.Dockerfile . +docker buildx build --load --platform=armhf -t sdrmodem-stretch-armhf -f stretch.Dockerfile . +docker buildx build --load --platform=armhf -t sdrmodem-bullseye-armhf -f bullseye.Dockerfile . +docker buildx build --load --platform=armhf -t sdrmodem-bookworm-armhf -f bookworm.Dockerfile . +docker buildx build --load --platform=arm64 -t sdrmodem-bookworm-arm64 -f bookworm.Dockerfile . +docker buildx build --load --platform=amd64 -t sdrmodem-bionic-amd64 -f bionic.Dockerfile . +docker buildx build --load --platform=amd64 -t sdrmodem-focal-amd64 -f focal.Dockerfile . +docker buildx build --load --platform=amd64 -t sdrmodem-jammy-amd64 -f jammy.Dockerfile . diff --git a/docker/bullseye.Dockerfile b/docker/bullseye.Dockerfile new file mode 100644 index 0000000..ff2fcd1 --- /dev/null +++ b/docker/bullseye.Dockerfile @@ -0,0 +1,6 @@ +FROM debian:bullseye-slim +ENV DEBIAN_FRONTEND noninteractive +COPY --chmod=644 r2cloud.gpg /usr/share/keyrings/r2cloud.gpg +RUN echo "deb [signed-by=/usr/share/keyrings/r2cloud.gpg] http://r2cloud.s3.amazonaws.com bullseye main" >> /etc/apt/sources.list +RUN echo "deb [signed-by=/usr/share/keyrings/r2cloud.gpg] http://r2cloud.s3.amazonaws.com/cpu-generic bullseye main" >> /etc/apt/sources.list +RUN apt-get update && apt-get install --no-install-recommends -y build-essential file valgrind cmake libconfig-dev pkg-config libvolk2-dev libprotobuf-c-dev libvolk2-bin libiio check librtlsdr-dev zlib1g-dev && rm -rf /var/lib/apt/lists/* \ No newline at end of file diff --git a/docker/buster.Dockerfile b/docker/buster.Dockerfile new file mode 100644 index 0000000..859fdbd --- /dev/null +++ b/docker/buster.Dockerfile @@ -0,0 +1,6 @@ +FROM debian:buster-slim +ENV DEBIAN_FRONTEND noninteractive +COPY --chmod=644 r2cloud.gpg /usr/share/keyrings/r2cloud.gpg +RUN echo "deb [signed-by=/usr/share/keyrings/r2cloud.gpg] http://r2cloud.s3.amazonaws.com buster main" >> /etc/apt/sources.list +RUN echo "deb [signed-by=/usr/share/keyrings/r2cloud.gpg] http://r2cloud.s3.amazonaws.com/cpu-generic buster main" >> /etc/apt/sources.list +RUN apt-get update && apt-get install --no-install-recommends -y build-essential file valgrind cmake libconfig-dev pkg-config libvolk2-dev libprotobuf-c-dev libvolk2-bin libiio check librtlsdr-dev zlib1g-dev && rm -rf /var/lib/apt/lists/* \ No newline at end of file diff --git a/docker/focal.Dockerfile b/docker/focal.Dockerfile new file mode 100644 index 0000000..43fa087 --- /dev/null +++ b/docker/focal.Dockerfile @@ -0,0 +1,6 @@ +FROM ubuntu:focal +ENV DEBIAN_FRONTEND noninteractive +COPY --chmod=644 r2cloud.gpg /usr/share/keyrings/r2cloud.gpg +RUN echo "deb [signed-by=/usr/share/keyrings/r2cloud.gpg] http://r2cloud.s3.amazonaws.com focal main" >> /etc/apt/sources.list +RUN echo "deb [signed-by=/usr/share/keyrings/r2cloud.gpg] http://r2cloud.s3.amazonaws.com/cpu-generic focal main" >> /etc/apt/sources.list +RUN apt-get update && apt-get install --no-install-recommends -y build-essential file valgrind cmake libconfig-dev pkg-config libvolk2-dev libprotobuf-c-dev libvolk2-bin libiio check librtlsdr-dev zlib1g-dev && rm -rf /var/lib/apt/lists/* \ No newline at end of file diff --git a/docker/jammy.Dockerfile b/docker/jammy.Dockerfile new file mode 100644 index 0000000..cc3332f --- /dev/null +++ b/docker/jammy.Dockerfile @@ -0,0 +1,6 @@ +FROM ubuntu:jammy +ENV DEBIAN_FRONTEND noninteractive +COPY --chmod=644 r2cloud.gpg /usr/share/keyrings/r2cloud.gpg +RUN echo "deb [signed-by=/usr/share/keyrings/r2cloud.gpg] http://r2cloud.s3.amazonaws.com jammy main" >> /etc/apt/sources.list +RUN echo "deb [signed-by=/usr/share/keyrings/r2cloud.gpg] http://r2cloud.s3.amazonaws.com/cpu-generic jammy main" >> /etc/apt/sources.list +RUN apt-get update && apt-get install --no-install-recommends -y build-essential file valgrind cmake libconfig-dev pkg-config libvolk2-dev libprotobuf-c-dev libvolk2-bin libiio check librtlsdr-dev zlib1g-dev && rm -rf /var/lib/apt/lists/* \ No newline at end of file diff --git a/docker/r2cloud.gpg b/docker/r2cloud.gpg new file mode 100644 index 0000000000000000000000000000000000000000..fd10aca8858871a83c40f66762d5fdc962329382 GIT binary patch literal 1175 zcmV;I1Zex20SyFNJ~Sr*2msW5jMw`X!EU(NJw65NoU?RqUgDuIO2vH^V=hoM@X zpZ2)Gr4yUB7&#R$t~V5jnb=8%=S5^rT*wB1Gt+9GgEvC~kHMHW@_SauTe%LS_;=QS zMAZ5mvLo;Kd;+6Ae|VUXisB_%H=*E9s=ffwq&dgfHw}*aFlqejhfJP=PJWZAk@%rcT|{+N*I=z-TEm*Q zpL_Q_5_j+Eku?o9v@0RREC7;-XWY;SdBAUtPqXFzf?V{C7AWG-@bK8XQ11QP)Q z03rnfT0S%<0viJc3ke7Z0|EvW2m%QT3j`Jd0|5da0Rk6*0162Z^4!1NrKbrOqeln+ zF)G*hw10ew=<>)DR8P3J`wHST;!I?Tyoy=G>-%Cv=j)>!!c zln7XZ%?W&@U7fa1ARtvlb`tahCAm~?31!l2mj+uVBXW3M6JrJ+1&uS6U zN@MN-MiKHxfgx^baUIj)l}}4uFg6|J=r=(s1>GnkxWTVt-PitEV%UmHF@v0wMQ)z{ zlp>!>tQ8$?%ibDk^+o4H1$x-zm@|nF+{1IySTPMA;9yDXSf043;CH0lRk|tPk$9LG z3yn2@vw!zucv#2^V~Z2mp!iH#DfeU7e46 zC{3D%Q%xAy{8}U=)OA2(&YZNIVFKkCSKB9oL3qw=7EgRC)`y}O(IW~AjxCf1iVT4z zV4V-0QOxgz#K!4rS2yA-O;Vm;T&u} /etc/apt/sources.list +RUN echo 'deb http://archive.debian.org/debian-security/ stretch/updates main non-free contrib' >> /etc/apt/sources.list +RUN echo "deb [signed-by=/usr/share/keyrings/r2cloud.gpg] http://r2cloud.s3.amazonaws.com stretch main" >> /etc/apt/sources.list +RUN echo "deb [signed-by=/usr/share/keyrings/r2cloud.gpg] http://r2cloud.s3.amazonaws.com/cpu-generic stretch main" >> /etc/apt/sources.list +RUN apt-get update && apt-get install --no-install-recommends -y build-essential file valgrind cmake libconfig-dev pkg-config libvolk2-dev libprotobuf-c-dev libvolk2-bin libiio check librtlsdr-dev zlib1g-dev && rm -rf /var/lib/apt/lists/* \ No newline at end of file