From 940890a95eff16b28f80ed9d04afae2966219b78 Mon Sep 17 00:00:00 2001 From: Christopher Obbard Date: Tue, 5 Dec 2023 11:54:28 +0000 Subject: [PATCH] docker: Install archlinux-keyring from source The arch linux tests require a newer version of archlinux-keyring than what is in Debian stable; so revert back to pulling the latest version. This partially reverts 36cf33366bbe0dd602185a87a241ff070517f868. Signed-off-by: Christopher Obbard --- docker/Dockerfile | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/docker/Dockerfile b/docker/Dockerfile index 8231a6f8..145eeeba 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -26,6 +26,23 @@ COPY . $GOPATH/src/github.com/go-debos/debos WORKDIR $GOPATH/src/github.com/go-debos/debos/cmd/debos RUN go install ./... +# Pull the latest archlinux-keyring, since the one in Debian is outdated +# https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1026080 +RUN apt-get update && \ + apt-get install -y --no-install-recommends \ + pkgconf \ + python3-all \ + sq \ + systemd \ + make && \ + rm -rf /var/lib/apt/lists/* + +RUN git clone https://gitlab.archlinux.org/archlinux/archlinux-keyring && \ + cd archlinux-keyring && \ + git checkout -B latest-release 20221213 && \ + make build && \ + make PREFIX=/usr KEYRING_TARGET_DIR=/usr/share/keyrings/ DESTDIR=/arch-keyring install + ### second stage - runner ### FROM debian:bookworm-slim as runner @@ -89,7 +106,6 @@ RUN apt-get update && \ zip \ makepkg \ pacman-package-manager \ - archlinux-keyring \ arch-install-scripts && \ rm -rf /var/lib/apt/lists/* @@ -101,4 +117,9 @@ RUN for arch in aarch64 alpha arm armeb cris hexagon hppa m68k microblaze mips m COPY --from=builder $GOPATH/bin/debos /usr/local/bin/debos +# Pull the latest archlinux-keyring, since the one in Debian is outdated +# https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1026080 +# WARNING: removing this will most likely break archlinux support +COPY --from=builder /arch-keyring/ / + ENTRYPOINT ["/usr/local/bin/debos"]