Skip to content

Commit e715db1

Browse files
committed
Add "pgp-happy-eyeballs" in Travis to help cut down on gpg-related issues
Also remove a comment I missed and add `gpgconf --kill all` in the appropriate place.
1 parent 14d125a commit e715db1

File tree

9 files changed

+9
-4
lines changed

9 files changed

+9
-4
lines changed

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ matrix:
3535

3636
install:
3737
- git clone https://github.com/docker-library/official-images.git ~/official-images
38+
- if [ "$TRAVIS_OS_NAME" = 'linux' ]; then wget -qO- 'https://github.com/tianon/pgp-happy-eyeballs/raw/master/hack-my-builds.sh' | bash; fi
3839

3940
before_script:
4041
- env | sort

11/jdk/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ RUN set -eux; \
4545
# TODO find a good link for users to verify this key is right (https://mail.openjdk.java.net/pipermail/jdk-updates-dev/2019-April/000951.html is one of the only mentions of it I can find); perhaps a note added to https://adoptopenjdk.net/upstream.html would make sense?
4646
gpg --batch --keyserver ha.pool.sks-keyservers.net --recv-keys CA5F11C6CE22644D42C6AC4492EF8D39DC13168F; \
4747
gpg --batch --verify openjdk.tgz.asc openjdk.tgz; \
48+
gpgconf --kill all; \
4849
rm -rf "$GNUPGHOME"; \
4950
\
5051
mkdir -p "$JAVA_HOME"; \

11/jdk/slim/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ RUN set -eux; \
2020
dpkgArch="$(dpkg --print-architecture)"; \
2121
case "$dpkgArch" in \
2222
amd64) upstreamArch='x64' ;; \
23-
# TODO filter out arm64 for openjdk:8 (https://github.com/AdoptOpenJDK/openjdk8-upstream-binaries/releases/tag/jdk8u212-b04 vs https://github.com/AdoptOpenJDK/openjdk11-upstream-binaries/releases/tag/jdk-11.0.3%2B7)
2423
arm64) upstreamArch='aarch64' ;; \
2524
*) echo >&2 "error: unsupported architecture: $dpkgArch" ;; \
2625
esac; \
@@ -40,6 +39,7 @@ RUN set -eux; \
4039
# TODO find a good link for users to verify this key is right (https://mail.openjdk.java.net/pipermail/jdk-updates-dev/2019-April/000951.html is one of the only mentions of it I can find); perhaps a note added to https://adoptopenjdk.net/upstream.html would make sense?
4140
gpg --batch --keyserver ha.pool.sks-keyservers.net --recv-keys CA5F11C6CE22644D42C6AC4492EF8D39DC13168F; \
4241
gpg --batch --verify openjdk.tgz.asc openjdk.tgz; \
42+
gpgconf --kill all; \
4343
rm -rf "$GNUPGHOME"; \
4444
\
4545
mkdir -p "$JAVA_HOME"; \

8/jdk/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ RUN set -eux; \
4545
# TODO find a good link for users to verify this key is right (https://mail.openjdk.java.net/pipermail/jdk-updates-dev/2019-April/000951.html is one of the only mentions of it I can find); perhaps a note added to https://adoptopenjdk.net/upstream.html would make sense?
4646
gpg --batch --keyserver ha.pool.sks-keyservers.net --recv-keys CA5F11C6CE22644D42C6AC4492EF8D39DC13168F; \
4747
gpg --batch --verify openjdk.tgz.asc openjdk.tgz; \
48+
gpgconf --kill all; \
4849
rm -rf "$GNUPGHOME"; \
4950
\
5051
mkdir -p "$JAVA_HOME"; \

8/jdk/slim/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ RUN set -eux; \
2020
dpkgArch="$(dpkg --print-architecture)"; \
2121
case "$dpkgArch" in \
2222
amd64) upstreamArch='x64' ;; \
23-
# TODO filter out arm64 for openjdk:8 (https://github.com/AdoptOpenJDK/openjdk8-upstream-binaries/releases/tag/jdk8u212-b04 vs https://github.com/AdoptOpenJDK/openjdk11-upstream-binaries/releases/tag/jdk-11.0.3%2B7)
2423
arm64) upstreamArch='aarch64' ;; \
2524
*) echo >&2 "error: unsupported architecture: $dpkgArch" ;; \
2625
esac; \
@@ -40,6 +39,7 @@ RUN set -eux; \
4039
# TODO find a good link for users to verify this key is right (https://mail.openjdk.java.net/pipermail/jdk-updates-dev/2019-April/000951.html is one of the only mentions of it I can find); perhaps a note added to https://adoptopenjdk.net/upstream.html would make sense?
4140
gpg --batch --keyserver ha.pool.sks-keyservers.net --recv-keys CA5F11C6CE22644D42C6AC4492EF8D39DC13168F; \
4241
gpg --batch --verify openjdk.tgz.asc openjdk.tgz; \
42+
gpgconf --kill all; \
4343
rm -rf "$GNUPGHOME"; \
4444
\
4545
mkdir -p "$JAVA_HOME"; \

