Skip to content

Commit 1d1d49f

Browse files
committed
[5.3] Nightly Docker images
1 parent 2aa4d89 commit 1d1d49f

File tree

4 files changed

+266
-0
lines changed

4 files changed

+266
-0
lines changed

nightly-5.3/ubuntu/16.04/Dockerfile

Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
FROM ubuntu:16.04
2+
LABEL maintainer="Swift Infrastructure <[email protected]>"
3+
LABEL description="Docker Container for the Swift programming language"
4+
5+
RUN export DEBIAN_FRONTEND=noninteractive DEBCONF_NONINTERACTIVE_SEEN=true && apt-get -q update && \
6+
apt-get -q install -y \
7+
libatomic1 \
8+
libcurl3 \
9+
libxml2 \
10+
libedit2 \
11+
libsqlite3-0 \
12+
libc6-dev \
13+
binutils \
14+
libgcc-5-dev \
15+
libstdc++-5-dev \
16+
zlib1g-dev \
17+
libpython2.7 \
18+
tzdata \
19+
git \
20+
pkg-config \
21+
&& rm -r /var/lib/apt/lists/*
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=ubuntu
31+
ARG OS_MAJOR_VER=16
32+
ARG OS_MIN_VER=04
33+
ARG SWIFT_WEBROOT=https://swift.org/builds/swift-5.3-branch
34+
35+
ENV SWIFT_SIGNING_KEY=$SWIFT_SIGNING_KEY \
36+
SWIFT_PLATFORM=$SWIFT_PLATFORM \
37+
OS_MAJOR_VER=$OS_MAJOR_VER \
38+
OS_MIN_VER=$OS_MIN_VER \
39+
OS_VER=$SWIFT_PLATFORM$OS_MAJOR_VER.$OS_MIN_VER \
40+
SWIFT_WEBROOT="$SWIFT_WEBROOT/$SWIFT_PLATFORM$OS_MAJOR_VER$OS_MIN_VER"
41+
42+
RUN set -e; \
43+
# - Grab curl here so we cache better up above
44+
export DEBIAN_FRONTEND=noninteractive \
45+
&& apt-get -q update && apt-get -q install -y curl && rm -rf /var/lib/apt/lists/* \
46+
# - Latest Toolchain info
47+
&& export $(curl -s ${SWIFT_WEBROOT}/latest-build.yml | grep 'download:' | sed 's/:[^:\/\/]/=/g') \
48+
&& export $(curl -s ${SWIFT_WEBROOT}/latest-build.yml | grep 'download_signature:' | sed 's/:[^:\/\/]/=/g') \
49+
&& export DOWNLOAD_DIR=$(echo $download | sed "s/-${OS_VER}.tar.gz//g") \
50+
&& echo $DOWNLOAD_DIR > .swift_tag \
51+
# - Download the GPG keys, Swift toolchain, and toolchain signature, and verify.
52+
&& export GNUPGHOME="$(mktemp -d)" \
53+
&& curl -fsSL ${SWIFT_WEBROOT}/${DOWNLOAD_DIR}/${download} -o latest_toolchain.tar.gz \
54+
${SWIFT_WEBROOT}/${DOWNLOAD_DIR}/${download_signature} -o latest_toolchain.tar.gz.sig \
55+
&& curl -fSsL https://swift.org/keys/all-keys.asc | gpg --import - \
56+
&& gpg --batch --verify latest_toolchain.tar.gz.sig latest_toolchain.tar.gz \
57+
# - Unpack the toolchain, set libs permissions, and clean up.
58+
&& tar -xzf latest_toolchain.tar.gz --directory / --strip-components=1 \
59+
&& chmod -R o+r /usr/lib/swift \
60+
&& rm -rf "$GNUPGHOME" latest_toolchain.tar.gz.sig latest_toolchain.tar.gz \
61+
&& apt-get purge --auto-remove -y curl
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/bash.bashrc; \
68+
echo " ################################################################\n" \
69+
"#\t\t\t\t\t\t\t\t#\n" \
70+
"# Swift Nightly Docker Image\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: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
FROM ubuntu:16.04
2+
LABEL maintainer="Swift Infrastructure <[email protected]>"
3+
LABEL description="Docker Container for the Swift programming language"
4+
5+
RUN export DEBIAN_FRONTEND=noninteractive DEBCONF_NONINTERACTIVE_SEEN=true && apt-get -q update && \
6+
apt-get -q install -y \
7+
libatomic1 \
8+
libcurl3 \
9+
libxml2 \
10+
tzdata \
11+
&& rm -r /var/lib/apt/lists/*
12+
13+
# Everything up to here should cache nicely between Swift versions, assuming dev dependencies change little
14+
15+
# gpg --keyid-format LONG -k FAF6989E1BC16FEA
16+
# pub rsa4096/FAF6989E1BC16FEA 2019-11-07 [SC] [expires: 2021-11-06]
17+
# 8A7495662C3CD4AE18D95637FAF6989E1BC16FEA
18+
# uid [ unknown] Swift Automatic Signing Key #3 <[email protected]>
19+
ARG SWIFT_SIGNING_KEY=8A7495662C3CD4AE18D95637FAF6989E1BC16FEA
20+
ARG SWIFT_PLATFORM=ubuntu
21+
ARG OS_MAJOR_VER=16
22+
ARG OS_MIN_VER=04
23+
ARG SWIFT_WEBROOT=https://swift.org/builds/swift-5.3-branch
24+
25+
ENV SWIFT_SIGNING_KEY=$SWIFT_SIGNING_KEY \
26+
SWIFT_PLATFORM=$SWIFT_PLATFORM \
27+
OS_MAJOR_VER=$OS_MAJOR_VER \
28+
OS_MIN_VER=$OS_MIN_VER \
29+
OS_VER=$SWIFT_PLATFORM$OS_MAJOR_VER.$OS_MIN_VER \
30+
SWIFT_WEBROOT="$SWIFT_WEBROOT/$SWIFT_PLATFORM$OS_MAJOR_VER$OS_MIN_VER"
31+
32+
RUN set -e; \
33+
# - Grab curl and gpg here so we cache better up above
34+
export DEBIAN_FRONTEND=noninteractive \
35+
&& apt-get -q update && apt-get -q install -y curl && rm -rf /var/lib/apt/lists/* \
36+
# - Latest Toolchain info
37+
&& export $(curl -s ${SWIFT_WEBROOT}/latest-build.yml | grep 'download:' | sed 's/:[^:\/\/]/=/g') \
38+
&& export $(curl -s ${SWIFT_WEBROOT}/latest-build.yml | grep 'download_signature:' | sed 's/:[^:\/\/]/=/g') \
39+
&& export DOWNLOAD_DIR=$(echo $download | sed "s/-${OS_VER}.tar.gz//g") \
40+
&& echo $DOWNLOAD_DIR > .swift_tag \
41+
# - Download the GPG keys, Swift toolchain, and toolchain signature, and verify.
42+
&& export GNUPGHOME="$(mktemp -d)" \
43+
&& curl -fsSL ${SWIFT_WEBROOT}/${DOWNLOAD_DIR}/${download} -o latest_toolchain.tar.gz \
44+
${SWIFT_WEBROOT}/${DOWNLOAD_DIR}/${download_signature} -o latest_toolchain.tar.gz.sig \
45+
&& curl -fSsL https://swift.org/keys/all-keys.asc | gpg --import - \
46+
&& gpg --batch --verify latest_toolchain.tar.gz.sig latest_toolchain.tar.gz \
47+
# - Unpack the toolchain, set libs permissions, and clean up.
48+
&& tar -xzf latest_toolchain.tar.gz --directory / --strip-components=1 ${DOWNLOAD_DIR}-${OS_VER}/usr/lib/swift/linux \
49+
&& chmod -R o+r /usr/lib/swift \
50+
&& rm -rf "$GNUPGHOME" latest_toolchain.tar.gz.sig latest_toolchain.tar.gz \
51+
&& apt-get purge --auto-remove -y curl
52+
53+
RUN echo '[ ! -z "$TERM" -a -r /etc/motd ] && cat /etc/motd' \
54+
>> /etc/bash.bashrc; \
55+
echo " ################################################################\n" \
56+
"#\t\t\t\t\t\t\t\t#\n" \
57+
"# Swift Nightly Docker Image\t\t\t\t#\n" \
58+
"# Tag: $(cat .swift_tag)\t\t\t#\n" \
59+
"#\t\t\t\t\t\t\t\t#\n" \
60+
"################################################################\n" > /etc/motd

nightly-5.3/ubuntu/18.04/Dockerfile

Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
FROM ubuntu:18.04
2+
LABEL maintainer="Swift Infrastructure <[email protected]>"
3+
LABEL description="Docker Container for the Swift programming language"
4+
5+
RUN export DEBIAN_FRONTEND=noninteractive DEBCONF_NONINTERACTIVE_SEEN=true && apt-get -q update && \
6+
apt-get -q install -y \
7+
libatomic1 \
8+
libcurl4 \
9+
libxml2 \
10+
libedit2 \
11+
libsqlite3-0 \
12+
libc6-dev \
13+
binutils \
14+
libgcc-5-dev \
15+
libstdc++-5-dev \
16+
zlib1g-dev \
17+
libpython2.7 \
18+
tzdata \
19+
git \
20+
pkg-config \
21+
&& rm -r /var/lib/apt/lists/*
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=ubuntu
31+
ARG OS_MAJOR_VER=18
32+
ARG OS_MIN_VER=04
33+
ARG SWIFT_WEBROOT=https://swift.org/builds/swift-5.3-branch
34+
35+
ENV SWIFT_SIGNING_KEY=$SWIFT_SIGNING_KEY \
36+
SWIFT_PLATFORM=$SWIFT_PLATFORM \
37+
OS_MAJOR_VER=$OS_MAJOR_VER \
38+
OS_MIN_VER=$OS_MIN_VER \
39+
OS_VER=$SWIFT_PLATFORM$OS_MAJOR_VER.$OS_MIN_VER \
40+
SWIFT_WEBROOT="$SWIFT_WEBROOT/$SWIFT_PLATFORM$OS_MAJOR_VER$OS_MIN_VER"
41+
42+
RUN set -e; \
43+
# - Grab curl here so we cache better up above
44+
export DEBIAN_FRONTEND=noninteractive \
45+
&& apt-get -q update && apt-get -q install -y curl && rm -rf /var/lib/apt/lists/* \
46+
# - Latest Toolchain info
47+
&& export $(curl -s ${SWIFT_WEBROOT}/latest-build.yml | grep 'download:' | sed 's/:[^:\/\/]/=/g') \
48+
&& export $(curl -s ${SWIFT_WEBROOT}/latest-build.yml | grep 'download_signature:' | sed 's/:[^:\/\/]/=/g') \
49+
&& export DOWNLOAD_DIR=$(echo $download | sed "s/-${OS_VER}.tar.gz//g") \
50+
&& echo $DOWNLOAD_DIR > .swift_tag \
51+
# - Download the GPG keys, Swift toolchain, and toolchain signature, and verify.
52+
&& export GNUPGHOME="$(mktemp -d)" \
53+
&& curl -fsSL ${SWIFT_WEBROOT}/${DOWNLOAD_DIR}/${download} -o latest_toolchain.tar.gz \
54+
${SWIFT_WEBROOT}/${DOWNLOAD_DIR}/${download_signature} -o latest_toolchain.tar.gz.sig \
55+
&& curl -fSsL https://swift.org/keys/all-keys.asc | gpg --import - \
56+
&& gpg --batch --verify latest_toolchain.tar.gz.sig latest_toolchain.tar.gz \
57+
# - Unpack the toolchain, set libs permissions, and clean up.
58+
&& tar -xzf latest_toolchain.tar.gz --directory / --strip-components=1 \
59+
&& chmod -R o+r /usr/lib/swift \
60+
&& rm -rf "$GNUPGHOME" latest_toolchain.tar.gz.sig latest_toolchain.tar.gz \
61+
&& apt-get purge --auto-remove -y curl
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/bash.bashrc; \
68+
echo " ################################################################\n" \
69+
"#\t\t\t\t\t\t\t\t#\n" \
70+
"# Swift Nightly Docker Image\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: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
FROM ubuntu:18.04
2+
LABEL maintainer="Swift Infrastructure <[email protected]>"
3+
LABEL description="Docker Container for the Swift programming language"
4+
5+
RUN export DEBIAN_FRONTEND=noninteractive DEBCONF_NONINTERACTIVE_SEEN=true && apt-get -q update && \
6+
apt-get -q install -y \
7+
libatomic1 \
8+
libcurl4 \
9+
libxml2 \
10+
tzdata \
11+
&& rm -r /var/lib/apt/lists/*
12+
13+
# Everything up to here should cache nicely between Swift versions, assuming dev dependencies change little
14+
15+
# gpg --keyid-format LONG -k FAF6989E1BC16FEA
16+
# pub rsa4096/FAF6989E1BC16FEA 2019-11-07 [SC] [expires: 2021-11-06]
17+
# 8A7495662C3CD4AE18D95637FAF6989E1BC16FEA
18+
# uid [ unknown] Swift Automatic Signing Key #3 <[email protected]>
19+
ARG SWIFT_SIGNING_KEY=8A7495662C3CD4AE18D95637FAF6989E1BC16FEA
20+
ARG SWIFT_PLATFORM=ubuntu
21+
ARG OS_MAJOR_VER=18
22+
ARG OS_MIN_VER=04
23+
ARG SWIFT_WEBROOT=https://swift.org/builds/swift-5.3-branch
24+
25+
ENV SWIFT_SIGNING_KEY=$SWIFT_SIGNING_KEY \
26+
SWIFT_PLATFORM=$SWIFT_PLATFORM \
27+
OS_MAJOR_VER=$OS_MAJOR_VER \
28+
OS_MIN_VER=$OS_MIN_VER \
29+
OS_VER=$SWIFT_PLATFORM$OS_MAJOR_VER.$OS_MIN_VER \
30+
SWIFT_WEBROOT="$SWIFT_WEBROOT/$SWIFT_PLATFORM$OS_MAJOR_VER$OS_MIN_VER"
31+
32+
RUN set -e; \
33+
# - Grab curl and gpg here so we cache better up above
34+
export DEBIAN_FRONTEND=noninteractive \
35+
&& apt-get -q update && apt-get -q install -y curl gnupg && rm -rf /var/lib/apt/lists/* \
36+
# - Latest Toolchain info
37+
&& export $(curl -s ${SWIFT_WEBROOT}/latest-build.yml | grep 'download:' | sed 's/:[^:\/\/]/=/g') \
38+
&& export $(curl -s ${SWIFT_WEBROOT}/latest-build.yml | grep 'download_signature:' | sed 's/:[^:\/\/]/=/g') \
39+
&& export DOWNLOAD_DIR=$(echo $download | sed "s/-${OS_VER}.tar.gz//g") \
40+
&& echo $DOWNLOAD_DIR > .swift_tag \
41+
# - Download the GPG keys, Swift toolchain, and toolchain signature, and verify.
42+
&& export GNUPGHOME="$(mktemp -d)" \
43+
&& curl -fsSL ${SWIFT_WEBROOT}/${DOWNLOAD_DIR}/${download} -o latest_toolchain.tar.gz \
44+
${SWIFT_WEBROOT}/${DOWNLOAD_DIR}/${download_signature} -o latest_toolchain.tar.gz.sig \
45+
&& curl -fSsL https://swift.org/keys/all-keys.asc | gpg --import - \
46+
&& gpg --batch --verify latest_toolchain.tar.gz.sig latest_toolchain.tar.gz \
47+
# - Unpack the toolchain, set libs permissions, and clean up.
48+
&& tar -xzf latest_toolchain.tar.gz --directory / --strip-components=1 ${DOWNLOAD_DIR}-${OS_VER}/usr/lib/swift/linux \
49+
&& chmod -R o+r /usr/lib/swift \
50+
&& rm -rf "$GNUPGHOME" latest_toolchain.tar.gz.sig latest_toolchain.tar.gz \
51+
&& apt-get purge --auto-remove -y curl gnupg
52+
53+
RUN echo '[ ! -z "$TERM" -a -r /etc/motd ] && cat /etc/motd' \
54+
>> /etc/bash.bashrc; \
55+
echo " ################################################################\n" \
56+
"#\t\t\t\t\t\t\t\t#\n" \
57+
"# Swift Nightly Docker Image\t\t\t\t#\n" \
58+
"# Tag: $(cat .swift_tag)\t\t\t#\n" \
59+
"#\t\t\t\t\t\t\t\t#\n" \
60+
"################################################################\n" > /etc/motd

0 commit comments

Comments
 (0)