Skip to content

Commit 680bd17

Browse files
committed
Fix GPG package name for 18.04-slim, don't install or remove it for 16.04-slim, don't verify keys quietly.
1 parent 337041a commit 680bd17

File tree

4 files changed

+7
-8
lines changed

4 files changed

+7
-8
lines changed

5.1/ubuntu/16.04/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ RUN set -e; \
4545
&& export GNUPGHOME="$(mktemp -d)" \
4646
&& curl -fsSL "$SWIFT_BIN_URL" -o swift.tar.gz "$SWIFT_SIG_URL" -o swift.tar.gz.sig \
4747
&& gpg --batch --quiet --keyserver ha.pool.sks-keyservers.net --recv-keys "$SWIFT_SIGNING_KEY" \
48-
&& gpg --batch --quiet --verify swift.tar.gz.sig swift.tar.gz \
48+
&& gpg --batch --verify swift.tar.gz.sig swift.tar.gz \
4949
# - Unpack the toolchain, set libs permissions, and clean up.
5050
&& tar -xzf swift.tar.gz --directory / --strip-components=1 \
5151
&& chmod -R o+r /usr/lib/swift \

5.1/ubuntu/16.04/slim/Dockerfile

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ RUN export DEBIAN_FRONTEND=noninteractive DEBCONF_NONINTERACTIVE_SEEN=true && ap
99
libxml2 \
1010
tzdata \
1111
curl \
12-
gpg \
1312
&& rm -r /var/lib/apt/lists/*
1413

1514
# Everything up to here should cache nicely between Swift versions, assuming dev dependencies change little
@@ -37,9 +36,9 @@ RUN set -e; \
3736
&& export GNUPGHOME="$(mktemp -d)" \
3837
&& curl -fsSL "$SWIFT_BIN_URL" -o swift.tar.gz "$SWIFT_SIG_URL" -o swift.tar.gz.sig \
3938
&& gpg --batch --quiet --keyserver ha.pool.sks-keyservers.net --recv-keys "$SWIFT_SIGNING_KEY" \
40-
&& gpg --batch --quiet --verify swift.tar.gz.sig swift.tar.gz \
39+
&& gpg --batch --verify swift.tar.gz.sig swift.tar.gz \
4140
# - Unpack the toolchain, set libs permissions, and clean up.
4241
&& tar -xzf swift.tar.gz --directory / --strip-components=1 \
4342
&& chmod -R o+r /usr/lib/swift \
4443
&& rm -rf "$GNUPGHOME" swift.tar.gz.sig swift.tar.gz \
45-
&& apt-get purge --auto-remove -y curl gpg
44+
&& apt-get purge --auto-remove -y curl

5.1/ubuntu/18.04/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ RUN set -e; \
4545
&& export GNUPGHOME="$(mktemp -d)" \
4646
&& curl -fsSL "$SWIFT_BIN_URL" -o swift.tar.gz "$SWIFT_SIG_URL" -o swift.tar.gz.sig \
4747
&& gpg --batch --quiet --keyserver ha.pool.sks-keyservers.net --recv-keys "$SWIFT_SIGNING_KEY" \
48-
&& gpg --batch --quiet --verify swift.tar.gz.sig swift.tar.gz \
48+
&& gpg --batch --verify swift.tar.gz.sig swift.tar.gz \
4949
# - Unpack the toolchain, set libs permissions, and clean up.
5050
&& tar -xzf swift.tar.gz --directory / --strip-components=1 \
5151
&& chmod -R o+r /usr/lib/swift \

5.1/ubuntu/18.04/slim/Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ RUN export DEBIAN_FRONTEND=noninteractive DEBCONF_NONINTERACTIVE_SEEN=true && ap
99
libxml2 \
1010
tzdata \
1111
curl \
12-
gpg \
12+
gnupg \
1313
&& rm -r /var/lib/apt/lists/*
1414

1515
# Everything up to here should cache nicely between Swift versions, assuming dev dependencies change little
@@ -37,9 +37,9 @@ RUN set -e; \
3737
&& export GNUPGHOME="$(mktemp -d)" \
3838
&& curl -fsSL "$SWIFT_BIN_URL" -o swift.tar.gz "$SWIFT_SIG_URL" -o swift.tar.gz.sig \
3939
&& gpg --batch --quiet --keyserver ha.pool.sks-keyservers.net --recv-keys "$SWIFT_SIGNING_KEY" \
40-
&& gpg --batch --quiet --verify swift.tar.gz.sig swift.tar.gz \
40+
&& gpg --batch --verify swift.tar.gz.sig swift.tar.gz \
4141
# - Unpack the toolchain, set libs permissions, and clean up.
4242
&& tar -xzf swift.tar.gz --directory / --strip-components=1 \
4343
&& chmod -R o+r /usr/lib/swift \
4444
&& rm -rf "$GNUPGHOME" swift.tar.gz.sig swift.tar.gz \
45-
&& apt-get purge --auto-remove -y curl gpg
45+
&& apt-get purge --auto-remove -y curl gnupg

0 commit comments

Comments
 (0)