From c1fbc53720789928437cfc0caedc3cf894e98765 Mon Sep 17 00:00:00 2001 From: Christophe Monniez Date: Thu, 10 Oct 2019 16:49:31 +0200 Subject: [PATCH] [FIX] 11.0-13.0: use gpg batch mode Without batch option, gpg may try to use /dev/tty. See https://bugs.debian.org/913614 --- 11.0/Dockerfile | 2 +- 12.0/Dockerfile | 4 ++-- 13.0/Dockerfile | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/11.0/Dockerfile b/11.0/Dockerfile index aca47f4..706c996 100644 --- a/11.0/Dockerfile +++ b/11.0/Dockerfile @@ -41,7 +41,7 @@ RUN set -x; \ && export GNUPGHOME="$(mktemp -d)" \ && repokey='B97B0AFCAA1A47F044F244A07FCC7D46ACCC4CF8' \ && gpg --batch --keyserver keyserver.ubuntu.com --recv-keys "${repokey}" \ - && gpg --armor --export "${repokey}" | apt-key add - \ + && gpg --batch --armor --export "${repokey}" > /etc/apt/trusted.gpg.d/pgdg.gpg.asc \ && gpgconf --kill all \ && rm -rf "$GNUPGHOME" \ && apt-get update \ diff --git a/12.0/Dockerfile b/12.0/Dockerfile index 3442b53..60f7736 100644 --- a/12.0/Dockerfile +++ b/12.0/Dockerfile @@ -41,7 +41,7 @@ RUN set -x; \ && export GNUPGHOME="$(mktemp -d)" \ && repokey='B97B0AFCAA1A47F044F244A07FCC7D46ACCC4CF8' \ && gpg --batch --keyserver keyserver.ubuntu.com --recv-keys "${repokey}" \ - && gpg --armor --export "${repokey}" | apt-key add - \ + && gpg --batch --armor --export "${repokey}" > /etc/apt/trusted.gpg.d/pgdg.gpg.asc \ && gpgconf --kill all \ && rm -rf "$GNUPGHOME" \ && apt-get update \ @@ -54,7 +54,7 @@ RUN set -x;\ && export GNUPGHOME="$(mktemp -d)" \ && repokey='9FD3B784BC1C6FC31A8A0A1C1655A0AB68576280' \ && gpg --batch --keyserver keyserver.ubuntu.com --recv-keys "${repokey}" \ - && gpg --armor --export "${repokey}" | apt-key add - \ + && gpg --batch --armor --export "${repokey}" > /etc/apt/trusted.gpg.d/nodejs.gpg.asc \ && gpgconf --kill all \ && rm -rf "$GNUPGHOME" \ && apt-get update \ diff --git a/13.0/Dockerfile b/13.0/Dockerfile index e5525d0..0347590 100644 --- a/13.0/Dockerfile +++ b/13.0/Dockerfile @@ -39,7 +39,7 @@ RUN set -x; \ && export GNUPGHOME="$(mktemp -d)" \ && repokey='B97B0AFCAA1A47F044F244A07FCC7D46ACCC4CF8' \ && gpg --batch --keyserver keyserver.ubuntu.com --recv-keys "${repokey}" \ - && gpg --armor --export "${repokey}" | apt-key add - \ + && gpg --batch --armor --export "${repokey}" > /etc/apt/trusted.gpg.d/pgdg.gpg.asc \ && gpgconf --kill all \ && rm -rf "$GNUPGHOME" \ && apt-get update \