[elbe-devel] [PATCH 1/2] contrib: k8s: Use elbe-archive-keyring trust anchor

Bastian Germann bage at linutronix.de
Thu Oct 13 12:16:31 CEST 2022


Instead of downloading an arbitrary keyring via HTTP, use the appropriate
package from bullseye-backports.

Signed-off-by: Bastian Germann <bage at linutronix.de>
---
 contrib/k8s/Dockerfile | 9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)

diff --git a/contrib/k8s/Dockerfile b/contrib/k8s/Dockerfile
index 9718054478..10b0e36c1c 100644
--- a/contrib/k8s/Dockerfile
+++ b/contrib/k8s/Dockerfile
@@ -12,14 +12,13 @@ ENV LANG en_US.UTF-8
 ENV LANGUAGE en_US:en
 ENV LC_ALL en_US.UTF-8
 
-RUN apt-get update -y && \
+RUN echo "deb http://ftp.debian.org/debian bullseye-backports main" >> /etc/apt/sources.list && \
+    apt-get update -y && \
     apt-get install -y --no-install-recommends \
-        wget gnupg2
+        elbe-archive-keyring
 
 # install current elbe
-RUN echo 'deb http://debian.linutronix.de/elbe buster main' > /etc/apt/sources.list.d/elbe.list && \
-    wget http://debian.linutronix.de/elbe/elbe-repo.pub && \
-    apt-key add elbe-repo.pub && \
+RUN echo 'deb [signed-by=/usr/share/keyrings/elbe-archive-keyring.gpg] http://debian.linutronix.de/elbe bullseye main' > /etc/apt/sources.list.d/elbe.list && \
     apt-get update -y && \
     apt-get install -y --no-install-recommends \
         python3-elbe-buildenv \
-- 
2.30.2



More information about the elbe-devel mailing list