Skip to content

Commit cbec3a6

Browse files
authored
chore: pull keys from pgp.mongodb.com (#35)
* pull keys from pgp.mongodb.com * whitespace * install wget * semicolon * apt-get update
1 parent 4c12a87 commit cbec3a6

File tree

3 files changed

+15
-0
lines changed

3 files changed

+15
-0
lines changed

docker/enterprise/4.2/Dockerfile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,11 @@ RUN mkdir /docker-entrypoint-initdb.d
7171

7272
ENV GPG_KEYS E162F504A20CDF15827F718D4B7C549A058F8B6B
7373
RUN set -ex; \
74+
apt-get update; \
75+
apt-get install -y --no-install-recommends wget; \
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 \

docker/enterprise/4.4/Dockerfile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,11 @@ RUN mkdir /docker-entrypoint-initdb.d
7171

7272
ENV GPG_KEYS 20691EEC35216C63CAF66CE1656408E390CFB1F5
7373
RUN set -ex; \
74+
apt-get update; \
75+
apt-get install -y --no-install-recommends wget; \
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.4.asc | apt-key add -; \
7479
export GNUPGHOME="$(mktemp -d)"; \
7580
echo "disable-ipv6" >> "${GNUPGHOME}/dirmngr.conf"; \
7681
for key in $GPG_KEYS; do \

docker/enterprise/5.0/Dockerfile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,11 @@ RUN set -ex; \
7474
RUN mkdir /docker-entrypoint-initdb.d
7575

7676
RUN set -ex; \
77+
apt-get update; \
78+
apt-get install -y --no-install-recommends wget; \
79+
# pull from pgp.mongodb.com rather than a keyserver which is not supported.
80+
# (although apt-key is deprecated on newer ubuntu/debian.)
81+
wget -qO - https://pgp.mongodb.com/server-5.0.asc | apt-key add -; \
7782
export GNUPGHOME="$(mktemp -d)"; \
7883
set -- 'F5679A222C647C87527C2F8CB00A0BD1E2C63C11'; \
7984
for key; do \

0 commit comments

Comments
 (0)