Skip to content

Commit f257372

Browse files
authored
Merge pull request #262 from apple/swift-5.6-nightly
Add support for Swift 5.6 nightly Docker images
2 parents ffca0be + 046e5c7 commit f257372

File tree

15 files changed

+998
-0
lines changed

15 files changed

+998
-0
lines changed

nightly-5.6/amazonlinux/2/Dockerfile

Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
FROM amazonlinux:2
2+
LABEL maintainer="Swift Infrastructure <[email protected]>"
3+
LABEL description="Docker Container for the Swift programming language"
4+
5+
RUN yum -y install \
6+
binutils \
7+
gcc \
8+
git \
9+
glibc-static \
10+
gzip \
11+
libbsd \
12+
libcurl \
13+
libedit \
14+
libicu \
15+
libsqlite \
16+
libstdc++-static \
17+
libuuid \
18+
libxml2 \
19+
tar \
20+
tzdata \
21+
zlib-devel
22+
23+
# Everything up to here should cache nicely between Swift versions, assuming dev dependencies change little
24+
25+
# gpg --keyid-format LONG -k FAF6989E1BC16FEA
26+
# pub rsa4096/FAF6989E1BC16FEA 2019-11-07 [SC] [expires: 2021-11-06]
27+
# 8A7495662C3CD4AE18D95637FAF6989E1BC16FEA
28+
# uid [ unknown] Swift Automatic Signing Key #3 <[email protected]>
29+
ARG SWIFT_SIGNING_KEY=8A7495662C3CD4AE18D95637FAF6989E1BC16FEA
30+
ARG SWIFT_PLATFORM=amazonlinux
31+
ARG OS_MAJOR_VER=2
32+
ARG SWIFT_WEBROOT=https://download.swift.org/swift-5.6-branch
33+
34+
ENV SWIFT_SIGNING_KEY=$SWIFT_SIGNING_KEY \
35+
SWIFT_PLATFORM=$SWIFT_PLATFORM \
36+
OS_MAJOR_VER=$OS_MAJOR_VER \
37+
OS_VER=$SWIFT_PLATFORM$OS_MAJOR_VER \
38+
SWIFT_WEBROOT="$SWIFT_WEBROOT/$SWIFT_PLATFORM$OS_MAJOR_VER"
39+
40+
RUN echo "${SWIFT_WEBROOT}/latest-build.yml"
41+
42+
RUN set -e; \
43+
# - Latest Toolchain info
44+
export $(curl -s ${SWIFT_WEBROOT}/latest-build.yml | grep 'download:' | sed 's/:[^:\/\/]/=/g') \
45+
&& export $(curl -s ${SWIFT_WEBROOT}/latest-build.yml | grep 'download_signature:' | sed 's/:[^:\/\/]/=/g') \
46+
&& export DOWNLOAD_DIR=$(echo $download | sed "s/-${OS_VER}.tar.gz//g") \
47+
&& echo $DOWNLOAD_DIR > .swift_tag \
48+
# - Download the GPG keys, Swift toolchain, and toolchain signature, and verify.
49+
&& export GNUPGHOME="$(mktemp -d)" \
50+
&& curl -fsSL ${SWIFT_WEBROOT}/${DOWNLOAD_DIR}/${download} -o latest_toolchain.tar.gz \
51+
${SWIFT_WEBROOT}/${DOWNLOAD_DIR}/${download_signature} -o latest_toolchain.tar.gz.sig \
52+
&& curl -fSsL https://swift.org/keys/all-keys.asc | gpg --import - \
53+
&& gpg --batch --verify latest_toolchain.tar.gz.sig latest_toolchain.tar.gz \
54+
# - Unpack the toolchain, set libs permissions, and clean up.
55+
&& tar -xzf latest_toolchain.tar.gz --directory / --strip-components=1 \
56+
&& chmod -R o+r /usr/lib/swift \
57+
&& rm -rf "$GNUPGHOME" latest_toolchain.tar.gz.sig latest_toolchain.tar.gz \
58+
59+
# Print Installed Swift Version
60+
RUN swift --version
61+
62+
RUN echo '[ ! -z "$TERM" -a -r /etc/motd ] && cat /etc/motd' \
63+
>> /etc/bashrc; \
64+
echo -e " ################################################################\n" \
65+
"#\t\t\t\t\t\t\t\t#\n" \
66+
"# Swift Nightly Docker Image\t\t\t\t\t#\n" \
67+
"# Tag: $(cat .swift_tag)\t\t\t#\n" \
68+
"#\t\t\t\t\t\t\t\t#\n" \
69+
"################################################################\n" > /etc/motd
70+
71+
RUN echo 'source /etc/bashrc' >> /root/.bashrc
Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
FROM amazonlinux:2 AS base
2+
LABEL maintainer="Swift Infrastructure <[email protected]>"
3+
LABEL description="Docker Container for the Swift programming language"
4+
5+
RUN yum -y install \
6+
binutils \
7+
gcc \
8+
git \
9+
glibc-static \
10+
gzip \
11+
libbsd \
12+
libcurl \
13+
libedit \
14+
libicu \
15+
libsqlite \
16+
libstdc++-static \
17+
libuuid \
18+
libxml2 \
19+
tar \
20+
tzdata \
21+
zlib-devel
22+
23+
# Everything up to here should cache nicely between Swift versions, assuming dev dependencies change little
24+
25+
# gpg --keyid-format LONG -k FAF6989E1BC16FEA
26+
# pub rsa4096/FAF6989E1BC16FEA 2019-11-07 [SC] [expires: 2021-11-06]
27+
# 8A7495662C3CD4AE18D95637FAF6989E1BC16FEA
28+
# uid [ unknown] Swift Automatic Signing Key #3 <[email protected]>
29+
ARG SWIFT_SIGNING_KEY=8A7495662C3CD4AE18D95637FAF6989E1BC16FEA
30+
ARG SWIFT_PLATFORM=amazonlinux
31+
ARG OS_MAJOR_VER=2
32+
ARG SWIFT_WEBROOT=https://download.swift.org/swift-5.6-branch
33+
34+
# This is a small trick to enable if/else for arm64 and amd64.
35+
# Because of https://bugs.swift.org/browse/SR-14872 we need adjust tar options.
36+
FROM base AS base-amd64
37+
ARG OS_ARCH_SUFFIX=
38+
ARG ADDITIONAL_TAR_OPTIONS="--strip-components=1"
39+
40+
FROM base AS base-arm64
41+
ARG OS_ARCH_SUFFIX=-aarch64
42+
ARG ADDITIONAL_TAR_OPTIONS=
43+
44+
FROM base-$TARGETARCH AS final
45+
46+
ARG OS_VER=$SWIFT_PLATFORM$OS_MAJOR_VER$OS_ARCH_SUFFIX
47+
ARG PLATFORM_WEBROOT="$SWIFT_WEBROOT/$SWIFT_PLATFORM$OS_MAJOR_VER$OS_ARCH_SUFFIX"
48+
49+
RUN echo "${PLATFORM_WEBROOT}/latest-build.yml"
50+
51+
RUN set -e; \
52+
# - Latest Toolchain info
53+
export $(curl -s ${PLATFORM_WEBROOT}/latest-build.yml | grep 'download:' | sed 's/:[^:\/\/]/=/g') \
54+
&& export $(curl -s ${PLATFORM_WEBROOT}/latest-build.yml | grep 'download_signature:' | sed 's/:[^:\/\/]/=/g') \
55+
&& export DOWNLOAD_DIR=$(echo $download | sed "s/-${OS_VER}.tar.gz//g") \
56+
&& echo $DOWNLOAD_DIR > .swift_tag \
57+
# - Download the GPG keys, Swift toolchain, and toolchain signature, and verify.
58+
&& export GNUPGHOME="$(mktemp -d)" \
59+
&& curl -fsSL ${PLATFORM_WEBROOT}/${DOWNLOAD_DIR}/${download} -o latest_toolchain.tar.gz \
60+
${PLATFORM_WEBROOT}/${DOWNLOAD_DIR}/${download_signature} -o latest_toolchain.tar.gz.sig \
61+
&& curl -fSsL https://swift.org/keys/all-keys.asc | gpg --import - \
62+
&& gpg --batch --verify latest_toolchain.tar.gz.sig latest_toolchain.tar.gz \
63+
# - Unpack the toolchain, set libs permissions, and clean up.
64+
&& tar -xzf latest_toolchain.tar.gz --directory / ${ADDITIONAL_TAR_OPTIONS} \
65+
&& chmod -R o+r /usr/lib/swift \
66+
&& rm -rf "$GNUPGHOME" latest_toolchain.tar.gz.sig latest_toolchain.tar.gz \
67+
68+
# Print Installed Swift Version
69+
RUN swift --version
70+
71+
RUN echo '[ ! -z "$TERM" -a -r /etc/motd ] && cat /etc/motd' \
72+
>> /etc/bashrc; \
73+
echo -e " ################################################################\n" \
74+
"#\t\t\t\t\t\t\t\t#\n" \
75+
"# Swift Nightly Docker Image\t\t\t\t\t#\n" \
76+
"# Tag: $(cat .swift_tag)\t\t\t#\n" \
77+
"#\t\t\t\t\t\t\t\t#\n" \
78+
"################################################################\n" > /etc/motd
79+
80+
RUN echo 'source /etc/bashrc' >> /root/.bashrc
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
FROM amazonlinux:2
2+
LABEL maintainer="Swift Infrastructure <[email protected]>"
3+
LABEL description="Docker Container for the Swift programming language"
4+
5+
# Everything up to here should cache nicely between Swift versions, assuming dev dependencies change little
6+
7+
# gpg --keyid-format LONG -k FAF6989E1BC16FEA
8+
# pub rsa4096/FAF6989E1BC16FEA 2019-11-07 [SC] [expires: 2021-11-06]
9+
# 8A7495662C3CD4AE18D95637FAF6989E1BC16FEA
10+
# uid [ unknown] Swift Automatic Signing Key #3 <[email protected]>
11+
ARG SWIFT_SIGNING_KEY=8A7495662C3CD4AE18D95637FAF6989E1BC16FEA
12+
ARG SWIFT_PLATFORM=amazonlinux
13+
ARG OS_MAJOR_VER=2
14+
ARG SWIFT_WEBROOT=https://download.swift.org/swift-5.6-branch
15+
16+
ENV SWIFT_SIGNING_KEY=$SWIFT_SIGNING_KEY \
17+
SWIFT_PLATFORM=$SWIFT_PLATFORM \
18+
OS_MAJOR_VER=$OS_MAJOR_VER \
19+
OS_VER=$SWIFT_PLATFORM$OS_MAJOR_VER \
20+
SWIFT_WEBROOT="$SWIFT_WEBROOT/$SWIFT_PLATFORM$OS_MAJOR_VER"
21+
22+
RUN echo "${SWIFT_WEBROOT}/latest-build.yml"
23+
24+
RUN set -e; \
25+
# - Latest Toolchain info
26+
export $(curl -s ${SWIFT_WEBROOT}/latest-build.yml | grep 'download:' | sed 's/:[^:\/\/]/=/g') \
27+
&& export $(curl -s ${SWIFT_WEBROOT}/latest-build.yml | grep 'download_signature:' | sed 's/:[^:\/\/]/=/g') \
28+
&& export DOWNLOAD_DIR=$(echo $download | sed "s/-${OS_VER}.tar.gz//g") \
29+
&& echo $DOWNLOAD_DIR > .swift_tag \
30+
# - Download the GPG keys, Swift toolchain, and toolchain signature, and verify.
31+
&& export GNUPGHOME="$(mktemp -d)" \
32+
&& curl -fsSL ${SWIFT_WEBROOT}/${DOWNLOAD_DIR}/${download} -o latest_toolchain.tar.gz \
33+
${SWIFT_WEBROOT}/${DOWNLOAD_DIR}/${download_signature} -o latest_toolchain.tar.gz.sig \
34+
&& curl -fSsL https://swift.org/keys/all-keys.asc | gpg --import - \
35+
&& gpg --batch --verify latest_toolchain.tar.gz.sig latest_toolchain.tar.gz \
36+
# - Unpack the toolchain, set libs permissions, and clean up.
37+
&& yum -y install tar gzip \
38+
&& tar -xzf latest_toolchain.tar.gz --directory / --strip-components=1 ${DOWNLOAD_DIR}-${OS_VER}/usr/lib/swift/linux \
39+
&& chmod -R o+r /usr/lib/swift \
40+
&& rm -rf "$GNUPGHOME" latest_toolchain.tar.gz.sig latest_toolchain.tar.gz \
41+
&& yum autoremove -y tar gzip
42+
43+
RUN echo '[ ! -z "$TERM" -a -r /etc/motd ] && cat /etc/motd' \
44+
>> /etc/bashrc; \
45+
echo -e " ################################################################\n" \
46+
"#\t\t\t\t\t\t\t\t#\n" \
47+
"# Swift Nightly Docker Image\t\t\t\t\t#\n" \
48+
"# Tag: $(cat .swift_tag)\t\t\t#\n" \
49+
"#\t\t\t\t\t\t\t\t#\n" \
50+
"################################################################\n" > /etc/motd
51+
52+
RUN echo 'source /etc/bashrc' >> /root/.bashrc

