diff --git a/docker/enterprise/4.2/Dockerfile b/docker/enterprise/4.2/Dockerfile index 3dc375d..7d135c4 100644 --- a/docker/enterprise/4.2/Dockerfile +++ b/docker/enterprise/4.2/Dockerfile @@ -71,6 +71,11 @@ RUN mkdir /docker-entrypoint-initdb.d ENV GPG_KEYS E162F504A20CDF15827F718D4B7C549A058F8B6B RUN set -ex; \ + apt-get update; \ + apt-get install -y --no-install-recommends wget; \ + # pull from pgp.mongodb.com rather than a keyserver which is not supported. + # (although apt-key is deprecated on newer ubuntu/debian.) + wget -qO - https://pgp.mongodb.com/server-4.2.asc | apt-key add -; \ export GNUPGHOME="$(mktemp -d)"; \ echo "disable-ipv6" >> "${GNUPGHOME}/dirmngr.conf"; \ for key in $GPG_KEYS; do \ diff --git a/docker/enterprise/4.4/Dockerfile b/docker/enterprise/4.4/Dockerfile index d57625e..04f34ba 100644 --- a/docker/enterprise/4.4/Dockerfile +++ b/docker/enterprise/4.4/Dockerfile @@ -71,6 +71,11 @@ RUN mkdir /docker-entrypoint-initdb.d ENV GPG_KEYS 20691EEC35216C63CAF66CE1656408E390CFB1F5 RUN set -ex; \ + apt-get update; \ + apt-get install -y --no-install-recommends wget; \ + # pull from pgp.mongodb.com rather than a keyserver which is not supported. + # (although apt-key is deprecated on newer ubuntu/debian.) + wget -qO - https://pgp.mongodb.com/server-4.4.asc | apt-key add -; \ export GNUPGHOME="$(mktemp -d)"; \ echo "disable-ipv6" >> "${GNUPGHOME}/dirmngr.conf"; \ for key in $GPG_KEYS; do \ diff --git a/docker/enterprise/5.0/Dockerfile b/docker/enterprise/5.0/Dockerfile index 2ce0f7d..00960a2 100644 --- a/docker/enterprise/5.0/Dockerfile +++ b/docker/enterprise/5.0/Dockerfile @@ -74,6 +74,11 @@ RUN set -ex; \ RUN mkdir /docker-entrypoint-initdb.d RUN set -ex; \ + apt-get update; \ + apt-get install -y --no-install-recommends wget; \ + # pull from pgp.mongodb.com rather than a keyserver which is not supported. + # (although apt-key is deprecated on newer ubuntu/debian.) + wget -qO - https://pgp.mongodb.com/server-5.0.asc | apt-key add -; \ export GNUPGHOME="$(mktemp -d)"; \ set -- 'F5679A222C647C87527C2F8CB00A0BD1E2C63C11'; \ for key; do \