Skip to content
This repository was archived by the owner on Jun 30, 2021. It is now read-only.

Commit 729bb71

Browse files
committed
Improve gpg --keyserver pool and retry code
1 parent e97e328 commit 729bb71

File tree

3 files changed

+21
-20
lines changed

3 files changed

+21
-20
lines changed

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,10 @@ Note image ids also change after scm-source.json has being updated which trigger
88
docker exec grid versions
99

1010
## TBD_DOCKER_TAG
11-
+ **Changes:** https://github.com/elgalu/docker-selenium/compare/TBD_PREV_COMM...TBD_NEXT_COMM (TBD_DATE)
11+
+ **Changes:** https://github.com/elgalu/docker-selenium/compare/3.6.0-p2...3.6.0-p3 (TBD_DATE)
1212
+ Upgrade Firefox patch to 56.0.1
1313
+ Use getent hosts and HOSTNAME to improve figuring the CONTAINER_IP
14+
+ Improve gpg --keyserver pool and retry code
1415
+ **Image tag details:**
1516
+ Selenium version: TBD_SELENIUM_VERSION (TBD_SELENIUM_REVISION)
1617
+ Chrome stable: TBD_CHROME_STABLE

Dockerfile

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -18,24 +18,24 @@ LABEL maintainer "Team TIP <[email protected]>"
1818
ENV DEBIAN_FRONTEND=noninteractive \
1919
DEBCONF_NONINTERACTIVE_SEEN=true
2020

21-
# http://askubuntu.com/a/235911/134645
22-
# https://github.com/moby/moby/issues/20022#issuecomment-182169732
23-
# Using the (pgp.mit.edu) instead of (keyserver.ubuntu.com) due to recurrent errors in Travis.
24-
RUN (apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 2EA8F35793D8809A || \
25-
apt-key adv --keyserver pgp.mit.edu --recv-keys 2EA8F35793D8809A) \
26-
&& apt-key update -qqy
27-
RUN (apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 40976EAF437D05B5 || \
28-
apt-key adv --keyserver pgp.mit.edu --recv-keys 40976EAF437D05B5) \
29-
&& apt-key update -qqy
30-
RUN (apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 3B4FE6ACC0B21F32 || \
31-
apt-key adv --keyserver pgp.mit.edu --recv-keys 3B4FE6ACC0B21F32) \
32-
&& apt-key update -qqy
33-
RUN (apt-key adv --keyserver keyserver.ubuntu.com --recv-keys A2F683C52980AECF || \
34-
apt-key adv --keyserver pgp.mit.edu --recv-keys A2F683C52980AECF) \
35-
&& apt-key update -qqy
36-
RUN (apt-key adv --keyserver keyserver.ubuntu.com --recv-keys F76221572C52609D || \
37-
apt-key adv --keyserver pgp.mit.edu --recv-keys F76221572C52609D) \
38-
&& apt-key update -qqy
21+
# GPG servers aren't too reliable (especially in out test builds)
22+
# so fallback servers are needed
23+
# ref: https://github.com/nodejs/docker-node/issues/340#issuecomment-321669029
24+
# ref: http://askubuntu.com/a/235911/134645
25+
# ref: https://github.com/moby/moby/issues/20022#issuecomment-182169732
26+
RUN set -ex \
27+
&& for key in \
28+
2EA8F35793D8809A \
29+
40976EAF437D05B5 \
30+
3B4FE6ACC0B21F32 \
31+
A2F683C52980AECF \
32+
F76221572C52609D \
33+
; do \
34+
gpg --keyserver pgp.mit.edu --recv-keys "$key" || \
35+
gpg --keyserver keyserver.pgp.com --recv-keys "$key" || \
36+
gpg --keyserver keyserver.ubuntu.com --recv-keys "$key" || \
37+
gpg --keyserver ha.pool.sks-keyservers.net --recv-keys "$key" ; \
38+
done
3939
# How to remove keys? e.g. sudo apt-key del 2EA8F35793D8809A
4040

4141
#========================

scm-source.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"url": "https://github.com/elgalu/docker-selenium",
3-
"revision": "b35abe9701b2b9e2b6b1139e1dc623a6d5674cd9",
3+
"revision": "e97e3285a2d40a32becd0bb5264672af14e772b1",
44
"author": "lgallucci",
55
"status": ""
66
}

0 commit comments

Comments
 (0)