nightly-5.6/centos/7/Dockerfile

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
FROM centos:7
2+
LABEL maintainer="Swift Infrastructure <[email protected]>"
3+
LABEL description="Docker Container for the Swift programming language"
4+
5+
RUN yum install shadow-utils.x86_64 -y \
6+
binutils \
7+
gcc \
8+
git \
9+
glibc-static \
10+
libbsd-devel \
11+
libedit \
12+
libedit-devel \
13+
libicu-devel \
14+
libstdc++-static \
15+
pkg-config \
16+
python2 \
17+
python3 \
18+
sqlite \
19+
zlib-devel
20+
21+
RUN sed -i -e 's/\*__block/\*__libc_block/g' /usr/include/unistd.h
22+
23+
# Everything up to here should cache nicely between Swift versions, assuming dev dependencies change little
24+
25+
# gpg --keyid-format LONG -k FAF6989E1BC16FEA
26+
# pub rsa4096/FAF6989E1BC16FEA 2019-11-07 [SC] [expires: 2021-11-06]
27+
# 8A7495662C3CD4AE18D95637FAF6989E1BC16FEA
28+
# uid [ unknown] Swift Automatic Signing Key #3 <[email protected]>
29+
ARG SWIFT_SIGNING_KEY=8A7495662C3CD4AE18D95637FAF6989E1BC16FEA
30+
ARG SWIFT_PLATFORM=centos
31+
ARG OS_MAJOR_VER=7
32+
ARG SWIFT_WEBROOT=https://download.swift.org/swift-5.6-branch
33+
34+
ENV SWIFT_SIGNING_KEY=$SWIFT_SIGNING_KEY \
35+
SWIFT_PLATFORM=$SWIFT_PLATFORM \
36+
OS_MAJOR_VER=$OS_MAJOR_VER \
37+
OS_VER=$SWIFT_PLATFORM$OS_MAJOR_VER \
38+
SWIFT_WEBROOT="$SWIFT_WEBROOT/$SWIFT_PLATFORM$OS_MAJOR_VER"
39+
40+
RUN echo "${SWIFT_WEBROOT}/latest-build.yml"
41+
42+
RUN set -e; \
43+
# - Latest Toolchain info
44+
export $(curl -s ${SWIFT_WEBROOT}/latest-build.yml | grep 'download:' | sed 's/:[^:\/\/]/=/g') \
45+
&& export $(curl -s ${SWIFT_WEBROOT}/latest-build.yml | grep 'download_signature:' | sed 's/:[^:\/\/]/=/g') \
46+
&& export DOWNLOAD_DIR=$(echo $download | sed "s/-${OS_VER}.tar.gz//g") \
47+
&& echo $DOWNLOAD_DIR > .swift_tag \
48+
# - Download the GPG keys, Swift toolchain, and toolchain signature, and verify.
49+
&& export GNUPGHOME="$(mktemp -d)" \
50+
&& curl -fL ${SWIFT_WEBROOT}/${DOWNLOAD_DIR}/${download} -o latest_toolchain.tar.gz \
51+
${SWIFT_WEBROOT}/${DOWNLOAD_DIR}/${download_signature} -o latest_toolchain.tar.gz.sig \
52+
&& curl -fL https://swift.org/keys/all-keys.asc | gpg --import - \
53+
&& gpg --batch --verify latest_toolchain.tar.gz.sig latest_toolchain.tar.gz \
54+
# - Unpack the toolchain, set libs permissions, and clean up.
55+
&& tar -xzf latest_toolchain.tar.gz --directory / --strip-components=1 \
56+
&& chmod -R o+r /usr/lib/swift \
57+
&& rm -rf "$GNUPGHOME" latest_toolchain.tar.gz.sig latest_toolchain.tar.gz
58+
59+
# Print Installed Swift Version
60+
RUN swift --version
61+
62+
RUN echo '[ ! -z "$TERM" -a -r /etc/motd ] && cat /etc/motd' \
63+
>> /etc/bashrc; \
64+
echo -e " ################################################################\n" \
65+
"#\t\t\t\t\t\t\t\t#\n" \
66+
"# Swift Nightly Docker Image\t\t\t\t\t#\n" \
67+
"# Tag: $(cat .swift_tag)\t\t\t#\n" \
68+
"#\t\t\t\t\t\t\t\t#\n" \
69+
"################################################################\n" > /etc/motd

