Skip to content

Commit 07db81c

Browse files
committed
Merge pull request #5 from swiftdocker/gpg
Add GPG verification.
2 parents f1772aa + bd27c49 commit 07db81c

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

Dockerfile

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,13 @@ RUN apt-get update && \
99
apt-get install -y build-essential wget clang libedit-dev python2.7 python2.7-dev libicu52 && \
1010
rm -rf /var/lib/apt/lists/*
1111

12-
# Download Swift Ubuntu 14.04 Snapshot
12+
RUN wget -q -O - https://swift.org/keys/all-keys.asc | gpg --import -
13+
RUN gpg --keyserver hkp://pool.sks-keyservers.net --refresh-keys Swift
14+
15+
# Download Swift Ubuntu 14.04 Snapshot, signature and verify
1316
RUN wget https://swift.org/builds/ubuntu1404/swift-2.2-SNAPSHOT-2015-12-01-b/swift-2.2-SNAPSHOT-2015-12-01-b-ubuntu14.04.tar.gz
17+
RUN wget https://swift.org/builds/ubuntu1404/swift-2.2-SNAPSHOT-2015-12-01-b/swift-2.2-SNAPSHOT-2015-12-01-b-ubuntu14.04.tar.gz.sig
18+
RUN gpg --verify swift-2.2-SNAPSHOT-2015-12-01-b-ubuntu14.04.tar.gz
1419

1520
RUN tar -xvzf swift-2.2-SNAPSHOT-2015-12-01-b-ubuntu14.04.tar.gz && cd swift-2.2-SNAPSHOT-2015-12-01-b-ubuntu14.04
1621

0 commit comments

Comments
 (0)