Skip to content

Commit

Permalink
Use more pgp keyservers to download the key
Browse files Browse the repository at this point in the history
Apparently this is only way to make this reliable.

See #149

Signed-off-by: Michal Čihař <[email protected]>
  • Loading branch information
nijel committed Apr 18, 2018
1 parent 92a5a76 commit 2fe5947
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,14 @@ RUN set -ex; \
; \
\
export GNUPGHOME="$(mktemp -d)"; \
export GPGKEY="3D06A59ECE730EB71B511C17CE752F178259BD92"; \
curl --output phpMyAdmin.tar.gz --location $URL; \
curl --output phpMyAdmin.tar.gz.asc --location $URL.asc; \
gpg --keyserver keys.gnupg.net --recv-keys 3D06A59ECE730EB71B511C17CE752F178259BD92; \
gpg --keyserver ha.pool.sks-keyservers.net --recv-keys "$GPGKEY" \
|| gpg --keyserver ipv4.pool.sks-keyservers.net --recv-keys "$GPGKEY" \
|| gpg --keyserver keys.gnupg.net --recv-keys "$GPGKEY" \
|| gpg --keyserver pgp.mit.edu --recv-keys "$GPGKEY" \
|| gpg --keyserver keyserver.pgp.com --recv-keys "$GPGKEY";
gpg --batch --verify phpMyAdmin.tar.gz.asc phpMyAdmin.tar.gz; \
rm -rf "$GNUPGHOME"; \
tar xzf phpMyAdmin.tar.gz; \
Expand Down

0 comments on commit 2fe5947

Please sign in to comment.