nightly-5.6/centos/7/slim/Dockerfile

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
FROM centos:7
2+
LABEL maintainer="Swift Infrastructure <[email protected]>"
3+
LABEL description="Docker Container for the Swift programming language"
4+
5+
# Everything up to here should cache nicely between Swift versions, assuming dev dependencies change little
6+
7+
# gpg --keyid-format LONG -k FAF6989E1BC16FEA
8+
# pub rsa4096/FAF6989E1BC16FEA 2019-11-07 [SC] [expires: 2021-11-06]
9+
# 8A7495662C3CD4AE18D95637FAF6989E1BC16FEA
10+
# uid [ unknown] Swift Automatic Signing Key #3 <[email protected]>
11+
ARG SWIFT_SIGNING_KEY=8A7495662C3CD4AE18D95637FAF6989E1BC16FEA
12+
ARG SWIFT_PLATFORM=centos
13+
ARG OS_MAJOR_VER=7
14+
ARG SWIFT_WEBROOT=https://download.swift.org/swift-5.6-branch
15+
16+
ENV SWIFT_SIGNING_KEY=$SWIFT_SIGNING_KEY \
17+
SWIFT_PLATFORM=$SWIFT_PLATFORM \
18+
OS_MAJOR_VER=$OS_MAJOR_VER \
19+
OS_VER=$SWIFT_PLATFORM$OS_MAJOR_VER \
20+
SWIFT_WEBROOT="$SWIFT_WEBROOT/$SWIFT_PLATFORM$OS_MAJOR_VER"
21+
22+
RUN echo "${SWIFT_WEBROOT}/latest-build.yml"
23+
24+
RUN set -e; \
25+
# - Latest Toolchain info
26+
export $(curl -s ${SWIFT_WEBROOT}/latest-build.yml | grep 'download:' | sed 's/:[^:\/\/]/=/g') \
27+
&& export $(curl -s ${SWIFT_WEBROOT}/latest-build.yml | grep 'download_signature:' | sed 's/:[^:\/\/]/=/g') \
28+
&& export DOWNLOAD_DIR=$(echo $download | sed "s/-${OS_VER}.tar.gz//g") \
29+
&& echo $DOWNLOAD_DIR > .swift_tag \
30+
# - Download the GPG keys, Swift toolchain, and toolchain signature, and verify.
31+
&& export GNUPGHOME="$(mktemp -d)" \
32+
&& curl -fsSL ${SWIFT_WEBROOT}/${DOWNLOAD_DIR}/${download} -o latest_toolchain.tar.gz \
33+
${SWIFT_WEBROOT}/${DOWNLOAD_DIR}/${download_signature} -o latest_toolchain.tar.gz.sig \
34+
&& curl -fSsL https://swift.org/keys/all-keys.asc | gpg --import - \
35+
&& gpg --batch --verify latest_toolchain.tar.gz.sig latest_toolchain.tar.gz \
36+
# - Unpack the toolchain, set libs permissions, and clean up.
37+
&& tar -xzf latest_toolchain.tar.gz --directory / --strip-components=1 ${DOWNLOAD_DIR}-${OS_VER}/usr/lib/swift/linux \
38+
&& chmod -R o+r /usr/lib/swift \
39+
&& rm -rf "$GNUPGHOME" latest_toolchain.tar.gz.sig latest_toolchain.tar.gz
40+
41+
RUN echo '[ ! -z "$TERM" -a -r /etc/motd ] && cat /etc/motd' \
42+
>> /etc/bashrc; \
43+
echo -e " ################################################################\n" \
44+
"#\t\t\t\t\t\t\t\t#\n" \
45+
"# Swift Nightly Docker Image\t\t\t\t\t#\n" \
46+
"# Tag: $(cat .swift_tag)\t\t\t#\n" \
47+
"#\t\t\t\t\t\t\t\t#\n" \
48+
"################################################################\n" > /etc/motd

