Skip to content

Commit

Permalink
docker images for cross compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
dernasherbrezon committed Nov 1, 2024
1 parent 8a79391 commit 6176792
Show file tree
Hide file tree
Showing 9 changed files with 54 additions and 0 deletions.
6 changes: 6 additions & 0 deletions docker/bionic.Dockerfile
Original file line number Diff line number Diff line change
@@ -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/*
6 changes: 6 additions & 0 deletions docker/bookworm.Dockerfile
Original file line number Diff line number Diff line change
@@ -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/*
10 changes: 10 additions & 0 deletions docker/build_all.sh
Original file line number Diff line number Diff line change
@@ -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 .
6 changes: 6 additions & 0 deletions docker/bullseye.Dockerfile
Original file line number Diff line number Diff line change
@@ -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/*
6 changes: 6 additions & 0 deletions docker/buster.Dockerfile
Original file line number Diff line number Diff line change
@@ -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/*
6 changes: 6 additions & 0 deletions docker/focal.Dockerfile
Original file line number Diff line number Diff line change
@@ -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/*
6 changes: 6 additions & 0 deletions docker/jammy.Dockerfile
Original file line number Diff line number Diff line change
@@ -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/*
Binary file added docker/r2cloud.gpg
Binary file not shown.
8 changes: 8 additions & 0 deletions docker/stretch.Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
FROM debian:stretch-slim
ENV DEBIAN_FRONTEND noninteractive
COPY --chmod=644 r2cloud.gpg /usr/share/keyrings/r2cloud.gpg
RUN echo 'deb http://archive.debian.org/debian/ stretch main non-free contrib' > /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/*

0 comments on commit 6176792

Please sign in to comment.