Skip to content

Commit f3392c0

Browse files
authored
Merge pull request #12 from wlisac/swift-5.5.1
Add Swift 5.5.1 Dockerfiles for aarch64 devices
2 parents 2f919bf + 5e77864 commit f3392c0

File tree

11 files changed

+400
-6
lines changed

11 files changed

+400
-6
lines changed
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
# wlisac/aarch64-ubuntu-swift:5.5.1-bionic-build
2+
3+
ARG BASE_IMAGE=balenalib/aarch64-ubuntu:bionic-build
4+
5+
# Download and decompress the tarball into an intermediate container
6+
# to improve cache accross different base image variations
7+
8+
FROM balenalib/aarch64-ubuntu:bionic as downloader
9+
10+
LABEL Description="Swift Downloader"
11+
12+
ARG TARBALL_URL=https://github.com/futurejones/swift-arm64/releases/download/v5.5.1-RELEASE/swiftlang-5.5.1-ubuntu-18.04-release-aarch64-01-2021-10-29.tar.gz
13+
ARG TARBALL_FILE=swift.tgz
14+
15+
WORKDIR /swift
16+
17+
RUN curl -L -o $TARBALL_FILE $TARBALL_URL \
18+
&& tar -xvzf $TARBALL_FILE -C /swift \
19+
&& rm $TARBALL_FILE
20+
21+
# Create base image
22+
23+
FROM "$BASE_IMAGE"
24+
25+
LABEL maintainer "Will Lisac <will@lisac.org>"
26+
LABEL Description="Docker Container for Swift on Balena"
27+
28+
# Dependencies from official Swift Dockerfile for Swift 5.5 on Ubuntu 18.04
29+
# https://github.com/apple/swift-docker/blob/2d2c2fb89fe6ecfd8885157eb1666ed2686503a0/5.5/ubuntu/18.04/Dockerfile
30+
31+
RUN install_packages \
32+
libatomic1 \
33+
libcurl4 \
34+
libxml2 \
35+
libedit2 \
36+
libsqlite3-0 \
37+
libc6-dev \
38+
binutils \
39+
libgcc-5-dev \
40+
libstdc++-5-dev \
41+
zlib1g-dev \
42+
libpython3.6 \
43+
tzdata \
44+
git \
45+
pkg-config
46+
47+
# Copy files from downloader to root
48+
COPY --from=downloader /swift /
49+
50+
RUN swift --version
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# wlisac/aarch64-ubuntu-swift:5.5.1-bionic-run
2+
3+
ARG BASE_IMAGE=balenalib/aarch64-ubuntu:bionic-run
4+
5+
# Download and decompress the tarball into an intermediate container
6+
# to improve cache accross different base image variations
7+
8+
FROM balenalib/aarch64-ubuntu:bionic as downloader
9+
10+
LABEL Description="Swift Downloader"
11+
12+
ARG TARBALL_URL=https://github.com/futurejones/swift-arm64/releases/download/v5.5.1-RELEASE/swiftlang-5.5.1-ubuntu-18.04-release-aarch64-01-2021-10-29.tar.gz
13+
ARG TARBALL_FILE=swift.tgz
14+
15+
WORKDIR /swift
16+
17+
RUN curl -L -o $TARBALL_FILE $TARBALL_URL \
18+
&& tar -xvzf $TARBALL_FILE -C /swift \
19+
&& rm $TARBALL_FILE
20+
21+
# Create base image
22+
23+
FROM "$BASE_IMAGE"
24+
25+
LABEL maintainer "Will Lisac <will@lisac.org>"
26+
LABEL Description="Docker Container for Swift on Balena"
27+
28+
# Dependencies from official Swift Dockerfile for Swift 5.5 on Ubuntu 18.04
29+
# https://github.com/apple/swift-docker/blob/2d2c2fb89fe6ecfd8885157eb1666ed2686503a0/5.5/ubuntu/18.04/slim/Dockerfile
30+
31+
RUN install_packages \
32+
libatomic1 \
33+
libcurl4 \
34+
libxml2 \
35+
tzdata
36+
37+
# Copy files from downloader to root
38+
COPY --from=downloader /swift/usr/lib/swift/linux /usr/lib/swift/linux
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
# Autogenerated device Dockerfile based on architecture Dockerfile: wlisac/aarch64-ubuntu-swift:5.5.1-bionic-build
2+
3+
# wlisac/generic-aarch64-ubuntu-swift:5.5.1-bionic-build
4+
5+
ARG BASE_IMAGE=balenalib/generic-aarch64-ubuntu:bionic-build
6+
7+
# Download and decompress the tarball into an intermediate container
8+
# to improve cache accross different base image variations
9+
10+
FROM balenalib/aarch64-ubuntu:bionic as downloader
11+
12+
LABEL Description="Swift Downloader"
13+
14+
ARG TARBALL_URL=https://github.com/futurejones/swift-arm64/releases/download/v5.5.1-RELEASE/swiftlang-5.5.1-ubuntu-18.04-release-aarch64-01-2021-10-29.tar.gz
15+
ARG TARBALL_FILE=swift.tgz
16+
17+
WORKDIR /swift
18+
19+
RUN curl -L -o $TARBALL_FILE $TARBALL_URL \
20+
&& tar -xvzf $TARBALL_FILE -C /swift \
21+
&& rm $TARBALL_FILE
22+
23+
# Create base image
24+
25+
FROM "$BASE_IMAGE"
26+
27+
LABEL maintainer "Will Lisac <will@lisac.org>"
28+
LABEL Description="Docker Container for Swift on Balena"
29+
30+
# Dependencies from official Swift Dockerfile for Swift 5.5 on Ubuntu 18.04
31+
# https://github.com/apple/swift-docker/blob/2d2c2fb89fe6ecfd8885157eb1666ed2686503a0/5.5/ubuntu/18.04/Dockerfile
32+
33+
RUN install_packages \
34+
libatomic1 \
35+
libcurl4 \
36+
libxml2 \
37+
libedit2 \
38+
libsqlite3-0 \
39+
libc6-dev \
40+
binutils \
41+
libgcc-5-dev \
42+
libstdc++-5-dev \
43+
zlib1g-dev \
44+
libpython3.6 \
45+
tzdata \
46+
git \
47+
pkg-config
48+
49+
# Copy files from downloader to root
50+
COPY --from=downloader /swift /
51+
52+
RUN swift --version
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
# Autogenerated device Dockerfile based on architecture Dockerfile: wlisac/aarch64-ubuntu-swift:5.5.1-bionic-run
2+
3+
# wlisac/generic-aarch64-ubuntu-swift:5.5.1-bionic-run
4+
5+
ARG BASE_IMAGE=balenalib/generic-aarch64-ubuntu:bionic-run
6+
7+
# Download and decompress the tarball into an intermediate container
8+
# to improve cache accross different base image variations
9+
10+
FROM balenalib/aarch64-ubuntu:bionic as downloader
11+
12+
LABEL Description="Swift Downloader"
13+
14+
ARG TARBALL_URL=https://github.com/futurejones/swift-arm64/releases/download/v5.5.1-RELEASE/swiftlang-5.5.1-ubuntu-18.04-release-aarch64-01-2021-10-29.tar.gz
15+
ARG TARBALL_FILE=swift.tgz
16+
17+
WORKDIR /swift
18+
19+
RUN curl -L -o $TARBALL_FILE $TARBALL_URL \
20+
&& tar -xvzf $TARBALL_FILE -C /swift \
21+
&& rm $TARBALL_FILE
22+
23+
# Create base image
24+
25+
FROM "$BASE_IMAGE"
26+
27+
LABEL maintainer "Will Lisac <will@lisac.org>"
28+
LABEL Description="Docker Container for Swift on Balena"
29+
30+
# Dependencies from official Swift Dockerfile for Swift 5.5 on Ubuntu 18.04
31+
# https://github.com/apple/swift-docker/blob/2d2c2fb89fe6ecfd8885157eb1666ed2686503a0/5.5/ubuntu/18.04/slim/Dockerfile
32+
33+
RUN install_packages \
34+
libatomic1 \
35+
libcurl4 \
36+
libxml2 \
37+
tzdata
38+
39+
# Copy files from downloader to root
40+
COPY --from=downloader /swift/usr/lib/swift/linux /usr/lib/swift/linux
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
# Autogenerated device Dockerfile based on architecture Dockerfile: wlisac/aarch64-ubuntu-swift:5.5.1-bionic-build
2+
3+
# wlisac/raspberrypi3-64-ubuntu-swift:5.5.1-bionic-build
4+
5+
ARG BASE_IMAGE=balenalib/raspberrypi3-64-ubuntu:bionic-build
6+
7+
# Download and decompress the tarball into an intermediate container
8+
# to improve cache accross different base image variations
9+
10+
FROM balenalib/aarch64-ubuntu:bionic as downloader
11+
12+
LABEL Description="Swift Downloader"
13+
14+
ARG TARBALL_URL=https://github.com/futurejones/swift-arm64/releases/download/v5.5.1-RELEASE/swiftlang-5.5.1-ubuntu-18.04-release-aarch64-01-2021-10-29.tar.gz
15+
ARG TARBALL_FILE=swift.tgz
16+
17+
WORKDIR /swift
18+
19+
RUN curl -L -o $TARBALL_FILE $TARBALL_URL \
20+
&& tar -xvzf $TARBALL_FILE -C /swift \
21+
&& rm $TARBALL_FILE
22+
23+
# Create base image
24+
25+
FROM "$BASE_IMAGE"
26+
27+
LABEL maintainer "Will Lisac <will@lisac.org>"
28+
LABEL Description="Docker Container for Swift on Balena"
29+
30+
# Dependencies from official Swift Dockerfile for Swift 5.5 on Ubuntu 18.04
31+
# https://github.com/apple/swift-docker/blob/2d2c2fb89fe6ecfd8885157eb1666ed2686503a0/5.5/ubuntu/18.04/Dockerfile
32+
33+
RUN install_packages \
34+
libatomic1 \
35+
libcurl4 \
36+
libxml2 \
37+
libedit2 \
38+
libsqlite3-0 \
39+
libc6-dev \
40+
binutils \
41+
libgcc-5-dev \
42+
libstdc++-5-dev \
43+
zlib1g-dev \
44+
libpython3.6 \
45+
tzdata \
46+
git \
47+
pkg-config
48+
49+
# Copy files from downloader to root
50+
COPY --from=downloader /swift /
51+
52+
RUN swift --version
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
# Autogenerated device Dockerfile based on architecture Dockerfile: wlisac/aarch64-ubuntu-swift:5.5.1-bionic-run
2+
3+
# wlisac/raspberrypi3-64-ubuntu-swift:5.5.1-bionic-run
4+
5+
ARG BASE_IMAGE=balenalib/raspberrypi3-64-ubuntu:bionic-run
6+
7+
# Download and decompress the tarball into an intermediate container
8+
# to improve cache accross different base image variations
9+
10+
FROM balenalib/aarch64-ubuntu:bionic as downloader
11+
12+
LABEL Description="Swift Downloader"
13+
14+
ARG TARBALL_URL=https://github.com/futurejones/swift-arm64/releases/download/v5.5.1-RELEASE/swiftlang-5.5.1-ubuntu-18.04-release-aarch64-01-2021-10-29.tar.gz
15+
ARG TARBALL_FILE=swift.tgz
16+
17+
WORKDIR /swift
18+
19+
RUN curl -L -o $TARBALL_FILE $TARBALL_URL \
20+
&& tar -xvzf $TARBALL_FILE -C /swift \
21+
&& rm $TARBALL_FILE
22+
23+
# Create base image
24+
25+
FROM "$BASE_IMAGE"
26+
27+
LABEL maintainer "Will Lisac <will@lisac.org>"
28+
LABEL Description="Docker Container for Swift on Balena"
29+
30+
# Dependencies from official Swift Dockerfile for Swift 5.5 on Ubuntu 18.04
31+
# https://github.com/apple/swift-docker/blob/2d2c2fb89fe6ecfd8885157eb1666ed2686503a0/5.5/ubuntu/18.04/slim/Dockerfile
32+
33+
RUN install_packages \
34+
libatomic1 \
35+
libcurl4 \
36+
libxml2 \
37+
tzdata
38+
39+
# Copy files from downloader to root
40+
COPY --from=downloader /swift/usr/lib/swift/linux /usr/lib/swift/linux
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
# Autogenerated device Dockerfile based on architecture Dockerfile: wlisac/aarch64-ubuntu-swift:5.5.1-bionic-build
2+
3+
# wlisac/raspberrypi4-64-ubuntu-swift:5.5.1-bionic-build
4+
5+
ARG BASE_IMAGE=balenalib/raspberrypi4-64-ubuntu:bionic-build
6+
7+
# Download and decompress the tarball into an intermediate container
8+
# to improve cache accross different base image variations
9+
10+
FROM balenalib/aarch64-ubuntu:bionic as downloader
11+
12+
LABEL Description="Swift Downloader"
13+
14+
ARG TARBALL_URL=https://github.com/futurejones/swift-arm64/releases/download/v5.5.1-RELEASE/swiftlang-5.5.1-ubuntu-18.04-release-aarch64-01-2021-10-29.tar.gz
15+
ARG TARBALL_FILE=swift.tgz
16+
17+
WORKDIR /swift
18+
19+
RUN curl -L -o $TARBALL_FILE $TARBALL_URL \
20+
&& tar -xvzf $TARBALL_FILE -C /swift \
21+
&& rm $TARBALL_FILE
22+
23+
# Create base image
24+
25+
FROM "$BASE_IMAGE"
26+
27+
LABEL maintainer "Will Lisac <will@lisac.org>"
28+
LABEL Description="Docker Container for Swift on Balena"
29+
30+
# Dependencies from official Swift Dockerfile for Swift 5.5 on Ubuntu 18.04
31+
# https://github.com/apple/swift-docker/blob/2d2c2fb89fe6ecfd8885157eb1666ed2686503a0/5.5/ubuntu/18.04/Dockerfile
32+
33+
RUN install_packages \
34+
libatomic1 \
35+
libcurl4 \
36+
libxml2 \
37+
libedit2 \
38+
libsqlite3-0 \
39+
libc6-dev \
40+
binutils \
41+
libgcc-5-dev \
42+
libstdc++-5-dev \
43+
zlib1g-dev \
44+
libpython3.6 \
45+
tzdata \
46+
git \
47+
pkg-config
48+
49+
# Copy files from downloader to root
50+
COPY --from=downloader /swift /
51+
52+
RUN swift --version
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
# Autogenerated device Dockerfile based on architecture Dockerfile: wlisac/aarch64-ubuntu-swift:5.5.1-bionic-run
2+
3+
# wlisac/raspberrypi4-64-ubuntu-swift:5.5.1-bionic-run
4+
5+
ARG BASE_IMAGE=balenalib/raspberrypi4-64-ubuntu:bionic-run
6+
7+
# Download and decompress the tarball into an intermediate container
8+
# to improve cache accross different base image variations
9+
10+
FROM balenalib/aarch64-ubuntu:bionic as downloader
11+
12+
LABEL Description="Swift Downloader"
13+
14+
ARG TARBALL_URL=https://github.com/futurejones/swift-arm64/releases/download/v5.5.1-RELEASE/swiftlang-5.5.1-ubuntu-18.04-release-aarch64-01-2021-10-29.tar.gz
15+
ARG TARBALL_FILE=swift.tgz
16+
17+
WORKDIR /swift
18+
19+
RUN curl -L -o $TARBALL_FILE $TARBALL_URL \
20+
&& tar -xvzf $TARBALL_FILE -C /swift \
21+
&& rm $TARBALL_FILE
22+
23+
# Create base image
24+
25+
FROM "$BASE_IMAGE"
26+
27+
LABEL maintainer "Will Lisac <will@lisac.org>"
28+
LABEL Description="Docker Container for Swift on Balena"
29+
30+
# Dependencies from official Swift Dockerfile for Swift 5.5 on Ubuntu 18.04
31+
# https://github.com/apple/swift-docker/blob/2d2c2fb89fe6ecfd8885157eb1666ed2686503a0/5.5/ubuntu/18.04/slim/Dockerfile
32+
33+
RUN install_packages \
34+
libatomic1 \
35+
libcurl4 \
36+
libxml2 \
37+
tzdata
38+
39+
# Copy files from downloader to root
40+
COPY --from=downloader /swift/usr/lib/swift/linux /usr/lib/swift/linux

0 commit comments

Comments
 (0)