File tree Expand file tree Collapse file tree 3 files changed +12
-0
lines changed Expand file tree Collapse file tree 3 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -69,8 +69,13 @@ RUN set -ex; \
6969
7070RUN mkdir /docker-entrypoint-initdb.d
7171
72+
73+
7274ENV GPG_KEYS E162F504A20CDF15827F718D4B7C549A058F8B6B
7375RUN set -ex; \
76+ # pull from pgp.mongodb.com rather than a keyserver which is not supported.
77+ # (although apt-key is deprecated on newer ubuntu/debian.)
78+ wget -qO - https://pgp.mongodb.com/server-4.2.asc | apt-key add - \
7479 export GNUPGHOME="$(mktemp -d)" ; \
7580 echo "disable-ipv6" >> "${GNUPGHOME}/dirmngr.conf" ; \
7681 for key in $GPG_KEYS; do \
@@ -81,6 +86,7 @@ RUN set -ex; \
8186 rm -r "$GNUPGHOME" ; \
8287 apt-key list
8388
89+
8490# Allow build-time overrides (eg. to build image with MongoDB Enterprise version)
8591# Options for MONGO_PACKAGE: mongodb-org OR mongodb-enterprise
8692# Options for MONGO_REPO: repo.mongodb.org OR repo.mongodb.com
Original file line number Diff line number Diff line change @@ -71,6 +71,9 @@ RUN mkdir /docker-entrypoint-initdb.d
7171
7272ENV GPG_KEYS 20691EEC35216C63CAF66CE1656408E390CFB1F5
7373RUN set -ex; \
74+ # pull from pgp.mongodb.com rather than a keyserver which is not supported.
75+ # (although apt-key is deprecated on newer ubuntu/debian.)
76+ wget -qO - https://pgp.mongodb.com/server-4.4.asc | apt-key add - \
7477 export GNUPGHOME="$(mktemp -d)" ; \
7578 echo "disable-ipv6" >> "${GNUPGHOME}/dirmngr.conf" ; \
7679 for key in $GPG_KEYS; do \
Original file line number Diff line number Diff line change @@ -74,6 +74,9 @@ RUN set -ex; \
7474RUN mkdir /docker-entrypoint-initdb.d
7575
7676RUN set -ex; \
77+ # pull from pgp.mongodb.com rather than a keyserver which is not supported.
78+ # (although apt-key is deprecated on newer ubuntu/debian.)
79+ wget -qO - https://pgp.mongodb.com/server-5.0.asc | apt-key add - \
7780 export GNUPGHOME="$(mktemp -d)" ; \
7881 set -- 'F5679A222C647C87527C2F8CB00A0BD1E2C63C11' ; \
7982 for key; do \
You can’t perform that action at this time.
0 commit comments