Skip to content

Commit 3a10612

Browse files
authored
Add Nightly Swift 5.9 Dockerfiles (#336)
1 parent 783be58 commit 3a10612

File tree

15 files changed

+1010
-0
lines changed

15 files changed

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

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

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

0 commit comments

Comments
 (0)