nightly-5.6/centos/8/Dockerfile

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
FROM centos:8
2+
LABEL maintainer="Swift Infrastructure <[email protected]>"
3+
LABEL description="Docker Container for the Swift programming language"
4+
5+
RUN yum install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm
6+
7+
RUN yum install --enablerepo=powertools -y \
8+
binutils \
9+
gcc \
10+
git \
11+
glibc-static \
12+
libbsd-devel \
13+
libedit \
14+
libedit-devel \
15+
libicu-devel \
16+
libstdc++-static \
17+
pkg-config \
18+
python2 \
19+
sqlite \
20+
zlib-devel
21+
22+
RUN ln -s /usr/bin/python2 /usr/bin/python
23+
24+
# Everything up to here should cache nicely between Swift versions, assuming dev dependencies change little
25+
26+
# gpg --keyid-format LONG -k FAF6989E1BC16FEA
27+
# pub rsa4096/FAF6989E1BC16FEA 2019-11-07 [SC] [expires: 2021-11-06]
28+
# 8A7495662C3CD4AE18D95637FAF6989E1BC16FEA
29+
# uid [ unknown] Swift Automatic Signing Key #3 <[email protected]>
30+
ARG SWIFT_SIGNING_KEY=8A7495662C3CD4AE18D95637FAF6989E1BC16FEA
31+
ARG SWIFT_PLATFORM=centos
32+
ARG OS_MAJOR_VER=8
33+
ARG SWIFT_WEBROOT=https://download.swift.org/swift-5.6-branch
34+
35+
ENV SWIFT_SIGNING_KEY=$SWIFT_SIGNING_KEY \
36+
SWIFT_PLATFORM=$SWIFT_PLATFORM \
37+
OS_MAJOR_VER=$OS_MAJOR_VER \
38+
OS_VER=$SWIFT_PLATFORM$OS_MAJOR_VER \
39+
SWIFT_WEBROOT="$SWIFT_WEBROOT/$SWIFT_PLATFORM$OS_MAJOR_VER"
40+
41+
RUN echo "${SWIFT_WEBROOT}/latest-build.yml"
42+
43+
RUN set -e; \
44+
# - Latest Toolchain info
45+
export $(curl -s ${SWIFT_WEBROOT}/latest-build.yml | grep 'download:' | sed 's/:[^:\/\/]/=/g') \
46+
&& export $(curl -s ${SWIFT_WEBROOT}/latest-build.yml | grep 'download_signature:' | sed 's/:[^:\/\/]/=/g') \
47+
&& export DOWNLOAD_DIR=$(echo $download | sed "s/-${OS_VER}.tar.gz//g") \
48+
&& echo $DOWNLOAD_DIR > .swift_tag \
49+
# - Download the GPG keys, Swift toolchain, and toolchain signature, and verify.
50+
&& export GNUPGHOME="$(mktemp -d)" \
51+
&& curl -fsSL ${SWIFT_WEBROOT}/${DOWNLOAD_DIR}/${download} -o latest_toolchain.tar.gz \
52+
${SWIFT_WEBROOT}/${DOWNLOAD_DIR}/${download_signature} -o latest_toolchain.tar.gz.sig \
53+
&& curl -fSsL https://swift.org/keys/all-keys.asc | gpg --import - \
54+
&& gpg --batch --verify latest_toolchain.tar.gz.sig latest_toolchain.tar.gz \
55+
# - Unpack the toolchain, set libs permissions, and clean up.
56+
&& tar -xzf latest_toolchain.tar.gz --directory / --strip-components=1 \
57+
&& chmod -R o+r /usr/lib/swift \
58+
&& rm -rf "$GNUPGHOME" latest_toolchain.tar.gz.sig latest_toolchain.tar.gz
59+
60+
# Print Installed Swift Version
61+
RUN swift --version
62+
63+
RUN echo '[ ! -z "$TERM" -a -r /etc/motd ] && cat /etc/motd' \
64+
>> /etc/bashrc; \
65+
echo -e " ################################################################\n" \
66+
"#\t\t\t\t\t\t\t\t#\n" \
67+
"# Swift Nightly Docker Image\t\t\t\t\t#\n" \
68+
"# Tag: $(cat .swift_tag)\t\t\t#\n" \
69+
"#\t\t\t\t\t\t\t\t#\n" \
70+
"################################################################\n" > /etc/motd

0 commit comments

Comments
 (0)