Skip to content

Commit afe182e

Browse files
authored
Merge pull request #289 from infosiftr/pgp-happy-eyeballs
Add "pgp-happy-eyeballs" in Travis to help cut down on gpg-related issues
2 parents 39de297 + 2186996 commit afe182e

File tree

6 files changed

+18
-2
lines changed

6 files changed

+18
-2
lines changed

.travis.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,18 @@ install:
1313

1414
before_script:
1515
- env | sort
16+
- wget -qO- 'https://github.com/tianon/pgp-happy-eyeballs/raw/master/hack-my-builds.sh' | bash
1617
- cd "$VERSION"
1718
- image="mongo:$VERSION"
1819

1920
script:
20-
- travis_retry docker build -t "$image" .
21-
- ~/official-images/test/run.sh "$image"
21+
- |
22+
(
23+
set -Eeuo pipefail
24+
set -x
25+
docker build -t "$image" .
26+
~/official-images/test/run.sh "$image"
27+
)
2228
2329
after_script:
2430
- docker images

3.2/Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ RUN set -ex; \
2929
export GNUPGHOME="$(mktemp -d)"; \
3030
gpg --keyserver ha.pool.sks-keyservers.net --recv-keys B42F6819007F00F88E364FD4036A9C25BF357DD4; \
3131
gpg --batch --verify /usr/local/bin/gosu.asc /usr/local/bin/gosu; \
32+
command -v gpgconf && gpgconf --kill all || :; \
3233
rm -r "$GNUPGHOME" /usr/local/bin/gosu.asc; \
3334
chmod +x /usr/local/bin/gosu; \
3435
gosu nobody true; \
@@ -56,6 +57,7 @@ RUN set -ex; \
5657
gpg --keyserver ha.pool.sks-keyservers.net --recv-keys "$key"; \
5758
done; \
5859
gpg --export $GPG_KEYS > /etc/apt/trusted.gpg.d/mongodb.gpg; \
60+
command -v gpgconf && gpgconf --kill all || :; \
5961
rm -r "$GNUPGHOME"; \
6062
apt-key list
6163

3.4/Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ RUN set -ex; \
2929
export GNUPGHOME="$(mktemp -d)"; \
3030
gpg --keyserver ha.pool.sks-keyservers.net --recv-keys B42F6819007F00F88E364FD4036A9C25BF357DD4; \
3131
gpg --batch --verify /usr/local/bin/gosu.asc /usr/local/bin/gosu; \
32+
command -v gpgconf && gpgconf --kill all || :; \
3233
rm -r "$GNUPGHOME" /usr/local/bin/gosu.asc; \
3334
chmod +x /usr/local/bin/gosu; \
3435
gosu nobody true; \
@@ -52,6 +53,7 @@ RUN set -ex; \
5253
gpg --keyserver ha.pool.sks-keyservers.net --recv-keys "$key"; \
5354
done; \
5455
gpg --export $GPG_KEYS > /etc/apt/trusted.gpg.d/mongodb.gpg; \
56+
command -v gpgconf && gpgconf --kill all || :; \
5557
rm -r "$GNUPGHOME"; \
5658
apt-key list
5759

3.6/Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ RUN set -ex; \
2929
export GNUPGHOME="$(mktemp -d)"; \
3030
gpg --keyserver ha.pool.sks-keyservers.net --recv-keys B42F6819007F00F88E364FD4036A9C25BF357DD4; \
3131
gpg --batch --verify /usr/local/bin/gosu.asc /usr/local/bin/gosu; \
32+
command -v gpgconf && gpgconf --kill all || :; \
3233
rm -r "$GNUPGHOME" /usr/local/bin/gosu.asc; \
3334
chmod +x /usr/local/bin/gosu; \
3435
gosu nobody true; \
@@ -52,6 +53,7 @@ RUN set -ex; \
5253
gpg --keyserver ha.pool.sks-keyservers.net --recv-keys "$key"; \
5354
done; \
5455
gpg --export $GPG_KEYS > /etc/apt/trusted.gpg.d/mongodb.gpg; \
56+
command -v gpgconf && gpgconf --kill all || :; \
5557
rm -r "$GNUPGHOME"; \
5658
apt-key list
5759

4.0/Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ RUN set -ex; \
2929
export GNUPGHOME="$(mktemp -d)"; \
3030
gpg --keyserver ha.pool.sks-keyservers.net --recv-keys B42F6819007F00F88E364FD4036A9C25BF357DD4; \
3131
gpg --batch --verify /usr/local/bin/gosu.asc /usr/local/bin/gosu; \
32+
command -v gpgconf && gpgconf --kill all || :; \
3233
rm -r "$GNUPGHOME" /usr/local/bin/gosu.asc; \
3334
chmod +x /usr/local/bin/gosu; \
3435
gosu nobody true; \
@@ -52,6 +53,7 @@ RUN set -ex; \
5253
gpg --keyserver ha.pool.sks-keyservers.net --recv-keys "$key"; \
5354
done; \
5455
gpg --export $GPG_KEYS > /etc/apt/trusted.gpg.d/mongodb.gpg; \
56+
command -v gpgconf && gpgconf --kill all || :; \
5557
rm -r "$GNUPGHOME"; \
5658
apt-key list
5759

4.1/Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ RUN set -ex; \
2929
export GNUPGHOME="$(mktemp -d)"; \
3030
gpg --keyserver ha.pool.sks-keyservers.net --recv-keys B42F6819007F00F88E364FD4036A9C25BF357DD4; \
3131
gpg --batch --verify /usr/local/bin/gosu.asc /usr/local/bin/gosu; \
32+
command -v gpgconf && gpgconf --kill all || :; \
3233
rm -r "$GNUPGHOME" /usr/local/bin/gosu.asc; \
3334
chmod +x /usr/local/bin/gosu; \
3435
gosu nobody true; \
@@ -52,6 +53,7 @@ RUN set -ex; \
5253
gpg --keyserver ha.pool.sks-keyservers.net --recv-keys "$key"; \
5354
done; \
5455
gpg --export $GPG_KEYS > /etc/apt/trusted.gpg.d/mongodb.gpg; \
56+
command -v gpgconf && gpgconf --kill all || :; \
5557
rm -r "$GNUPGHOME"; \
5658
apt-key list
5759

0 commit comments

Comments
 (0)