8/jre/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ RUN set -eux; \
4545
# TODO find a good link for users to verify this key is right (https://mail.openjdk.java.net/pipermail/jdk-updates-dev/2019-April/000951.html is one of the only mentions of it I can find); perhaps a note added to https://adoptopenjdk.net/upstream.html would make sense?
4646
gpg --batch --keyserver ha.pool.sks-keyservers.net --recv-keys CA5F11C6CE22644D42C6AC4492EF8D39DC13168F; \
4747
gpg --batch --verify openjdk.tgz.asc openjdk.tgz; \
48+
gpgconf --kill all; \
4849
rm -rf "$GNUPGHOME"; \
4950
\
5051
mkdir -p "$JAVA_HOME"; \

8/jre/slim/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ RUN set -eux; \
2020
dpkgArch="$(dpkg --print-architecture)"; \
2121
case "$dpkgArch" in \
2222
amd64) upstreamArch='x64' ;; \
23-
# TODO filter out arm64 for openjdk:8 (https://github.com/AdoptOpenJDK/openjdk8-upstream-binaries/releases/tag/jdk8u212-b04 vs https://github.com/AdoptOpenJDK/openjdk11-upstream-binaries/releases/tag/jdk-11.0.3%2B7)
2423
arm64) upstreamArch='aarch64' ;; \
2524
*) echo >&2 "error: unsupported architecture: $dpkgArch" ;; \
2625
esac; \
@@ -40,6 +39,7 @@ RUN set -eux; \
4039
# TODO find a good link for users to verify this key is right (https://mail.openjdk.java.net/pipermail/jdk-updates-dev/2019-April/000951.html is one of the only mentions of it I can find); perhaps a note added to https://adoptopenjdk.net/upstream.html would make sense?
4140
gpg --batch --keyserver ha.pool.sks-keyservers.net --recv-keys CA5F11C6CE22644D42C6AC4492EF8D39DC13168F; \
4241
gpg --batch --verify openjdk.tgz.asc openjdk.tgz; \
42+
gpgconf --kill all; \
4343
rm -rf "$GNUPGHOME"; \
4444
\
4545
mkdir -p "$JAVA_HOME"; \

Dockerfile-adopt-linux.template

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ RUN set -eux; \
4545
# TODO find a good link for users to verify this key is right (https://mail.openjdk.java.net/pipermail/jdk-updates-dev/2019-April/000951.html is one of the only mentions of it I can find); perhaps a note added to https://adoptopenjdk.net/upstream.html would make sense?
4646
gpg --batch --keyserver ha.pool.sks-keyservers.net --recv-keys CA5F11C6CE22644D42C6AC4492EF8D39DC13168F; \
4747
gpg --batch --verify openjdk.tgz.asc openjdk.tgz; \
48+
gpgconf --kill all; \
4849
rm -rf "$GNUPGHOME"; \
4950
\
5051
mkdir -p "$JAVA_HOME"; \

Dockerfile-adopt-slim.template

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ RUN set -eux; \
2020
dpkgArch="$(dpkg --print-architecture)"; \
2121
case "$dpkgArch" in \
2222
amd64) upstreamArch='x64' ;; \
23-
# TODO filter out arm64 for openjdk:8 (https://github.com/AdoptOpenJDK/openjdk8-upstream-binaries/releases/tag/jdk8u212-b04 vs https://github.com/AdoptOpenJDK/openjdk11-upstream-binaries/releases/tag/jdk-11.0.3%2B7)
2423
arm64) upstreamArch='aarch64' ;; \
2524
*) echo >&2 "error: unsupported architecture: $dpkgArch" ;; \
2625
esac; \
@@ -40,6 +39,7 @@ RUN set -eux; \
4039
# TODO find a good link for users to verify this key is right (https://mail.openjdk.java.net/pipermail/jdk-updates-dev/2019-April/000951.html is one of the only mentions of it I can find); perhaps a note added to https://adoptopenjdk.net/upstream.html would make sense?
4140
gpg --batch --keyserver ha.pool.sks-keyservers.net --recv-keys CA5F11C6CE22644D42C6AC4492EF8D39DC13168F; \
4241
gpg --batch --verify openjdk.tgz.asc openjdk.tgz; \
42+
gpgconf --kill all; \
4343
rm -rf "$GNUPGHOME"; \
4444
\
4545
mkdir -p "$JAVA_HOME"; \

0 commit comments

Comments
 (0)