├── .gitignore ├── .swiftlint.yml ├── Assets └── logo.svg ├── Dockerfiles ├── architecture-base │ ├── aarch64 │ │ └── ubuntu │ │ │ ├── bionic │ │ │ ├── 4.2.3 │ │ │ │ ├── build │ │ │ │ │ └── Dockerfile │ │ │ │ └── run │ │ │ │ │ └── Dockerfile │ │ │ ├── 5.0.1 │ │ │ │ ├── build │ │ │ │ │ └── Dockerfile │ │ │ │ └── run │ │ │ │ │ └── Dockerfile │ │ │ ├── 5.0 │ │ │ │ ├── build │ │ │ │ │ └── Dockerfile │ │ │ │ └── run │ │ │ │ │ └── Dockerfile │ │ │ ├── 5.1 │ │ │ │ ├── build │ │ │ │ │ └── Dockerfile │ │ │ │ └── run │ │ │ │ │ └── Dockerfile │ │ │ └── 5.5.1 │ │ │ │ ├── build │ │ │ │ └── Dockerfile │ │ │ │ └── run │ │ │ │ └── Dockerfile │ │ │ └── xenial │ │ │ ├── 4.2.3 │ │ │ ├── build │ │ │ │ └── Dockerfile │ │ │ └── run │ │ │ │ └── Dockerfile │ │ │ ├── 5.0.1 │ │ │ ├── build │ │ │ │ └── Dockerfile │ │ │ └── run │ │ │ │ └── Dockerfile │ │ │ ├── 5.0 │ │ │ ├── build │ │ │ │ └── Dockerfile │ │ │ └── run │ │ │ │ └── Dockerfile │ │ │ └── 5.1 │ │ │ ├── build │ │ │ └── Dockerfile │ │ │ └── run │ │ │ └── Dockerfile │ ├── armv7hf │ │ ├── debian │ │ │ └── stretch │ │ │ │ ├── 4.2.3 │ │ │ │ ├── build │ │ │ │ │ └── Dockerfile │ │ │ │ └── run │ │ │ │ │ └── Dockerfile │ │ │ │ ├── 5.0.1 │ │ │ │ ├── build │ │ │ │ │ └── Dockerfile │ │ │ │ └── run │ │ │ │ │ └── Dockerfile │ │ │ │ ├── 5.0 │ │ │ │ ├── build │ │ │ │ │ └── Dockerfile │ │ │ │ └── run │ │ │ │ │ └── Dockerfile │ │ │ │ └── 5.1 │ │ │ │ ├── build │ │ │ │ └── Dockerfile │ │ │ │ └── run │ │ │ │ └── Dockerfile │ │ └── ubuntu │ │ │ ├── bionic │ │ │ ├── 4.2.3 │ │ │ │ ├── build │ │ │ │ │ └── Dockerfile │ │ │ │ └── run │ │ │ │ │ └── Dockerfile │ │ │ ├── 5.0.1 │ │ │ │ ├── build │ │ │ │ │ └── Dockerfile │ │ │ │ └── run │ │ │ │ │ └── Dockerfile │ │ │ ├── 5.0 │ │ │ │ ├── build │ │ │ │ │ └── Dockerfile │ │ │ │ └── run │ │ │ │ │ └── Dockerfile │ │ │ └── 5.1 │ │ │ │ ├── build │ │ │ │ └── Dockerfile │ │ │ │ └── run │ │ │ │ └── Dockerfile │ │ │ └── xenial │ │ │ ├── 4.2.3 │ │ │ ├── build │ │ │ │ └── Dockerfile │ │ │ └── run │ │ │ │ └── Dockerfile │ │ │ ├── 5.0.1 │ │ │ ├── build │ │ │ │ └── Dockerfile │ │ │ └── run │ │ │ │ └── Dockerfile │ │ │ ├── 5.0 │ │ │ ├── build │ │ │ │ └── Dockerfile │ │ │ └── run │ │ │ │ └── Dockerfile │ │ │ └── 5.1 │ │ │ ├── build │ │ │ └── Dockerfile │ │ │ └── run │ │ │ └── Dockerfile │ └── rpi │ │ └── debian │ │ └── stretch │ │ ├── 4.2.3 │ │ ├── build │ │ │ └── Dockerfile │ │ └── run │ │ │ └── Dockerfile │ │ ├── 5.0.1 │ │ ├── build │ │ │ └── Dockerfile │ │ └── run │ │ │ └── Dockerfile │ │ ├── 5.0 │ │ ├── build │ │ │ └── Dockerfile │ │ └── run │ │ │ └── Dockerfile │ │ └── 5.1 │ │ ├── build │ │ └── Dockerfile │ │ └── run │ │ └── Dockerfile └── device-base │ ├── generic-aarch64 │ └── ubuntu │ │ ├── bionic │ │ ├── 4.2.3 │ │ │ ├── build │ │ │ │ └── Dockerfile │ │ │ └── run │ │ │ │ └── Dockerfile │ │ ├── 5.0.1 │ │ │ ├── build │ │ │ │ └── Dockerfile │ │ │ └── run │ │ │ │ └── Dockerfile │ │ ├── 5.0 │ │ │ ├── build │ │ │ │ └── Dockerfile │ │ │ └── run │ │ │ │ └── Dockerfile │ │ ├── 5.1 │ │ │ ├── build │ │ │ │ └── Dockerfile │ │ │ └── run │ │ │ │ └── Dockerfile │ │ └── 5.5.1 │ │ │ ├── build │ │ │ └── Dockerfile │ │ │ └── run │ │ │ └── Dockerfile │ │ └── xenial │ │ ├── 4.2.3 │ │ ├── build │ │ │ └── Dockerfile │ │ └── run │ │ │ └── Dockerfile │ │ ├── 5.0.1 │ │ ├── build │ │ │ └── Dockerfile │ │ └── run │ │ │ └── Dockerfile │ │ ├── 5.0 │ │ ├── build │ │ │ └── Dockerfile │ │ └── run │ │ │ └── Dockerfile │ │ └── 5.1 │ │ ├── build │ │ └── Dockerfile │ │ └── run │ │ └── Dockerfile │ ├── generic-armv7ahf │ ├── debian │ │ └── stretch │ │ │ ├── 4.2.3 │ │ │ ├── build │ │ │ │ └── Dockerfile │ │ │ └── run │ │ │ │ └── Dockerfile │ │ │ ├── 5.0.1 │ │ │ ├── build │ │ │ │ └── Dockerfile │ │ │ └── run │ │ │ │ └── Dockerfile │ │ │ ├── 5.0 │ │ │ ├── build │ │ │ │ └── Dockerfile │ │ │ └── run │ │ │ │ └── Dockerfile │ │ │ └── 5.1 │ │ │ ├── build │ │ │ └── Dockerfile │ │ │ └── run │ │ │ └── Dockerfile │ └── ubuntu │ │ ├── bionic │ │ ├── 4.2.3 │ │ │ ├── build │ │ │ │ └── Dockerfile │ │ │ └── run │ │ │ │ └── Dockerfile │ │ ├── 5.0.1 │ │ │ ├── build │ │ │ │ └── Dockerfile │ │ │ └── run │ │ │ │ └── Dockerfile │ │ ├── 5.0 │ │ │ ├── build │ │ │ │ └── Dockerfile │ │ │ └── run │ │ │ │ └── Dockerfile │ │ └── 5.1 │ │ │ ├── build │ │ │ └── Dockerfile │ │ │ └── run │ │ │ └── Dockerfile │ │ └── xenial │ │ ├── 4.2.3 │ │ ├── build │ │ │ └── Dockerfile │ │ └── run │ │ │ └── Dockerfile │ │ ├── 5.0.1 │ │ ├── build │ │ │ └── Dockerfile │ │ └── run │ │ │ └── Dockerfile │ │ ├── 5.0 │ │ ├── build │ │ │ └── Dockerfile │ │ └── run │ │ │ └── Dockerfile │ │ └── 5.1 │ │ ├── build │ │ └── Dockerfile │ │ └── run │ │ └── Dockerfile │ ├── raspberry-pi │ └── debian │ │ └── stretch │ │ ├── 4.2.3 │ │ ├── build │ │ │ └── Dockerfile │ │ └── run │ │ │ └── Dockerfile │ │ ├── 5.0.1 │ │ ├── build │ │ │ └── Dockerfile │ │ └── run │ │ │ └── Dockerfile │ │ ├── 5.0 │ │ ├── build │ │ │ └── Dockerfile │ │ └── run │ │ │ └── Dockerfile │ │ └── 5.1 │ │ ├── build │ │ └── Dockerfile │ │ └── run │ │ └── Dockerfile │ ├── raspberry-pi2 │ ├── debian │ │ └── stretch │ │ │ ├── 4.2.3 │ │ │ ├── build │ │ │ │ └── Dockerfile │ │ │ └── run │ │ │ │ └── Dockerfile │ │ │ ├── 5.0.1 │ │ │ ├── build │ │ │ │ └── Dockerfile │ │ │ └── run │ │ │ │ └── Dockerfile │ │ │ ├── 5.0 │ │ │ ├── build │ │ │ │ └── Dockerfile │ │ │ └── run │ │ │ │ └── Dockerfile │ │ │ └── 5.1 │ │ │ ├── build │ │ │ └── Dockerfile │ │ │ └── run │ │ │ └── Dockerfile │ └── ubuntu │ │ ├── bionic │ │ ├── 4.2.3 │ │ │ ├── build │ │ │ │ └── Dockerfile │ │ │ └── run │ │ │ │ └── Dockerfile │ │ ├── 5.0.1 │ │ │ ├── build │ │ │ │ └── Dockerfile │ │ │ └── run │ │ │ │ └── Dockerfile │ │ ├── 5.0 │ │ │ ├── build │ │ │ │ └── Dockerfile │ │ │ └── run │ │ │ │ └── Dockerfile │ │ └── 5.1 │ │ │ ├── build │ │ │ └── Dockerfile │ │ │ └── run │ │ │ └── Dockerfile │ │ └── xenial │ │ ├── 4.2.3 │ │ ├── build │ │ │ └── Dockerfile │ │ └── run │ │ │ └── Dockerfile │ │ ├── 5.0.1 │ │ ├── build │ │ │ └── Dockerfile │ │ └── run │ │ │ └── Dockerfile │ │ ├── 5.0 │ │ ├── build │ │ │ └── Dockerfile │ │ └── run │ │ │ └── Dockerfile │ │ └── 5.1 │ │ ├── build │ │ └── Dockerfile │ │ └── run │ │ └── Dockerfile │ ├── raspberrypi0-2w-64 │ └── ubuntu │ │ └── bionic │ │ └── 5.5.1 │ │ ├── build │ │ └── Dockerfile │ │ └── run │ │ └── Dockerfile │ ├── raspberrypi3-64 │ └── ubuntu │ │ ├── bionic │ │ ├── 4.2.3 │ │ │ ├── build │ │ │ │ └── Dockerfile │ │ │ └── run │ │ │ │ └── Dockerfile │ │ ├── 5.0.1 │ │ │ ├── build │ │ │ │ └── Dockerfile │ │ │ └── run │ │ │ │ └── Dockerfile │ │ ├── 5.0 │ │ │ ├── build │ │ │ │ └── Dockerfile │ │ │ └── run │ │ │ │ └── Dockerfile │ │ ├── 5.1 │ │ │ ├── build │ │ │ │ └── Dockerfile │ │ │ └── run │ │ │ │ └── Dockerfile │ │ └── 5.5.1 │ │ │ ├── build │ │ │ └── Dockerfile │ │ │ └── run │ │ │ └── Dockerfile │ │ └── xenial │ │ ├── 4.2.3 │ │ ├── build │ │ │ └── Dockerfile │ │ └── run │ │ │ └── Dockerfile │ │ ├── 5.0.1 │ │ ├── build │ │ │ └── Dockerfile │ │ └── run │ │ │ └── Dockerfile │ │ ├── 5.0 │ │ ├── build │ │ │ └── Dockerfile │ │ └── run │ │ │ └── Dockerfile │ │ └── 5.1 │ │ ├── build │ │ └── Dockerfile │ │ └── run │ │ └── Dockerfile │ ├── raspberrypi3 │ ├── debian │ │ └── stretch │ │ │ ├── 4.2.3 │ │ │ ├── build │ │ │ │ └── Dockerfile │ │ │ └── run │ │ │ │ └── Dockerfile │ │ │ ├── 5.0.1 │ │ │ ├── build │ │ │ │ └── Dockerfile │ │ │ └── run │ │ │ │ └── Dockerfile │ │ │ ├── 5.0 │ │ │ ├── build │ │ │ │ └── Dockerfile │ │ │ └── run │ │ │ │ └── Dockerfile │ │ │ └── 5.1 │ │ │ ├── build │ │ │ └── Dockerfile │ │ │ └── run │ │ │ └── Dockerfile │ └── ubuntu │ │ ├── bionic │ │ ├── 4.2.3 │ │ │ ├── build │ │ │ │ └── Dockerfile │ │ │ └── run │ │ │ │ └── Dockerfile │ │ ├── 5.0.1 │ │ │ ├── build │ │ │ │ └── Dockerfile │ │ │ └── run │ │ │ │ └── Dockerfile │ │ ├── 5.0 │ │ │ ├── build │ │ │ │ └── Dockerfile │ │ │ └── run │ │ │ │ └── Dockerfile │ │ └── 5.1 │ │ │ ├── build │ │ │ └── Dockerfile │ │ │ └── run │ │ │ └── Dockerfile │ │ └── xenial │ │ ├── 4.2.3 │ │ ├── build │ │ │ └── Dockerfile │ │ └── run │ │ │ └── Dockerfile │ │ ├── 5.0.1 │ │ ├── build │ │ │ └── Dockerfile │ │ └── run │ │ │ └── Dockerfile │ │ ├── 5.0 │ │ ├── build │ │ │ └── Dockerfile │ │ └── run │ │ │ └── Dockerfile │ │ └── 5.1 │ │ ├── build │ │ └── Dockerfile │ │ └── run │ │ └── Dockerfile │ └── raspberrypi4-64 │ └── ubuntu │ ├── bionic │ ├── 4.2.3 │ │ ├── build │ │ │ └── Dockerfile │ │ └── run │ │ │ └── Dockerfile │ ├── 5.0.1 │ │ ├── build │ │ │ └── Dockerfile │ │ └── run │ │ │ └── Dockerfile │ ├── 5.0 │ │ ├── build │ │ │ └── Dockerfile │ │ └── run │ │ │ └── Dockerfile │ ├── 5.1 │ │ ├── build │ │ │ └── Dockerfile │ │ └── run │ │ │ └── Dockerfile │ └── 5.5.1 │ │ ├── build │ │ └── Dockerfile │ │ └── run │ │ └── Dockerfile │ └── xenial │ ├── 4.2.3 │ ├── build │ │ └── Dockerfile │ └── run │ │ └── Dockerfile │ ├── 5.0.1 │ ├── build │ │ └── Dockerfile │ └── run │ │ └── Dockerfile │ ├── 5.0 │ ├── build │ │ └── Dockerfile │ └── run │ │ └── Dockerfile │ └── 5.1 │ ├── build │ └── Dockerfile │ └── run │ └── Dockerfile ├── Documentation ├── Build Process.md └── Device List.md ├── LICENSE ├── Package.resolved ├── Package.swift ├── README.md └── Sources ├── Run └── main.swift └── SwiftOnBalena ├── Builder.swift ├── Device.swift ├── DockerHost.swift ├── Generator.swift ├── ImageDescription.swift └── ImageDescriptionFilter.swift /.gitignore: -------------------------------------------------------------------------------- 1 | # SPM 2 | /.build 3 | /Packages 4 | /*.xcodeproj 5 | 6 | 7 | # General 8 | .DS_Store 9 | .AppleDouble 10 | .LSOverride 11 | 12 | # Icon must end with two \r 13 | Icon 14 | 15 | 16 | # Thumbnails 17 | ._* 18 | 19 | # Files that might appear in the root of a volume 20 | .DocumentRevisions-V100 21 | .fseventsd 22 | .Spotlight-V100 23 | .TemporaryItems 24 | .Trashes 25 | .VolumeIcon.icns 26 | .com.apple.timemachine.donotpresent 27 | 28 | # Directories potentially created on remote AFP share 29 | .AppleDB 30 | .AppleDesktop 31 | Network Trash Folder 32 | Temporary Items 33 | .apdisk -------------------------------------------------------------------------------- /.swiftlint.yml: -------------------------------------------------------------------------------- 1 | disabled_rules: 2 | - colon 3 | - force_cast 4 | - line_length 5 | - todo 6 | - trailing_whitespace 7 | - unused_closure_parameter 8 | 9 | opt_in_rules: 10 | - anyobject_protocol 11 | - array_init 12 | - attributes 13 | - closure_end_indentation 14 | - closure_spacing 15 | - collection_alignment 16 | - contains_over_first_not_nil 17 | - discouraged_optional_collection 18 | - empty_count 19 | - empty_string 20 | - empty_xctest_method 21 | - explicit_init 22 | - extension_access_modifier 23 | - fallthrough 24 | - fatal_error_message 25 | - first_where 26 | - force_unwrapping 27 | - identical_operands 28 | - joined_default_parameter 29 | - let_var_whitespace 30 | - last_where 31 | - literal_expression_end_indentation 32 | - lower_acl_than_parent 33 | - nimble_operator 34 | - number_separator 35 | - operator_usage_whitespace 36 | - overridden_super_call 37 | - override_in_extension 38 | - pattern_matching_keywords 39 | - prohibited_super_call 40 | - quick_discouraged_call 41 | - quick_discouraged_focused_test 42 | - quick_discouraged_pending_test 43 | - redundant_nil_coalescing 44 | - redundant_type_annotation 45 | - single_test_class 46 | - sorted_first_last 47 | - sorted_imports 48 | - static_operator 49 | - switch_case_on_newline 50 | - unneeded_parentheses_in_closure_argument 51 | - untyped_error_in_catch 52 | - vertical_parameter_alignment_on_call 53 | - vertical_whitespace_closing_braces 54 | - vertical_whitespace_opening_braces 55 | - xct_specific_matcher 56 | - yoda_condition 57 | 58 | identifier_name: 59 | excluded: 60 | - id 61 | 62 | excluded: 63 | - .build 64 | - Packages -------------------------------------------------------------------------------- /Dockerfiles/architecture-base/aarch64/ubuntu/bionic/4.2.3/build/Dockerfile: -------------------------------------------------------------------------------- 1 | # wlisac/aarch64-ubuntu-swift:4.2.3-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/v4.2.3-RELEASE/swift-4.2.3-RELEASE-aarch64-Ubuntu-18.04_2019-03-04.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 " 26 | LABEL Description="Docker Container for Swift on Balena" 27 | 28 | # Dependencies from official Swift Dockerfile for Swift 4.2 on Ubuntu 18.04 29 | # https://github.com/apple/swift-docker/blob/6812f217b405a5101ea3e8fce4d1cf09e3c8727b/4.2/ubuntu/18.04/Dockerfile 30 | 31 | RUN install_packages \ 32 | make \ 33 | libc6-dev \ 34 | clang-3.9 \ 35 | curl \ 36 | libedit-dev \ 37 | libpython2.7 \ 38 | libicu-dev \ 39 | libssl-dev \ 40 | libxml2 \ 41 | tzdata \ 42 | git \ 43 | libcurl4-openssl-dev \ 44 | pkg-config \ 45 | && update-alternatives --quiet --install /usr/bin/clang clang /usr/bin/clang-3.9 100 \ 46 | && update-alternatives --quiet --install /usr/bin/clang++ clang++ /usr/bin/clang++-3.9 100 47 | 48 | # Copy files from downloader to root 49 | COPY --from=downloader /swift / 50 | 51 | RUN swift --version 52 | -------------------------------------------------------------------------------- /Dockerfiles/architecture-base/aarch64/ubuntu/bionic/4.2.3/run/Dockerfile: -------------------------------------------------------------------------------- 1 | # wlisac/aarch64-ubuntu-swift:4.2.3-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/v4.2.3-RELEASE/swift-4.2.3-RELEASE-aarch64-Ubuntu-18.04_2019-03-04.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 " 26 | LABEL Description="Docker Container for Swift on Balena" 27 | 28 | # There isn't an official Swift 4 slim Dockerfile to see dependencies 29 | # Dependencies from official Swift Dockerfile for Swift 5.0 on Ubuntu 18.04 30 | # https://github.com/apple/swift-docker/blob/bdd1aba3f1bc66139e1daff609a4037a7fa8cd8a/5.0/ubuntu/18.04/slim/Dockerfile 31 | 32 | RUN install_packages \ 33 | libatomic1 \ 34 | libbsd0 \ 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 41 | -------------------------------------------------------------------------------- /Dockerfiles/architecture-base/aarch64/ubuntu/bionic/5.0.1/build/Dockerfile: -------------------------------------------------------------------------------- 1 | # wlisac/aarch64-ubuntu-swift:5.0.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.0.1-RELEASE/swift-5.0.1-aarch64-RELEASE-Ubuntu-18.04-patched_2019-07-03.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 " 26 | LABEL Description="Docker Container for Swift on Balena" 27 | 28 | # Dependencies from official Swift Dockerfile for Swift 5.0 on Ubuntu 18.04 29 | # https://github.com/apple/swift-docker/blob/6812f217b405a5101ea3e8fce4d1cf09e3c8727b/5.0/ubuntu/18.04/Dockerfile 30 | 31 | RUN install_packages \ 32 | libatomic1 \ 33 | libbsd0 \ 34 | libcurl4 \ 35 | libxml2 \ 36 | libedit2 \ 37 | libsqlite3-0 \ 38 | libc6-dev \ 39 | binutils \ 40 | libgcc-5-dev \ 41 | libstdc++-5-dev \ 42 | libpython2.7 \ 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 51 | -------------------------------------------------------------------------------- /Dockerfiles/architecture-base/aarch64/ubuntu/bionic/5.0.1/run/Dockerfile: -------------------------------------------------------------------------------- 1 | # wlisac/aarch64-ubuntu-swift:5.0.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.0.1-RELEASE/swift-5.0.1-aarch64-RELEASE-Ubuntu-18.04_2019-05-17.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 " 26 | LABEL Description="Docker Container for Swift on Balena" 27 | 28 | # Dependencies from official Swift Dockerfile for Swift 5.0 on Ubuntu 18.04 29 | # https://github.com/apple/swift-docker/blob/bdd1aba3f1bc66139e1daff609a4037a7fa8cd8a/5.0/ubuntu/18.04/slim/Dockerfile 30 | 31 | RUN install_packages \ 32 | libatomic1 \ 33 | libbsd0 \ 34 | libcurl4 \ 35 | libxml2 \ 36 | tzdata 37 | 38 | # Copy files from downloader to root 39 | COPY --from=downloader /swift/usr/lib/swift/linux /usr/lib/swift/linux 40 | -------------------------------------------------------------------------------- /Dockerfiles/architecture-base/aarch64/ubuntu/bionic/5.0/build/Dockerfile: -------------------------------------------------------------------------------- 1 | # wlisac/aarch64-ubuntu-swift:5.0-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.0-RELEASE/swift-5.0-RELEASE-aarch64-Ubuntu-18.04_2019-03-26.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 " 26 | LABEL Description="Docker Container for Swift on Balena" 27 | 28 | # Dependencies from official Swift Dockerfile for Swift 5.0 on Ubuntu 18.04 29 | # https://github.com/apple/swift-docker/blob/6812f217b405a5101ea3e8fce4d1cf09e3c8727b/5.0/ubuntu/18.04/Dockerfile 30 | 31 | RUN install_packages \ 32 | libatomic1 \ 33 | libbsd0 \ 34 | libcurl4 \ 35 | libxml2 \ 36 | libedit2 \ 37 | libsqlite3-0 \ 38 | libc6-dev \ 39 | binutils \ 40 | libgcc-5-dev \ 41 | libstdc++-5-dev \ 42 | libpython2.7 \ 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 51 | -------------------------------------------------------------------------------- /Dockerfiles/architecture-base/aarch64/ubuntu/bionic/5.0/run/Dockerfile: -------------------------------------------------------------------------------- 1 | # wlisac/aarch64-ubuntu-swift:5.0-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.0-RELEASE/swift-5.0-RELEASE-aarch64-Ubuntu-18.04_2019-03-26.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 " 26 | LABEL Description="Docker Container for Swift on Balena" 27 | 28 | # Dependencies from official Swift Dockerfile for Swift 5.0 on Ubuntu 18.04 29 | # https://github.com/apple/swift-docker/blob/bdd1aba3f1bc66139e1daff609a4037a7fa8cd8a/5.0/ubuntu/18.04/slim/Dockerfile 30 | 31 | RUN install_packages \ 32 | libatomic1 \ 33 | libbsd0 \ 34 | libcurl4 \ 35 | libxml2 \ 36 | tzdata 37 | 38 | # Copy files from downloader to root 39 | COPY --from=downloader /swift/usr/lib/swift/linux /usr/lib/swift/linux 40 | -------------------------------------------------------------------------------- /Dockerfiles/architecture-base/aarch64/ubuntu/bionic/5.1/build/Dockerfile: -------------------------------------------------------------------------------- 1 | # wlisac/aarch64-ubuntu-swift: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.1-RELEASE/swift-5.1-aarch64-RELEASE-Ubuntu-18.04_2019-09-21.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 " 26 | LABEL Description="Docker Container for Swift on Balena" 27 | 28 | # Dependencies from official Swift Dockerfile for Swift 5.1 on Ubuntu 18.04 29 | # https://github.com/apple/swift-docker/blob/fd1691a1f73b68fb8c8ef6072e716892be54a3d2/5.1/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 | libpython2.7 \ 42 | tzdata \ 43 | git \ 44 | pkg-config 45 | 46 | # Copy files from downloader to root 47 | COPY --from=downloader /swift / 48 | 49 | RUN swift --version 50 | -------------------------------------------------------------------------------- /Dockerfiles/architecture-base/aarch64/ubuntu/bionic/5.1/run/Dockerfile: -------------------------------------------------------------------------------- 1 | # wlisac/aarch64-ubuntu-swift: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.1-RELEASE/swift-5.1-aarch64-RELEASE-Ubuntu-18.04_2019-09-21.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 " 26 | LABEL Description="Docker Container for Swift on Balena" 27 | 28 | # Dependencies from official Swift Dockerfile for Swift 5.1 on Ubuntu 18.04 29 | # https://github.com/apple/swift-docker/blob/fd1691a1f73b68fb8c8ef6072e716892be54a3d2/5.1/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 39 | -------------------------------------------------------------------------------- /Dockerfiles/architecture-base/aarch64/ubuntu/bionic/5.5.1/build/Dockerfile: -------------------------------------------------------------------------------- 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 " 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 -------------------------------------------------------------------------------- /Dockerfiles/architecture-base/aarch64/ubuntu/bionic/5.5.1/run/Dockerfile: -------------------------------------------------------------------------------- 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 " 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 39 | -------------------------------------------------------------------------------- /Dockerfiles/architecture-base/aarch64/ubuntu/xenial/4.2.3/build/Dockerfile: -------------------------------------------------------------------------------- 1 | # wlisac/aarch64-ubuntu-swift:4.2.3-xenial-build 2 | 3 | ARG BASE_IMAGE=balenalib/aarch64-ubuntu:xenial-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:xenial as downloader 9 | 10 | LABEL Description="Swift Downloader" 11 | 12 | ARG TARBALL_URL=https://github.com/futurejones/swift-arm64/releases/download/v4.2.3-RELEASE/swift-4.2.3-RELEASE-aarch64-Ubuntu-16.04_2019-03-03.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 " 26 | LABEL Description="Docker Container for Swift on Balena" 27 | 28 | # Dependencies from official Swift Dockerfile for Swift 4.2 on Ubuntu 16.04 29 | # https://github.com/apple/swift-docker/blob/6812f217b405a5101ea3e8fce4d1cf09e3c8727b/4.2/ubuntu/16.04/Dockerfile 30 | 31 | RUN install_packages \ 32 | make \ 33 | libc6-dev \ 34 | clang-3.8 \ 35 | curl \ 36 | libedit-dev \ 37 | libpython2.7 \ 38 | libicu-dev \ 39 | libssl-dev \ 40 | libxml2 \ 41 | tzdata \ 42 | git \ 43 | libcurl4-openssl-dev \ 44 | pkg-config \ 45 | && update-alternatives --quiet --install /usr/bin/clang clang /usr/bin/clang-3.8 100 \ 46 | && update-alternatives --quiet --install /usr/bin/clang++ clang++ /usr/bin/clang++-3.8 100 47 | 48 | # Copy files from downloader to root 49 | COPY --from=downloader /swift / 50 | 51 | RUN swift --version 52 | -------------------------------------------------------------------------------- /Dockerfiles/architecture-base/aarch64/ubuntu/xenial/4.2.3/run/Dockerfile: -------------------------------------------------------------------------------- 1 | # wlisac/aarch64-ubuntu-swift:4.2.3-xenial-run 2 | 3 | ARG BASE_IMAGE=balenalib/aarch64-ubuntu:xenial-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:xenial as downloader 9 | 10 | LABEL Description="Swift Downloader" 11 | 12 | ARG TARBALL_URL=https://github.com/futurejones/swift-arm64/releases/download/v4.2.3-RELEASE/swift-4.2.3-RELEASE-aarch64-Ubuntu-16.04_2019-03-03.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 " 26 | LABEL Description="Docker Container for Swift on Balena" 27 | 28 | # There isn't an official Swift 4 slim Dockerfile to see dependencies 29 | # Dependencies from official Swift Dockerfile for Swift 5.0 on Ubuntu 16.04 30 | # https://github.com/apple/swift-docker/blob/bdd1aba3f1bc66139e1daff609a4037a7fa8cd8a/5.0/ubuntu/16.04/slim/Dockerfile 31 | 32 | RUN install_packages \ 33 | libatomic1 \ 34 | libbsd0 \ 35 | libcurl3 \ 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 41 | -------------------------------------------------------------------------------- /Dockerfiles/architecture-base/aarch64/ubuntu/xenial/5.0.1/build/Dockerfile: -------------------------------------------------------------------------------- 1 | # wlisac/aarch64-ubuntu-swift:5.0.1-xenial-build 2 | 3 | ARG BASE_IMAGE=balenalib/aarch64-ubuntu:xenial-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:xenial as downloader 9 | 10 | LABEL Description="Swift Downloader" 11 | 12 | ARG TARBALL_URL=https://github.com/futurejones/swift-arm64/releases/download/v5.0.1-RELEASE/swift-5.0.1-aarch64-RELEASE-Ubuntu-16.04-patched_2019-07-03.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 " 26 | LABEL Description="Docker Container for Swift on Balena" 27 | 28 | # Dependencies from official Swift Dockerfile for Swift 5.0 on Ubuntu 16.04 29 | # https://github.com/apple/swift-docker/blob/6812f217b405a5101ea3e8fce4d1cf09e3c8727b/5.0/ubuntu/16.04/Dockerfile 30 | 31 | RUN install_packages \ 32 | libatomic1 \ 33 | libbsd0 \ 34 | libcurl3 \ 35 | libxml2 \ 36 | libedit2 \ 37 | libsqlite3-0 \ 38 | libc6-dev \ 39 | binutils \ 40 | libgcc-5-dev \ 41 | libstdc++-5-dev \ 42 | libpython2.7 \ 43 | tzdata \ 44 | git \ 45 | pkg-config \ 46 | libicu-dev 47 | 48 | # Copy files from downloader to root 49 | COPY --from=downloader /swift / 50 | 51 | RUN swift --version 52 | -------------------------------------------------------------------------------- /Dockerfiles/architecture-base/aarch64/ubuntu/xenial/5.0.1/run/Dockerfile: -------------------------------------------------------------------------------- 1 | # wlisac/aarch64-ubuntu-swift:5.0.1-xenial-run 2 | 3 | ARG BASE_IMAGE=balenalib/aarch64-ubuntu:xenial-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:xenial as downloader 9 | 10 | LABEL Description="Swift Downloader" 11 | 12 | ARG TARBALL_URL=https://github.com/futurejones/swift-arm64/releases/download/v5.0.1-RELEASE/swift-5.0.1-aarch64-RELEASE-Ubuntu-16.04_2019-04-24.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 " 26 | LABEL Description="Docker Container for Swift on Balena" 27 | 28 | # Dependencies from official Swift Dockerfile for Swift 5.0 on Ubuntu 16.04 29 | # https://github.com/apple/swift-docker/blob/bdd1aba3f1bc66139e1daff609a4037a7fa8cd8a/5.0/ubuntu/16.04/slim/Dockerfile 30 | 31 | RUN install_packages \ 32 | libatomic1 \ 33 | libbsd0 \ 34 | libcurl3 \ 35 | libxml2 \ 36 | tzdata 37 | 38 | # Copy files from downloader to root 39 | COPY --from=downloader /swift/usr/lib/swift/linux /usr/lib/swift/linux 40 | -------------------------------------------------------------------------------- /Dockerfiles/architecture-base/aarch64/ubuntu/xenial/5.0/build/Dockerfile: -------------------------------------------------------------------------------- 1 | # wlisac/aarch64-ubuntu-swift:5.0-xenial-build 2 | 3 | ARG BASE_IMAGE=balenalib/aarch64-ubuntu:xenial-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:xenial as downloader 9 | 10 | LABEL Description="Swift Downloader" 11 | 12 | ARG TARBALL_URL=https://github.com/futurejones/swift-arm64/releases/download/v5.0-RELEASE/swift-5.0-RELEASE-aarch64-Ubuntu-16.04_2019-03-26.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 " 26 | LABEL Description="Docker Container for Swift on Balena" 27 | 28 | # Dependencies from official Swift Dockerfile for Swift 5.0 on Ubuntu 16.04 29 | # https://github.com/apple/swift-docker/blob/6812f217b405a5101ea3e8fce4d1cf09e3c8727b/5.0/ubuntu/16.04/Dockerfile 30 | 31 | RUN install_packages \ 32 | libatomic1 \ 33 | libbsd0 \ 34 | libcurl3 \ 35 | libxml2 \ 36 | libedit2 \ 37 | libsqlite3-0 \ 38 | libc6-dev \ 39 | binutils \ 40 | libgcc-5-dev \ 41 | libstdc++-5-dev \ 42 | libpython2.7 \ 43 | tzdata \ 44 | git \ 45 | pkg-config \ 46 | libicu-dev 47 | 48 | # Copy files from downloader to root 49 | COPY --from=downloader /swift / 50 | 51 | RUN swift --version 52 | -------------------------------------------------------------------------------- /Dockerfiles/architecture-base/aarch64/ubuntu/xenial/5.0/run/Dockerfile: -------------------------------------------------------------------------------- 1 | # wlisac/aarch64-ubuntu-swift:5.0-xenial-run 2 | 3 | ARG BASE_IMAGE=balenalib/aarch64-ubuntu:xenial-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:xenial as downloader 9 | 10 | LABEL Description="Swift Downloader" 11 | 12 | ARG TARBALL_URL=https://github.com/futurejones/swift-arm64/releases/download/v5.0-RELEASE/swift-5.0-RELEASE-aarch64-Ubuntu-16.04_2019-03-26.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 " 26 | LABEL Description="Docker Container for Swift on Balena" 27 | 28 | # Dependencies from official Swift Dockerfile for Swift 5.0 on Ubuntu 16.04 29 | # https://github.com/apple/swift-docker/blob/bdd1aba3f1bc66139e1daff609a4037a7fa8cd8a/5.0/ubuntu/16.04/slim/Dockerfile 30 | 31 | RUN install_packages \ 32 | libatomic1 \ 33 | libbsd0 \ 34 | libcurl3 \ 35 | libxml2 \ 36 | tzdata 37 | 38 | # Copy files from downloader to root 39 | COPY --from=downloader /swift/usr/lib/swift/linux /usr/lib/swift/linux 40 | -------------------------------------------------------------------------------- /Dockerfiles/architecture-base/aarch64/ubuntu/xenial/5.1/build/Dockerfile: -------------------------------------------------------------------------------- 1 | # wlisac/aarch64-ubuntu-swift:5.1-xenial-build 2 | 3 | ARG BASE_IMAGE=balenalib/aarch64-ubuntu:xenial-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:xenial as downloader 9 | 10 | LABEL Description="Swift Downloader" 11 | 12 | ARG TARBALL_URL=https://github.com/futurejones/swift-arm64/releases/download/v5.1-RELEASE/swift-5.1-aarch64-RELEASE-Ubuntu-16.04_2019-09-24.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 " 26 | LABEL Description="Docker Container for Swift on Balena" 27 | 28 | # Dependencies from official Swift Dockerfile for Swift 5.1 on Ubuntu 16.04 29 | # https://github.com/apple/swift-docker/blob/fd1691a1f73b68fb8c8ef6072e716892be54a3d2/5.1/ubuntu/16.04/Dockerfile 30 | 31 | RUN install_packages \ 32 | libatomic1 \ 33 | libcurl3 \ 34 | libxml2 \ 35 | libedit2 \ 36 | libsqlite3-0 \ 37 | libc6-dev \ 38 | binutils \ 39 | libgcc-5-dev \ 40 | libstdc++-5-dev \ 41 | libpython2.7 \ 42 | tzdata \ 43 | git \ 44 | pkg-config 45 | 46 | # Copy files from downloader to root 47 | COPY --from=downloader /swift / 48 | 49 | RUN swift --version 50 | -------------------------------------------------------------------------------- /Dockerfiles/architecture-base/aarch64/ubuntu/xenial/5.1/run/Dockerfile: -------------------------------------------------------------------------------- 1 | # wlisac/aarch64-ubuntu-swift:5.1-xenial-run 2 | 3 | ARG BASE_IMAGE=balenalib/aarch64-ubuntu:xenial-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:xenial as downloader 9 | 10 | LABEL Description="Swift Downloader" 11 | 12 | ARG TARBALL_URL=https://github.com/futurejones/swift-arm64/releases/download/v5.1-RELEASE/swift-5.1-aarch64-RELEASE-Ubuntu-16.04_2019-09-24.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 " 26 | LABEL Description="Docker Container for Swift on Balena" 27 | 28 | # Dependencies from official Swift Dockerfile for Swift 5.1 on Ubuntu 16.04 29 | # https://github.com/apple/swift-docker/blob/fd1691a1f73b68fb8c8ef6072e716892be54a3d2/5.1/ubuntu/16.04/slim/Dockerfile 30 | 31 | RUN install_packages \ 32 | libatomic1 \ 33 | libcurl3 \ 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 39 | -------------------------------------------------------------------------------- /Dockerfiles/architecture-base/armv7hf/debian/stretch/4.2.3/run/Dockerfile: -------------------------------------------------------------------------------- 1 | # wlisac/armv7hf-debian-swift:4.2.3-stretch-run 2 | 3 | ARG BASE_IMAGE=balenalib/armv7hf-debian:stretch-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/armv7hf-debian:stretch as downloader 9 | 10 | LABEL Description="Swift Downloader" 11 | 12 | ARG TARBALL_URL=https://github.com/uraimo/buildSwiftOnARM/releases/download/4.2.3/swift-4.2.3-RPi23-RaspbianStretch.tgz 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 " 26 | LABEL Description="Docker Container for Swift on Balena" 27 | 28 | # There isn't an official Swift 4 slim Dockerfile to see dependencies 29 | # Dependencies from official Swift Dockerfile for Swift 5.0 on Ubuntu 16.04 30 | # https://github.com/apple/swift-docker/blob/bdd1aba3f1bc66139e1daff609a4037a7fa8cd8a/5.0/ubuntu/16.04/slim/Dockerfile 31 | 32 | RUN install_packages \ 33 | libatomic1 \ 34 | libbsd0 \ 35 | libcurl3 \ 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 41 | -------------------------------------------------------------------------------- /Dockerfiles/architecture-base/armv7hf/debian/stretch/5.0.1/run/Dockerfile: -------------------------------------------------------------------------------- 1 | # wlisac/armv7hf-debian-swift:5.0.1-stretch-run 2 | 3 | ARG BASE_IMAGE=balenalib/armv7hf-debian:stretch-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/armv7hf-debian:stretch as downloader 9 | 10 | LABEL Description="Swift Downloader" 11 | 12 | ARG TARBALL_URL=https://github.com/uraimo/buildSwiftOnARM/releases/download/5.0.1/swift-5.0.1-RPi0123-RaspbianStretch.tgz 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 " 26 | LABEL Description="Docker Container for Swift on Balena" 27 | 28 | # Dependencies from official Swift Dockerfile for Swift 5.0 on Ubuntu 16.04 29 | # https://github.com/apple/swift-docker/blob/bdd1aba3f1bc66139e1daff609a4037a7fa8cd8a/5.0/ubuntu/16.04/slim/Dockerfile 30 | 31 | RUN install_packages \ 32 | libatomic1 \ 33 | libbsd0 \ 34 | libcurl3 \ 35 | libxml2 \ 36 | tzdata 37 | 38 | # Copy files from downloader to root 39 | COPY --from=downloader /swift/usr/lib/swift/linux /usr/lib/swift/linux 40 | -------------------------------------------------------------------------------- /Dockerfiles/architecture-base/armv7hf/debian/stretch/5.0/run/Dockerfile: -------------------------------------------------------------------------------- 1 | # wlisac/armv7hf-debian-swift:5.0-stretch-run 2 | 3 | ARG BASE_IMAGE=balenalib/armv7hf-debian:stretch-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/armv7hf-debian:stretch as downloader 9 | 10 | LABEL Description="Swift Downloader" 11 | 12 | ARG TARBALL_URL=https://github.com/uraimo/buildSwiftOnARM/releases/download/5.0/swift-5.0-threads_hotfix-RPi23-RaspbianStretch.tgz 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 " 26 | LABEL Description="Docker Container for Swift on Balena" 27 | 28 | # Dependencies from official Swift Dockerfile for Swift 5.0 on Ubuntu 16.04 29 | # https://github.com/apple/swift-docker/blob/bdd1aba3f1bc66139e1daff609a4037a7fa8cd8a/5.0/ubuntu/16.04/slim/Dockerfile 30 | 31 | RUN install_packages \ 32 | libatomic1 \ 33 | libbsd0 \ 34 | libcurl3 \ 35 | libxml2 \ 36 | tzdata 37 | 38 | # Copy files from downloader to root 39 | COPY --from=downloader /swift/usr/lib/swift/linux /usr/lib/swift/linux 40 | -------------------------------------------------------------------------------- /Dockerfiles/architecture-base/armv7hf/debian/stretch/5.1/run/Dockerfile: -------------------------------------------------------------------------------- 1 | # wlisac/armv7hf-debian-swift:5.1-stretch-run 2 | 3 | ARG BASE_IMAGE=balenalib/armv7hf-debian:stretch-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/armv7hf-debian:stretch as downloader 9 | 10 | LABEL Description="Swift Downloader" 11 | 12 | ARG TARBALL_URL=https://github.com/uraimo/buildSwiftOnARM/releases/download/5.1/swift-5.1-armv7-DebianStretch.tgz 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 " 26 | LABEL Description="Docker Container for Swift on Balena" 27 | 28 | # Dependencies from official Swift Dockerfile for Swift 5.1 on Ubuntu 16.04 29 | # https://github.com/apple/swift-docker/blob/fd1691a1f73b68fb8c8ef6072e716892be54a3d2/5.1/ubuntu/16.04/slim/Dockerfile 30 | 31 | RUN install_packages \ 32 | libatomic1 \ 33 | libcurl3 \ 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 39 | -------------------------------------------------------------------------------- /Dockerfiles/architecture-base/armv7hf/ubuntu/bionic/4.2.3/build/Dockerfile: -------------------------------------------------------------------------------- 1 | # wlisac/armv7hf-ubuntu-swift:4.2.3-bionic-build 2 | 3 | ARG BASE_IMAGE=balenalib/armv7hf-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/armv7hf-ubuntu:bionic as downloader 9 | 10 | LABEL Description="Swift Downloader" 11 | 12 | ARG TARBALL_URL=https://github.com/uraimo/buildSwiftOnARM/releases/download/4.2.3/swift-4.2.3-RPi23-Ubuntu1804.tgz 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 " 26 | LABEL Description="Docker Container for Swift on Balena" 27 | 28 | # Dependencies from official Swift Dockerfile for Swift 4.2 on Ubuntu 18.04 29 | # https://github.com/apple/swift-docker/blob/6812f217b405a5101ea3e8fce4d1cf09e3c8727b/4.2/ubuntu/18.04/Dockerfile 30 | 31 | RUN install_packages \ 32 | make \ 33 | libc6-dev \ 34 | clang-3.9 \ 35 | curl \ 36 | libedit-dev \ 37 | libpython2.7 \ 38 | libicu-dev \ 39 | libssl-dev \ 40 | libxml2 \ 41 | tzdata \ 42 | git \ 43 | libcurl4-openssl-dev \ 44 | pkg-config \ 45 | && update-alternatives --quiet --install /usr/bin/clang clang /usr/bin/clang-3.9 100 \ 46 | && update-alternatives --quiet --install /usr/bin/clang++ clang++ /usr/bin/clang++-3.9 100 47 | 48 | # Copy files from downloader to root 49 | COPY --from=downloader /swift / 50 | 51 | RUN swift --version 52 | -------------------------------------------------------------------------------- /Dockerfiles/architecture-base/armv7hf/ubuntu/bionic/4.2.3/run/Dockerfile: -------------------------------------------------------------------------------- 1 | # wlisac/armv7hf-ubuntu-swift:4.2.3-bionic-run 2 | 3 | ARG BASE_IMAGE=balenalib/armv7hf-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/armv7hf-ubuntu:bionic as downloader 9 | 10 | LABEL Description="Swift Downloader" 11 | 12 | ARG TARBALL_URL=https://github.com/uraimo/buildSwiftOnARM/releases/download/4.2.3/swift-4.2.3-RPi23-Ubuntu1804.tgz 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 " 26 | LABEL Description="Docker Container for Swift on Balena" 27 | 28 | # There isn't an official Swift 4 slim Dockerfile to see dependencies 29 | # Dependencies from official Swift Dockerfile for Swift 5.0 on Ubuntu 18.04 30 | # https://github.com/apple/swift-docker/blob/bdd1aba3f1bc66139e1daff609a4037a7fa8cd8a/5.0/ubuntu/18.04/slim/Dockerfile 31 | 32 | RUN install_packages \ 33 | libatomic1 \ 34 | libbsd0 \ 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 41 | -------------------------------------------------------------------------------- /Dockerfiles/architecture-base/armv7hf/ubuntu/bionic/5.0.1/build/Dockerfile: -------------------------------------------------------------------------------- 1 | # wlisac/armv7hf-ubuntu-swift:5.0.1-bionic-build 2 | 3 | ARG BASE_IMAGE=balenalib/armv7hf-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/armv7hf-ubuntu:bionic as downloader 9 | 10 | LABEL Description="Swift Downloader" 11 | 12 | ARG TARBALL_URL=https://github.com/uraimo/buildSwiftOnARM/releases/download/5.0.1/swift-5.0.1-RPi23-Ubuntu1804.tgz 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 " 26 | LABEL Description="Docker Container for Swift on Balena" 27 | 28 | # Dependencies from official Swift Dockerfile for Swift 5.0 on Ubuntu 18.04 29 | # https://github.com/apple/swift-docker/blob/6812f217b405a5101ea3e8fce4d1cf09e3c8727b/5.0/ubuntu/18.04/Dockerfile 30 | 31 | # Needed to add clang 32 | # https://github.com/uraimo/buildSwiftOnARM/blob/1be3c13d709724b48b418c6511a38c8f323378ec/README.md#dependencies 33 | 34 | RUN install_packages \ 35 | libatomic1 \ 36 | libbsd0 \ 37 | libcurl4 \ 38 | libxml2 \ 39 | libedit2 \ 40 | libsqlite3-0 \ 41 | libc6-dev \ 42 | binutils \ 43 | libgcc-5-dev \ 44 | libstdc++-5-dev \ 45 | libpython2.7 \ 46 | tzdata \ 47 | git \ 48 | pkg-config \ 49 | clang 50 | 51 | # Copy files from downloader to root 52 | COPY --from=downloader /swift / 53 | 54 | RUN swift --version 55 | -------------------------------------------------------------------------------- /Dockerfiles/architecture-base/armv7hf/ubuntu/bionic/5.0.1/run/Dockerfile: -------------------------------------------------------------------------------- 1 | # wlisac/armv7hf-ubuntu-swift:5.0.1-bionic-run 2 | 3 | ARG BASE_IMAGE=balenalib/armv7hf-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/armv7hf-ubuntu:bionic as downloader 9 | 10 | LABEL Description="Swift Downloader" 11 | 12 | ARG TARBALL_URL=https://github.com/uraimo/buildSwiftOnARM/releases/download/5.0.1/swift-5.0.1-RPi23-Ubuntu1804.tgz 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 " 26 | LABEL Description="Docker Container for Swift on Balena" 27 | 28 | # Dependencies from official Swift Dockerfile for Swift 5.0 on Ubuntu 18.04 29 | # https://github.com/apple/swift-docker/blob/bdd1aba3f1bc66139e1daff609a4037a7fa8cd8a/5.0/ubuntu/18.04/slim/Dockerfile 30 | 31 | RUN install_packages \ 32 | libatomic1 \ 33 | libbsd0 \ 34 | libcurl4 \ 35 | libxml2 \ 36 | tzdata 37 | 38 | # Copy files from downloader to root 39 | COPY --from=downloader /swift/usr/lib/swift/linux /usr/lib/swift/linux 40 | -------------------------------------------------------------------------------- /Dockerfiles/architecture-base/armv7hf/ubuntu/bionic/5.0/build/Dockerfile: -------------------------------------------------------------------------------- 1 | # wlisac/armv7hf-ubuntu-swift:5.0-bionic-build 2 | 3 | ARG BASE_IMAGE=balenalib/armv7hf-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/armv7hf-ubuntu:bionic as downloader 9 | 10 | LABEL Description="Swift Downloader" 11 | 12 | ARG TARBALL_URL=https://github.com/uraimo/buildSwiftOnARM/releases/download/5.0/swift-5.0-threads_hotfix-RPi23-Ubuntu1804.tgz 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 " 26 | LABEL Description="Docker Container for Swift on Balena" 27 | 28 | # Dependencies from official Swift Dockerfile for Swift 5.0 on Ubuntu 18.04 29 | # https://github.com/apple/swift-docker/blob/6812f217b405a5101ea3e8fce4d1cf09e3c8727b/5.0/ubuntu/18.04/Dockerfile 30 | 31 | # Needed to add clang 32 | # https://github.com/uraimo/buildSwiftOnARM/blob/1be3c13d709724b48b418c6511a38c8f323378ec/README.md#dependencies 33 | 34 | RUN install_packages \ 35 | libatomic1 \ 36 | libbsd0 \ 37 | libcurl4 \ 38 | libxml2 \ 39 | libedit2 \ 40 | libsqlite3-0 \ 41 | libc6-dev \ 42 | binutils \ 43 | libgcc-5-dev \ 44 | libstdc++-5-dev \ 45 | libpython2.7 \ 46 | tzdata \ 47 | git \ 48 | pkg-config \ 49 | clang 50 | 51 | # Copy files from downloader to root 52 | COPY --from=downloader /swift / 53 | 54 | RUN swift --version 55 | -------------------------------------------------------------------------------- /Dockerfiles/architecture-base/armv7hf/ubuntu/bionic/5.0/run/Dockerfile: -------------------------------------------------------------------------------- 1 | # wlisac/armv7hf-ubuntu-swift:5.0-bionic-run 2 | 3 | ARG BASE_IMAGE=balenalib/armv7hf-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/armv7hf-ubuntu:bionic as downloader 9 | 10 | LABEL Description="Swift Downloader" 11 | 12 | ARG TARBALL_URL=https://github.com/uraimo/buildSwiftOnARM/releases/download/5.0/swift-5.0-threads_hotfix-RPi23-Ubuntu1804.tgz 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 " 26 | LABEL Description="Docker Container for Swift on Balena" 27 | 28 | # Dependencies from official Swift Dockerfile for Swift 5.0 on Ubuntu 18.04 29 | # https://github.com/apple/swift-docker/blob/bdd1aba3f1bc66139e1daff609a4037a7fa8cd8a/5.0/ubuntu/18.04/slim/Dockerfile 30 | 31 | RUN install_packages \ 32 | libatomic1 \ 33 | libbsd0 \ 34 | libcurl4 \ 35 | libxml2 \ 36 | tzdata 37 | 38 | # Copy files from downloader to root 39 | COPY --from=downloader /swift/usr/lib/swift/linux /usr/lib/swift/linux 40 | -------------------------------------------------------------------------------- /Dockerfiles/architecture-base/armv7hf/ubuntu/bionic/5.1/build/Dockerfile: -------------------------------------------------------------------------------- 1 | # wlisac/armv7hf-ubuntu-swift:5.1-bionic-build 2 | 3 | ARG BASE_IMAGE=balenalib/armv7hf-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/armv7hf-ubuntu:bionic as downloader 9 | 10 | LABEL Description="Swift Downloader" 11 | 12 | ARG TARBALL_URL=https://github.com/uraimo/buildSwiftOnARM/releases/download/5.1/swift-5.1-armv7-Ubuntu1804.tgz 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 " 26 | LABEL Description="Docker Container for Swift on Balena" 27 | 28 | # Dependencies from official Swift Dockerfile for Swift 5.1 on Ubuntu 18.04 29 | # https://github.com/apple/swift-docker/blob/fd1691a1f73b68fb8c8ef6072e716892be54a3d2/5.1/ubuntu/18.04/Dockerfile 30 | 31 | # Needed to add clang 32 | # https://github.com/uraimo/buildSwiftOnARM/blob/1be3c13d709724b48b418c6511a38c8f323378ec/README.md#dependencies 33 | 34 | RUN install_packages \ 35 | libatomic1 \ 36 | libcurl4 \ 37 | libxml2 \ 38 | libedit2 \ 39 | libsqlite3-0 \ 40 | libc6-dev \ 41 | binutils \ 42 | libgcc-5-dev \ 43 | libstdc++-5-dev \ 44 | libpython2.7 \ 45 | tzdata \ 46 | git \ 47 | pkg-config \ 48 | clang 49 | 50 | # Copy files from downloader to root 51 | COPY --from=downloader /swift / 52 | 53 | RUN swift --version 54 | -------------------------------------------------------------------------------- /Dockerfiles/architecture-base/armv7hf/ubuntu/bionic/5.1/run/Dockerfile: -------------------------------------------------------------------------------- 1 | # wlisac/armv7hf-ubuntu-swift:5.1-bionic-run 2 | 3 | ARG BASE_IMAGE=balenalib/armv7hf-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/armv7hf-ubuntu:bionic as downloader 9 | 10 | LABEL Description="Swift Downloader" 11 | 12 | ARG TARBALL_URL=https://github.com/uraimo/buildSwiftOnARM/releases/download/5.1/swift-5.1-armv7-Ubuntu1804.tgz 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 " 26 | LABEL Description="Docker Container for Swift on Balena" 27 | 28 | # Dependencies from official Swift Dockerfile for Swift 5.1 on Ubuntu 18.04 29 | # https://github.com/apple/swift-docker/blob/fd1691a1f73b68fb8c8ef6072e716892be54a3d2/5.1/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 39 | -------------------------------------------------------------------------------- /Dockerfiles/architecture-base/armv7hf/ubuntu/xenial/4.2.3/run/Dockerfile: -------------------------------------------------------------------------------- 1 | # wlisac/armv7hf-ubuntu-swift:4.2.3-xenial-run 2 | 3 | ARG BASE_IMAGE=balenalib/armv7hf-ubuntu:xenial-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/armv7hf-ubuntu:xenial as downloader 9 | 10 | LABEL Description="Swift Downloader" 11 | 12 | ARG TARBALL_URL=https://github.com/uraimo/buildSwiftOnARM/releases/download/4.2.3/swift-4.2.3-RPi23-Ubuntu1604.tgz 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 " 26 | LABEL Description="Docker Container for Swift on Balena" 27 | 28 | # There isn't an official Swift 4 slim Dockerfile to see dependencies 29 | # Dependencies from official Swift Dockerfile for Swift 5.0 on Ubuntu 16.04 30 | # https://github.com/apple/swift-docker/blob/bdd1aba3f1bc66139e1daff609a4037a7fa8cd8a/5.0/ubuntu/16.04/slim/Dockerfile 31 | 32 | # Needed to replace libcurl3 with libcurl4-nss-dev 33 | # https://github.com/uraimo/buildSwiftOnARM/tree/fc3ac47b2ce60b0098f44c7961f8295231698c99#dependencies 34 | 35 | RUN install_packages \ 36 | libatomic1 \ 37 | libbsd0 \ 38 | libcurl4-nss-dev \ 39 | libxml2 \ 40 | tzdata 41 | 42 | # Copy files from downloader to root 43 | COPY --from=downloader /swift/usr/lib/swift/linux /usr/lib/swift/linux 44 | -------------------------------------------------------------------------------- /Dockerfiles/architecture-base/armv7hf/ubuntu/xenial/5.0.1/build/Dockerfile: -------------------------------------------------------------------------------- 1 | # wlisac/armv7hf-ubuntu-swift:5.0.1-xenial-build 2 | 3 | ARG BASE_IMAGE=balenalib/armv7hf-ubuntu:xenial-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/armv7hf-ubuntu:xenial as downloader 9 | 10 | LABEL Description="Swift Downloader" 11 | 12 | ARG TARBALL_URL=https://github.com/uraimo/buildSwiftOnARM/releases/download/5.0.1/swift-5.0.1-RPi23-Ubuntu1604.tgz 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 " 26 | LABEL Description="Docker Container for Swift on Balena" 27 | 28 | # Dependencies from official Swift Dockerfile for Swift 5.0 on Ubuntu 16.04 29 | # https://github.com/apple/swift-docker/blob/6812f217b405a5101ea3e8fce4d1cf09e3c8727b/5.0/ubuntu/16.04/Dockerfile 30 | 31 | # Needed to add clang (not clang-3.8) 32 | # https://github.com/uraimo/buildSwiftOnARM/blob/1be3c13d709724b48b418c6511a38c8f323378ec/README.md#dependencies 33 | 34 | RUN install_packages \ 35 | libatomic1 \ 36 | libbsd0 \ 37 | libcurl3 \ 38 | libxml2 \ 39 | libedit2 \ 40 | libsqlite3-0 \ 41 | libc6-dev \ 42 | binutils \ 43 | libgcc-5-dev \ 44 | libstdc++-5-dev \ 45 | libpython2.7 \ 46 | tzdata \ 47 | git \ 48 | pkg-config \ 49 | clang 50 | 51 | # Copy files from downloader to root 52 | COPY --from=downloader /swift / 53 | 54 | RUN swift --version 55 | -------------------------------------------------------------------------------- /Dockerfiles/architecture-base/armv7hf/ubuntu/xenial/5.0.1/run/Dockerfile: -------------------------------------------------------------------------------- 1 | # wlisac/armv7hf-ubuntu-swift:5.0.1-xenial-run 2 | 3 | ARG BASE_IMAGE=balenalib/armv7hf-ubuntu:xenial-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/armv7hf-ubuntu:xenial as downloader 9 | 10 | LABEL Description="Swift Downloader" 11 | 12 | ARG TARBALL_URL=https://github.com/uraimo/buildSwiftOnARM/releases/download/5.0.1/swift-5.0.1-RPi23-Ubuntu1604.tgz 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 " 26 | LABEL Description="Docker Container for Swift on Balena" 27 | 28 | # Dependencies from official Swift Dockerfile for Swift 5.0 on Ubuntu 16.04 29 | # https://github.com/apple/swift-docker/blob/bdd1aba3f1bc66139e1daff609a4037a7fa8cd8a/5.0/ubuntu/16.04/slim/Dockerfile 30 | 31 | RUN install_packages \ 32 | libatomic1 \ 33 | libbsd0 \ 34 | libcurl3 \ 35 | libxml2 \ 36 | tzdata 37 | 38 | # Copy files from downloader to root 39 | COPY --from=downloader /swift/usr/lib/swift/linux /usr/lib/swift/linux 40 | -------------------------------------------------------------------------------- /Dockerfiles/architecture-base/armv7hf/ubuntu/xenial/5.0/build/Dockerfile: -------------------------------------------------------------------------------- 1 | # wlisac/armv7hf-ubuntu-swift:5.0-xenial-build 2 | 3 | ARG BASE_IMAGE=balenalib/armv7hf-ubuntu:xenial-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/armv7hf-ubuntu:xenial as downloader 9 | 10 | LABEL Description="Swift Downloader" 11 | 12 | ARG TARBALL_URL=https://github.com/uraimo/buildSwiftOnARM/releases/download/5.0/swift-5.0-threads_hotfix-RPi23-Ubuntu1604.tgz 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 " 26 | LABEL Description="Docker Container for Swift on Balena" 27 | 28 | # Dependencies from official Swift Dockerfile for Swift 5.0 on Ubuntu 16.04 29 | # https://github.com/apple/swift-docker/blob/6812f217b405a5101ea3e8fce4d1cf09e3c8727b/5.0/ubuntu/16.04/Dockerfile 30 | 31 | # Needed to add clang (not clang-3.8) 32 | # https://github.com/uraimo/buildSwiftOnARM/blob/1be3c13d709724b48b418c6511a38c8f323378ec/README.md#dependencies 33 | 34 | RUN install_packages \ 35 | libatomic1 \ 36 | libbsd0 \ 37 | libcurl3 \ 38 | libxml2 \ 39 | libedit2 \ 40 | libsqlite3-0 \ 41 | libc6-dev \ 42 | binutils \ 43 | libgcc-5-dev \ 44 | libstdc++-5-dev \ 45 | libpython2.7 \ 46 | tzdata \ 47 | git \ 48 | pkg-config \ 49 | clang 50 | 51 | # Copy files from downloader to root 52 | COPY --from=downloader /swift / 53 | 54 | RUN swift --version 55 | -------------------------------------------------------------------------------- /Dockerfiles/architecture-base/armv7hf/ubuntu/xenial/5.0/run/Dockerfile: -------------------------------------------------------------------------------- 1 | # wlisac/armv7hf-ubuntu-swift:5.0-xenial-run 2 | 3 | ARG BASE_IMAGE=balenalib/armv7hf-ubuntu:xenial-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/armv7hf-ubuntu:xenial as downloader 9 | 10 | LABEL Description="Swift Downloader" 11 | 12 | ARG TARBALL_URL=https://github.com/uraimo/buildSwiftOnARM/releases/download/5.0/swift-5.0-threads_hotfix-RPi23-Ubuntu1604.tgz 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 " 26 | LABEL Description="Docker Container for Swift on Balena" 27 | 28 | # Dependencies from official Swift Dockerfile for Swift 5.0 on Ubuntu 16.04 29 | # https://github.com/apple/swift-docker/blob/bdd1aba3f1bc66139e1daff609a4037a7fa8cd8a/5.0/ubuntu/16.04/slim/Dockerfile 30 | 31 | RUN install_packages \ 32 | libatomic1 \ 33 | libbsd0 \ 34 | libcurl3 \ 35 | libxml2 \ 36 | tzdata 37 | 38 | # Copy files from downloader to root 39 | COPY --from=downloader /swift/usr/lib/swift/linux /usr/lib/swift/linux 40 | -------------------------------------------------------------------------------- /Dockerfiles/architecture-base/armv7hf/ubuntu/xenial/5.1/build/Dockerfile: -------------------------------------------------------------------------------- 1 | # wlisac/armv7hf-ubuntu-swift:5.1-xenial-build 2 | 3 | ARG BASE_IMAGE=balenalib/armv7hf-ubuntu:xenial-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/armv7hf-ubuntu:xenial as downloader 9 | 10 | LABEL Description="Swift Downloader" 11 | 12 | ARG TARBALL_URL=https://github.com/uraimo/buildSwiftOnARM/releases/download/5.1/swift-5.1-armv7-Ubuntu1604.tgz 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 " 26 | LABEL Description="Docker Container for Swift on Balena" 27 | 28 | # Dependencies from official Swift Dockerfile for Swift 5.1 on Ubuntu 16.04 29 | # https://github.com/apple/swift-docker/blob/fd1691a1f73b68fb8c8ef6072e716892be54a3d2/5.1/ubuntu/16.04/Dockerfile 30 | 31 | # Needed to add clang (not clang-3.8) 32 | # https://github.com/uraimo/buildSwiftOnARM/blob/1be3c13d709724b48b418c6511a38c8f323378ec/README.md#dependencies 33 | 34 | RUN install_packages \ 35 | libatomic1 \ 36 | libcurl3 \ 37 | libxml2 \ 38 | libedit2 \ 39 | libsqlite3-0 \ 40 | libc6-dev \ 41 | binutils \ 42 | libgcc-5-dev \ 43 | libstdc++-5-dev \ 44 | libpython2.7 \ 45 | tzdata \ 46 | git \ 47 | pkg-config \ 48 | clang 49 | 50 | # Copy files from downloader to root 51 | COPY --from=downloader /swift / 52 | 53 | RUN swift --version 54 | -------------------------------------------------------------------------------- /Dockerfiles/architecture-base/armv7hf/ubuntu/xenial/5.1/run/Dockerfile: -------------------------------------------------------------------------------- 1 | # wlisac/armv7hf-ubuntu-swift:5.1-xenial-run 2 | 3 | ARG BASE_IMAGE=balenalib/armv7hf-ubuntu:xenial-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/armv7hf-ubuntu:xenial as downloader 9 | 10 | LABEL Description="Swift Downloader" 11 | 12 | ARG TARBALL_URL=https://github.com/uraimo/buildSwiftOnARM/releases/download/5.1/swift-5.1-armv7-Ubuntu1604.tgz 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 " 26 | LABEL Description="Docker Container for Swift on Balena" 27 | 28 | # Dependencies from official Swift Dockerfile for Swift 5.1 on Ubuntu 16.04 29 | # https://github.com/apple/swift-docker/blob/fd1691a1f73b68fb8c8ef6072e716892be54a3d2/5.1/ubuntu/16.04/slim/Dockerfile 30 | 31 | RUN install_packages \ 32 | libatomic1 \ 33 | libcurl3 \ 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 39 | -------------------------------------------------------------------------------- /Dockerfiles/architecture-base/rpi/debian/stretch/4.2.3/run/Dockerfile: -------------------------------------------------------------------------------- 1 | # wlisac/rpi-debian-swift:4.2.3-stretch-run 2 | 3 | ARG BASE_IMAGE=balenalib/rpi-debian:stretch-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/rpi-debian:stretch as downloader 9 | 10 | LABEL Description="Swift Downloader" 11 | 12 | ARG TARBALL_URL=https://github.com/uraimo/buildSwiftOnARM/releases/download/4.2.3/swift-4.2.3-RPi01-RaspbianStretch.tgz 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 " 26 | LABEL Description="Docker Container for Swift on Balena" 27 | 28 | # There isn't an official Swift 4 slim Dockerfile to see dependencies 29 | # Dependencies from official Swift Dockerfile for Swift 5.0 on Ubuntu 16.04 30 | # https://github.com/apple/swift-docker/blob/bdd1aba3f1bc66139e1daff609a4037a7fa8cd8a/5.0/ubuntu/16.04/slim/Dockerfile 31 | 32 | RUN install_packages \ 33 | libatomic1 \ 34 | libbsd0 \ 35 | libcurl3 \ 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 41 | -------------------------------------------------------------------------------- /Dockerfiles/architecture-base/rpi/debian/stretch/5.0.1/build/Dockerfile: -------------------------------------------------------------------------------- 1 | # wlisac/rpi-debian-swift:5.0.1-stretch-build 2 | 3 | ARG BASE_IMAGE=balenalib/rpi-debian:stretch-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/rpi-debian:stretch as downloader 9 | 10 | LABEL Description="Swift Downloader" 11 | 12 | ARG TARBALL_URL=https://github.com/uraimo/buildSwiftOnARM/releases/download/5.0.1/swift-5.0.1-RPi0123-RaspbianStretch.tgz 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 " 26 | LABEL Description="Docker Container for Swift on Balena" 27 | 28 | # Dependencies from official Swift Dockerfile for Swift 5.0 on Ubuntu 16.04 29 | # https://github.com/apple/swift-docker/blob/6812f217b405a5101ea3e8fce4d1cf09e3c8727b/5.0/ubuntu/16.04/Dockerfile 30 | 31 | # Needed to add clang (not clang-3.8) 32 | # https://github.com/uraimo/buildSwiftOnARM/blob/1be3c13d709724b48b418c6511a38c8f323378ec/README.md#dependencies 33 | 34 | RUN install_packages \ 35 | libatomic1 \ 36 | libbsd0 \ 37 | libcurl3 \ 38 | libxml2 \ 39 | libedit2 \ 40 | libsqlite3-0 \ 41 | libc6-dev \ 42 | binutils \ 43 | libgcc-5-dev \ 44 | libstdc++-5-dev \ 45 | libpython2.7 \ 46 | tzdata \ 47 | git \ 48 | pkg-config \ 49 | clang 50 | 51 | # Copy files from downloader to root 52 | COPY --from=downloader /swift / 53 | 54 | RUN swift --version 55 | -------------------------------------------------------------------------------- /Dockerfiles/architecture-base/rpi/debian/stretch/5.0.1/run/Dockerfile: -------------------------------------------------------------------------------- 1 | # wlisac/rpi-debian-swift:5.0.1-stretch-run 2 | 3 | ARG BASE_IMAGE=balenalib/rpi-debian:stretch-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/rpi-debian:stretch as downloader 9 | 10 | LABEL Description="Swift Downloader" 11 | 12 | ARG TARBALL_URL=https://github.com/uraimo/buildSwiftOnARM/releases/download/5.0.1/swift-5.0.1-RPi0123-RaspbianStretch.tgz 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 " 26 | LABEL Description="Docker Container for Swift on Balena" 27 | 28 | # Dependencies from official Swift Dockerfile for Swift 5.0 on Ubuntu 16.04 29 | # https://github.com/apple/swift-docker/blob/bdd1aba3f1bc66139e1daff609a4037a7fa8cd8a/5.0/ubuntu/16.04/slim/Dockerfile 30 | 31 | RUN install_packages \ 32 | libatomic1 \ 33 | libbsd0 \ 34 | libcurl3 \ 35 | libxml2 \ 36 | tzdata 37 | 38 | # Copy files from downloader to root 39 | COPY --from=downloader /swift/usr/lib/swift/linux /usr/lib/swift/linux 40 | -------------------------------------------------------------------------------- /Dockerfiles/architecture-base/rpi/debian/stretch/5.0/build/Dockerfile: -------------------------------------------------------------------------------- 1 | # wlisac/rpi-debian-swift:5.0-stretch-build 2 | 3 | ARG BASE_IMAGE=balenalib/rpi-debian:stretch-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/rpi-debian:stretch as downloader 9 | 10 | LABEL Description="Swift Downloader" 11 | 12 | ARG TARBALL_URL=https://github.com/uraimo/buildSwiftOnARM/releases/download/5.0/swift-5.0-RPi01-RaspbianStretch.tgz 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 " 26 | LABEL Description="Docker Container for Swift on Balena" 27 | 28 | # Dependencies from official Swift Dockerfile for Swift 5.0 on Ubuntu 16.04 29 | # https://github.com/apple/swift-docker/blob/6812f217b405a5101ea3e8fce4d1cf09e3c8727b/5.0/ubuntu/16.04/Dockerfile 30 | 31 | # Needed to add clang (not clang-3.8) 32 | # https://github.com/uraimo/buildSwiftOnARM/blob/1be3c13d709724b48b418c6511a38c8f323378ec/README.md#dependencies 33 | 34 | RUN install_packages \ 35 | libatomic1 \ 36 | libbsd0 \ 37 | libcurl3 \ 38 | libxml2 \ 39 | libedit2 \ 40 | libsqlite3-0 \ 41 | libc6-dev \ 42 | binutils \ 43 | libgcc-5-dev \ 44 | libstdc++-5-dev \ 45 | libpython2.7 \ 46 | tzdata \ 47 | git \ 48 | pkg-config \ 49 | clang 50 | 51 | # Copy files from downloader to root 52 | COPY --from=downloader /swift / 53 | 54 | RUN swift --version 55 | -------------------------------------------------------------------------------- /Dockerfiles/architecture-base/rpi/debian/stretch/5.0/run/Dockerfile: -------------------------------------------------------------------------------- 1 | # wlisac/rpi-debian-swift:5.0-stretch-run 2 | 3 | ARG BASE_IMAGE=balenalib/rpi-debian:stretch-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/rpi-debian:stretch as downloader 9 | 10 | LABEL Description="Swift Downloader" 11 | 12 | ARG TARBALL_URL=https://github.com/uraimo/buildSwiftOnARM/releases/download/5.0/swift-5.0-RPi01-RaspbianStretch.tgz 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 " 26 | LABEL Description="Docker Container for Swift on Balena" 27 | 28 | # Dependencies from official Swift Dockerfile for Swift 5.0 on Ubuntu 16.04 29 | # https://github.com/apple/swift-docker/blob/bdd1aba3f1bc66139e1daff609a4037a7fa8cd8a/5.0/ubuntu/16.04/slim/Dockerfile 30 | 31 | RUN install_packages \ 32 | libatomic1 \ 33 | libbsd0 \ 34 | libcurl3 \ 35 | libxml2 \ 36 | tzdata 37 | 38 | # Copy files from downloader to root 39 | COPY --from=downloader /swift/usr/lib/swift/linux /usr/lib/swift/linux 40 | -------------------------------------------------------------------------------- /Dockerfiles/architecture-base/rpi/debian/stretch/5.1/build/Dockerfile: -------------------------------------------------------------------------------- 1 | # wlisac/rpi-debian-swift:5.1-stretch-build 2 | 3 | ARG BASE_IMAGE=balenalib/rpi-debian:stretch-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/rpi-debian:stretch as downloader 9 | 10 | LABEL Description="Swift Downloader" 11 | 12 | ARG TARBALL_URL=https://github.com/uraimo/buildSwiftOnARM/releases/download/5.1/swift-5.1-armv6-RPi0123-RaspbianStretch.tgz 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 " 26 | LABEL Description="Docker Container for Swift on Balena" 27 | 28 | # Dependencies from official Swift Dockerfile for Swift 5.1 on Ubuntu 16.04 29 | # https://github.com/apple/swift-docker/blob/fd1691a1f73b68fb8c8ef6072e716892be54a3d2/5.1/ubuntu/16.04/Dockerfile 30 | 31 | # Needed to add clang (not clang-3.8) 32 | # https://github.com/uraimo/buildSwiftOnARM/blob/1be3c13d709724b48b418c6511a38c8f323378ec/README.md#dependencies 33 | 34 | RUN install_packages \ 35 | libatomic1 \ 36 | libcurl3 \ 37 | libxml2 \ 38 | libedit2 \ 39 | libsqlite3-0 \ 40 | libc6-dev \ 41 | binutils \ 42 | libgcc-5-dev \ 43 | libstdc++-5-dev \ 44 | libpython2.7 \ 45 | tzdata \ 46 | git \ 47 | pkg-config \ 48 | clang 49 | 50 | # Copy files from downloader to root 51 | COPY --from=downloader /swift / 52 | 53 | RUN swift --version 54 | -------------------------------------------------------------------------------- /Dockerfiles/architecture-base/rpi/debian/stretch/5.1/run/Dockerfile: -------------------------------------------------------------------------------- 1 | # wlisac/rpi-debian-swift:5.1-stretch-run 2 | 3 | ARG BASE_IMAGE=balenalib/rpi-debian:stretch-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/rpi-debian:stretch as downloader 9 | 10 | LABEL Description="Swift Downloader" 11 | 12 | ARG TARBALL_URL=https://github.com/uraimo/buildSwiftOnARM/releases/download/5.1/swift-5.1-armv6-RPi0123-RaspbianStretch.tgz 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 " 26 | LABEL Description="Docker Container for Swift on Balena" 27 | 28 | # Dependencies from official Swift Dockerfile for Swift 5.1 on Ubuntu 16.04 29 | # https://github.com/apple/swift-docker/blob/fd1691a1f73b68fb8c8ef6072e716892be54a3d2/5.1/ubuntu/16.04/slim/Dockerfile 30 | 31 | RUN install_packages \ 32 | libatomic1 \ 33 | libcurl3 \ 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 39 | -------------------------------------------------------------------------------- /Dockerfiles/device-base/generic-aarch64/ubuntu/bionic/4.2.3/run/Dockerfile: -------------------------------------------------------------------------------- 1 | # Autogenerated device Dockerfile based on architecture Dockerfile: wlisac/aarch64-ubuntu-swift:4.2.3-bionic-run 2 | 3 | # wlisac/generic-aarch64-ubuntu-swift:4.2.3-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/v4.2.3-RELEASE/swift-4.2.3-RELEASE-aarch64-Ubuntu-18.04_2019-03-04.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 " 28 | LABEL Description="Docker Container for Swift on Balena" 29 | 30 | # There isn't an official Swift 4 slim Dockerfile to see dependencies 31 | # Dependencies from official Swift Dockerfile for Swift 5.0 on Ubuntu 18.04 32 | # https://github.com/apple/swift-docker/blob/bdd1aba3f1bc66139e1daff609a4037a7fa8cd8a/5.0/ubuntu/18.04/slim/Dockerfile 33 | 34 | RUN install_packages \ 35 | libatomic1 \ 36 | libbsd0 \ 37 | libcurl4 \ 38 | libxml2 \ 39 | tzdata 40 | 41 | # Copy files from downloader to root 42 | COPY --from=downloader /swift/usr/lib/swift/linux /usr/lib/swift/linux 43 | -------------------------------------------------------------------------------- /Dockerfiles/device-base/generic-aarch64/ubuntu/bionic/5.0.1/build/Dockerfile: -------------------------------------------------------------------------------- 1 | # Autogenerated device Dockerfile based on architecture Dockerfile: wlisac/aarch64-ubuntu-swift:5.0.1-bionic-build 2 | 3 | # wlisac/generic-aarch64-ubuntu-swift:5.0.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.0.1-RELEASE/swift-5.0.1-aarch64-RELEASE-Ubuntu-18.04-patched_2019-07-03.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 " 28 | LABEL Description="Docker Container for Swift on Balena" 29 | 30 | # Dependencies from official Swift Dockerfile for Swift 5.0 on Ubuntu 18.04 31 | # https://github.com/apple/swift-docker/blob/6812f217b405a5101ea3e8fce4d1cf09e3c8727b/5.0/ubuntu/18.04/Dockerfile 32 | 33 | RUN install_packages \ 34 | libatomic1 \ 35 | libbsd0 \ 36 | libcurl4 \ 37 | libxml2 \ 38 | libedit2 \ 39 | libsqlite3-0 \ 40 | libc6-dev \ 41 | binutils \ 42 | libgcc-5-dev \ 43 | libstdc++-5-dev \ 44 | libpython2.7 \ 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 53 | -------------------------------------------------------------------------------- /Dockerfiles/device-base/generic-aarch64/ubuntu/bionic/5.0.1/run/Dockerfile: -------------------------------------------------------------------------------- 1 | # Autogenerated device Dockerfile based on architecture Dockerfile: wlisac/aarch64-ubuntu-swift:5.0.1-bionic-run 2 | 3 | # wlisac/generic-aarch64-ubuntu-swift:5.0.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.0.1-RELEASE/swift-5.0.1-aarch64-RELEASE-Ubuntu-18.04_2019-05-17.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 " 28 | LABEL Description="Docker Container for Swift on Balena" 29 | 30 | # Dependencies from official Swift Dockerfile for Swift 5.0 on Ubuntu 18.04 31 | # https://github.com/apple/swift-docker/blob/bdd1aba3f1bc66139e1daff609a4037a7fa8cd8a/5.0/ubuntu/18.04/slim/Dockerfile 32 | 33 | RUN install_packages \ 34 | libatomic1 \ 35 | libbsd0 \ 36 | libcurl4 \ 37 | libxml2 \ 38 | tzdata 39 | 40 | # Copy files from downloader to root 41 | COPY --from=downloader /swift/usr/lib/swift/linux /usr/lib/swift/linux 42 | -------------------------------------------------------------------------------- /Dockerfiles/device-base/generic-aarch64/ubuntu/bionic/5.0/build/Dockerfile: -------------------------------------------------------------------------------- 1 | # Autogenerated device Dockerfile based on architecture Dockerfile: wlisac/aarch64-ubuntu-swift:5.0-bionic-build 2 | 3 | # wlisac/generic-aarch64-ubuntu-swift:5.0-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.0-RELEASE/swift-5.0-RELEASE-aarch64-Ubuntu-18.04_2019-03-26.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 " 28 | LABEL Description="Docker Container for Swift on Balena" 29 | 30 | # Dependencies from official Swift Dockerfile for Swift 5.0 on Ubuntu 18.04 31 | # https://github.com/apple/swift-docker/blob/6812f217b405a5101ea3e8fce4d1cf09e3c8727b/5.0/ubuntu/18.04/Dockerfile 32 | 33 | RUN install_packages \ 34 | libatomic1 \ 35 | libbsd0 \ 36 | libcurl4 \ 37 | libxml2 \ 38 | libedit2 \ 39 | libsqlite3-0 \ 40 | libc6-dev \ 41 | binutils \ 42 | libgcc-5-dev \ 43 | libstdc++-5-dev \ 44 | libpython2.7 \ 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 53 | -------------------------------------------------------------------------------- /Dockerfiles/device-base/generic-aarch64/ubuntu/bionic/5.0/run/Dockerfile: -------------------------------------------------------------------------------- 1 | # Autogenerated device Dockerfile based on architecture Dockerfile: wlisac/aarch64-ubuntu-swift:5.0-bionic-run 2 | 3 | # wlisac/generic-aarch64-ubuntu-swift:5.0-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.0-RELEASE/swift-5.0-RELEASE-aarch64-Ubuntu-18.04_2019-03-26.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 " 28 | LABEL Description="Docker Container for Swift on Balena" 29 | 30 | # Dependencies from official Swift Dockerfile for Swift 5.0 on Ubuntu 18.04 31 | # https://github.com/apple/swift-docker/blob/bdd1aba3f1bc66139e1daff609a4037a7fa8cd8a/5.0/ubuntu/18.04/slim/Dockerfile 32 | 33 | RUN install_packages \ 34 | libatomic1 \ 35 | libbsd0 \ 36 | libcurl4 \ 37 | libxml2 \ 38 | tzdata 39 | 40 | # Copy files from downloader to root 41 | COPY --from=downloader /swift/usr/lib/swift/linux /usr/lib/swift/linux 42 | -------------------------------------------------------------------------------- /Dockerfiles/device-base/generic-aarch64/ubuntu/bionic/5.1/build/Dockerfile: -------------------------------------------------------------------------------- 1 | # Autogenerated device Dockerfile based on architecture Dockerfile: wlisac/aarch64-ubuntu-swift:5.1-bionic-build 2 | 3 | # wlisac/generic-aarch64-ubuntu-swift: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.1-RELEASE/swift-5.1-aarch64-RELEASE-Ubuntu-18.04_2019-09-21.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 " 28 | LABEL Description="Docker Container for Swift on Balena" 29 | 30 | # Dependencies from official Swift Dockerfile for Swift 5.1 on Ubuntu 18.04 31 | # https://github.com/apple/swift-docker/blob/fd1691a1f73b68fb8c8ef6072e716892be54a3d2/5.1/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 | libpython2.7 \ 44 | tzdata \ 45 | git \ 46 | pkg-config 47 | 48 | # Copy files from downloader to root 49 | COPY --from=downloader /swift / 50 | 51 | RUN swift --version 52 | -------------------------------------------------------------------------------- /Dockerfiles/device-base/generic-aarch64/ubuntu/bionic/5.1/run/Dockerfile: -------------------------------------------------------------------------------- 1 | # Autogenerated device Dockerfile based on architecture Dockerfile: wlisac/aarch64-ubuntu-swift:5.1-bionic-run 2 | 3 | # wlisac/generic-aarch64-ubuntu-swift: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.1-RELEASE/swift-5.1-aarch64-RELEASE-Ubuntu-18.04_2019-09-21.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 " 28 | LABEL Description="Docker Container for Swift on Balena" 29 | 30 | # Dependencies from official Swift Dockerfile for Swift 5.1 on Ubuntu 18.04 31 | # https://github.com/apple/swift-docker/blob/fd1691a1f73b68fb8c8ef6072e716892be54a3d2/5.1/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 41 | -------------------------------------------------------------------------------- /Dockerfiles/device-base/generic-aarch64/ubuntu/bionic/5.5.1/build/Dockerfile: -------------------------------------------------------------------------------- 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 " 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 -------------------------------------------------------------------------------- /Dockerfiles/device-base/generic-aarch64/ubuntu/bionic/5.5.1/run/Dockerfile: -------------------------------------------------------------------------------- 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 " 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 41 | -------------------------------------------------------------------------------- /Dockerfiles/device-base/generic-aarch64/ubuntu/xenial/4.2.3/run/Dockerfile: -------------------------------------------------------------------------------- 1 | # Autogenerated device Dockerfile based on architecture Dockerfile: wlisac/aarch64-ubuntu-swift:4.2.3-xenial-run 2 | 3 | # wlisac/generic-aarch64-ubuntu-swift:4.2.3-xenial-run 4 | 5 | ARG BASE_IMAGE=balenalib/generic-aarch64-ubuntu:xenial-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:xenial as downloader 11 | 12 | LABEL Description="Swift Downloader" 13 | 14 | ARG TARBALL_URL=https://github.com/futurejones/swift-arm64/releases/download/v4.2.3-RELEASE/swift-4.2.3-RELEASE-aarch64-Ubuntu-16.04_2019-03-03.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 " 28 | LABEL Description="Docker Container for Swift on Balena" 29 | 30 | # There isn't an official Swift 4 slim Dockerfile to see dependencies 31 | # Dependencies from official Swift Dockerfile for Swift 5.0 on Ubuntu 16.04 32 | # https://github.com/apple/swift-docker/blob/bdd1aba3f1bc66139e1daff609a4037a7fa8cd8a/5.0/ubuntu/16.04/slim/Dockerfile 33 | 34 | RUN install_packages \ 35 | libatomic1 \ 36 | libbsd0 \ 37 | libcurl3 \ 38 | libxml2 \ 39 | tzdata 40 | 41 | # Copy files from downloader to root 42 | COPY --from=downloader /swift/usr/lib/swift/linux /usr/lib/swift/linux 43 | -------------------------------------------------------------------------------- /Dockerfiles/device-base/generic-aarch64/ubuntu/xenial/5.0.1/build/Dockerfile: -------------------------------------------------------------------------------- 1 | # Autogenerated device Dockerfile based on architecture Dockerfile: wlisac/aarch64-ubuntu-swift:5.0.1-xenial-build 2 | 3 | # wlisac/generic-aarch64-ubuntu-swift:5.0.1-xenial-build 4 | 5 | ARG BASE_IMAGE=balenalib/generic-aarch64-ubuntu:xenial-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:xenial as downloader 11 | 12 | LABEL Description="Swift Downloader" 13 | 14 | ARG TARBALL_URL=https://github.com/futurejones/swift-arm64/releases/download/v5.0.1-RELEASE/swift-5.0.1-aarch64-RELEASE-Ubuntu-16.04-patched_2019-07-03.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 " 28 | LABEL Description="Docker Container for Swift on Balena" 29 | 30 | # Dependencies from official Swift Dockerfile for Swift 5.0 on Ubuntu 16.04 31 | # https://github.com/apple/swift-docker/blob/6812f217b405a5101ea3e8fce4d1cf09e3c8727b/5.0/ubuntu/16.04/Dockerfile 32 | 33 | RUN install_packages \ 34 | libatomic1 \ 35 | libbsd0 \ 36 | libcurl3 \ 37 | libxml2 \ 38 | libedit2 \ 39 | libsqlite3-0 \ 40 | libc6-dev \ 41 | binutils \ 42 | libgcc-5-dev \ 43 | libstdc++-5-dev \ 44 | libpython2.7 \ 45 | tzdata \ 46 | git \ 47 | pkg-config \ 48 | libicu-dev 49 | 50 | # Copy files from downloader to root 51 | COPY --from=downloader /swift / 52 | 53 | RUN swift --version 54 | -------------------------------------------------------------------------------- /Dockerfiles/device-base/generic-aarch64/ubuntu/xenial/5.0.1/run/Dockerfile: -------------------------------------------------------------------------------- 1 | # Autogenerated device Dockerfile based on architecture Dockerfile: wlisac/aarch64-ubuntu-swift:5.0.1-xenial-run 2 | 3 | # wlisac/generic-aarch64-ubuntu-swift:5.0.1-xenial-run 4 | 5 | ARG BASE_IMAGE=balenalib/generic-aarch64-ubuntu:xenial-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:xenial as downloader 11 | 12 | LABEL Description="Swift Downloader" 13 | 14 | ARG TARBALL_URL=https://github.com/futurejones/swift-arm64/releases/download/v5.0.1-RELEASE/swift-5.0.1-aarch64-RELEASE-Ubuntu-16.04_2019-04-24.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 " 28 | LABEL Description="Docker Container for Swift on Balena" 29 | 30 | # Dependencies from official Swift Dockerfile for Swift 5.0 on Ubuntu 16.04 31 | # https://github.com/apple/swift-docker/blob/bdd1aba3f1bc66139e1daff609a4037a7fa8cd8a/5.0/ubuntu/16.04/slim/Dockerfile 32 | 33 | RUN install_packages \ 34 | libatomic1 \ 35 | libbsd0 \ 36 | libcurl3 \ 37 | libxml2 \ 38 | tzdata 39 | 40 | # Copy files from downloader to root 41 | COPY --from=downloader /swift/usr/lib/swift/linux /usr/lib/swift/linux 42 | -------------------------------------------------------------------------------- /Dockerfiles/device-base/generic-aarch64/ubuntu/xenial/5.0/build/Dockerfile: -------------------------------------------------------------------------------- 1 | # Autogenerated device Dockerfile based on architecture Dockerfile: wlisac/aarch64-ubuntu-swift:5.0-xenial-build 2 | 3 | # wlisac/generic-aarch64-ubuntu-swift:5.0-xenial-build 4 | 5 | ARG BASE_IMAGE=balenalib/generic-aarch64-ubuntu:xenial-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:xenial as downloader 11 | 12 | LABEL Description="Swift Downloader" 13 | 14 | ARG TARBALL_URL=https://github.com/futurejones/swift-arm64/releases/download/v5.0-RELEASE/swift-5.0-RELEASE-aarch64-Ubuntu-16.04_2019-03-26.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 " 28 | LABEL Description="Docker Container for Swift on Balena" 29 | 30 | # Dependencies from official Swift Dockerfile for Swift 5.0 on Ubuntu 16.04 31 | # https://github.com/apple/swift-docker/blob/6812f217b405a5101ea3e8fce4d1cf09e3c8727b/5.0/ubuntu/16.04/Dockerfile 32 | 33 | RUN install_packages \ 34 | libatomic1 \ 35 | libbsd0 \ 36 | libcurl3 \ 37 | libxml2 \ 38 | libedit2 \ 39 | libsqlite3-0 \ 40 | libc6-dev \ 41 | binutils \ 42 | libgcc-5-dev \ 43 | libstdc++-5-dev \ 44 | libpython2.7 \ 45 | tzdata \ 46 | git \ 47 | pkg-config \ 48 | libicu-dev 49 | 50 | # Copy files from downloader to root 51 | COPY --from=downloader /swift / 52 | 53 | RUN swift --version 54 | -------------------------------------------------------------------------------- /Dockerfiles/device-base/generic-aarch64/ubuntu/xenial/5.0/run/Dockerfile: -------------------------------------------------------------------------------- 1 | # Autogenerated device Dockerfile based on architecture Dockerfile: wlisac/aarch64-ubuntu-swift:5.0-xenial-run 2 | 3 | # wlisac/generic-aarch64-ubuntu-swift:5.0-xenial-run 4 | 5 | ARG BASE_IMAGE=balenalib/generic-aarch64-ubuntu:xenial-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:xenial as downloader 11 | 12 | LABEL Description="Swift Downloader" 13 | 14 | ARG TARBALL_URL=https://github.com/futurejones/swift-arm64/releases/download/v5.0-RELEASE/swift-5.0-RELEASE-aarch64-Ubuntu-16.04_2019-03-26.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 " 28 | LABEL Description="Docker Container for Swift on Balena" 29 | 30 | # Dependencies from official Swift Dockerfile for Swift 5.0 on Ubuntu 16.04 31 | # https://github.com/apple/swift-docker/blob/bdd1aba3f1bc66139e1daff609a4037a7fa8cd8a/5.0/ubuntu/16.04/slim/Dockerfile 32 | 33 | RUN install_packages \ 34 | libatomic1 \ 35 | libbsd0 \ 36 | libcurl3 \ 37 | libxml2 \ 38 | tzdata 39 | 40 | # Copy files from downloader to root 41 | COPY --from=downloader /swift/usr/lib/swift/linux /usr/lib/swift/linux 42 | -------------------------------------------------------------------------------- /Dockerfiles/device-base/generic-aarch64/ubuntu/xenial/5.1/build/Dockerfile: -------------------------------------------------------------------------------- 1 | # Autogenerated device Dockerfile based on architecture Dockerfile: wlisac/aarch64-ubuntu-swift:5.1-xenial-build 2 | 3 | # wlisac/generic-aarch64-ubuntu-swift:5.1-xenial-build 4 | 5 | ARG BASE_IMAGE=balenalib/generic-aarch64-ubuntu:xenial-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:xenial as downloader 11 | 12 | LABEL Description="Swift Downloader" 13 | 14 | ARG TARBALL_URL=https://github.com/futurejones/swift-arm64/releases/download/v5.1-RELEASE/swift-5.1-aarch64-RELEASE-Ubuntu-16.04_2019-09-24.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 " 28 | LABEL Description="Docker Container for Swift on Balena" 29 | 30 | # Dependencies from official Swift Dockerfile for Swift 5.1 on Ubuntu 16.04 31 | # https://github.com/apple/swift-docker/blob/fd1691a1f73b68fb8c8ef6072e716892be54a3d2/5.1/ubuntu/16.04/Dockerfile 32 | 33 | RUN install_packages \ 34 | libatomic1 \ 35 | libcurl3 \ 36 | libxml2 \ 37 | libedit2 \ 38 | libsqlite3-0 \ 39 | libc6-dev \ 40 | binutils \ 41 | libgcc-5-dev \ 42 | libstdc++-5-dev \ 43 | libpython2.7 \ 44 | tzdata \ 45 | git \ 46 | pkg-config 47 | 48 | # Copy files from downloader to root 49 | COPY --from=downloader /swift / 50 | 51 | RUN swift --version 52 | -------------------------------------------------------------------------------- /Dockerfiles/device-base/generic-aarch64/ubuntu/xenial/5.1/run/Dockerfile: -------------------------------------------------------------------------------- 1 | # Autogenerated device Dockerfile based on architecture Dockerfile: wlisac/aarch64-ubuntu-swift:5.1-xenial-run 2 | 3 | # wlisac/generic-aarch64-ubuntu-swift:5.1-xenial-run 4 | 5 | ARG BASE_IMAGE=balenalib/generic-aarch64-ubuntu:xenial-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:xenial as downloader 11 | 12 | LABEL Description="Swift Downloader" 13 | 14 | ARG TARBALL_URL=https://github.com/futurejones/swift-arm64/releases/download/v5.1-RELEASE/swift-5.1-aarch64-RELEASE-Ubuntu-16.04_2019-09-24.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 " 28 | LABEL Description="Docker Container for Swift on Balena" 29 | 30 | # Dependencies from official Swift Dockerfile for Swift 5.1 on Ubuntu 16.04 31 | # https://github.com/apple/swift-docker/blob/fd1691a1f73b68fb8c8ef6072e716892be54a3d2/5.1/ubuntu/16.04/slim/Dockerfile 32 | 33 | RUN install_packages \ 34 | libatomic1 \ 35 | libcurl3 \ 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 41 | -------------------------------------------------------------------------------- /Dockerfiles/device-base/generic-armv7ahf/debian/stretch/4.2.3/run/Dockerfile: -------------------------------------------------------------------------------- 1 | # Autogenerated device Dockerfile based on architecture Dockerfile: wlisac/armv7hf-debian-swift:4.2.3-stretch-run 2 | 3 | # wlisac/generic-armv7ahf-debian-swift:4.2.3-stretch-run 4 | 5 | ARG BASE_IMAGE=balenalib/generic-armv7ahf-debian:stretch-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/armv7hf-debian:stretch as downloader 11 | 12 | LABEL Description="Swift Downloader" 13 | 14 | ARG TARBALL_URL=https://github.com/uraimo/buildSwiftOnARM/releases/download/4.2.3/swift-4.2.3-RPi23-RaspbianStretch.tgz 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 " 28 | LABEL Description="Docker Container for Swift on Balena" 29 | 30 | # There isn't an official Swift 4 slim Dockerfile to see dependencies 31 | # Dependencies from official Swift Dockerfile for Swift 5.0 on Ubuntu 16.04 32 | # https://github.com/apple/swift-docker/blob/bdd1aba3f1bc66139e1daff609a4037a7fa8cd8a/5.0/ubuntu/16.04/slim/Dockerfile 33 | 34 | RUN install_packages \ 35 | libatomic1 \ 36 | libbsd0 \ 37 | libcurl3 \ 38 | libxml2 \ 39 | tzdata 40 | 41 | # Copy files from downloader to root 42 | COPY --from=downloader /swift/usr/lib/swift/linux /usr/lib/swift/linux 43 | -------------------------------------------------------------------------------- /Dockerfiles/device-base/generic-armv7ahf/debian/stretch/5.0.1/run/Dockerfile: -------------------------------------------------------------------------------- 1 | # Autogenerated device Dockerfile based on architecture Dockerfile: wlisac/armv7hf-debian-swift:5.0.1-stretch-run 2 | 3 | # wlisac/generic-armv7ahf-debian-swift:5.0.1-stretch-run 4 | 5 | ARG BASE_IMAGE=balenalib/generic-armv7ahf-debian:stretch-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/armv7hf-debian:stretch as downloader 11 | 12 | LABEL Description="Swift Downloader" 13 | 14 | ARG TARBALL_URL=https://github.com/uraimo/buildSwiftOnARM/releases/download/5.0.1/swift-5.0.1-RPi0123-RaspbianStretch.tgz 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 " 28 | LABEL Description="Docker Container for Swift on Balena" 29 | 30 | # Dependencies from official Swift Dockerfile for Swift 5.0 on Ubuntu 16.04 31 | # https://github.com/apple/swift-docker/blob/bdd1aba3f1bc66139e1daff609a4037a7fa8cd8a/5.0/ubuntu/16.04/slim/Dockerfile 32 | 33 | RUN install_packages \ 34 | libatomic1 \ 35 | libbsd0 \ 36 | libcurl3 \ 37 | libxml2 \ 38 | tzdata 39 | 40 | # Copy files from downloader to root 41 | COPY --from=downloader /swift/usr/lib/swift/linux /usr/lib/swift/linux 42 | -------------------------------------------------------------------------------- /Dockerfiles/device-base/generic-armv7ahf/debian/stretch/5.0/run/Dockerfile: -------------------------------------------------------------------------------- 1 | # Autogenerated device Dockerfile based on architecture Dockerfile: wlisac/armv7hf-debian-swift:5.0-stretch-run 2 | 3 | # wlisac/generic-armv7ahf-debian-swift:5.0-stretch-run 4 | 5 | ARG BASE_IMAGE=balenalib/generic-armv7ahf-debian:stretch-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/armv7hf-debian:stretch as downloader 11 | 12 | LABEL Description="Swift Downloader" 13 | 14 | ARG TARBALL_URL=https://github.com/uraimo/buildSwiftOnARM/releases/download/5.0/swift-5.0-threads_hotfix-RPi23-RaspbianStretch.tgz 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 " 28 | LABEL Description="Docker Container for Swift on Balena" 29 | 30 | # Dependencies from official Swift Dockerfile for Swift 5.0 on Ubuntu 16.04 31 | # https://github.com/apple/swift-docker/blob/bdd1aba3f1bc66139e1daff609a4037a7fa8cd8a/5.0/ubuntu/16.04/slim/Dockerfile 32 | 33 | RUN install_packages \ 34 | libatomic1 \ 35 | libbsd0 \ 36 | libcurl3 \ 37 | libxml2 \ 38 | tzdata 39 | 40 | # Copy files from downloader to root 41 | COPY --from=downloader /swift/usr/lib/swift/linux /usr/lib/swift/linux 42 | -------------------------------------------------------------------------------- /Dockerfiles/device-base/generic-armv7ahf/debian/stretch/5.1/run/Dockerfile: -------------------------------------------------------------------------------- 1 | # Autogenerated device Dockerfile based on architecture Dockerfile: wlisac/armv7hf-debian-swift:5.1-stretch-run 2 | 3 | # wlisac/generic-armv7ahf-debian-swift:5.1-stretch-run 4 | 5 | ARG BASE_IMAGE=balenalib/generic-armv7ahf-debian:stretch-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/armv7hf-debian:stretch as downloader 11 | 12 | LABEL Description="Swift Downloader" 13 | 14 | ARG TARBALL_URL=https://github.com/uraimo/buildSwiftOnARM/releases/download/5.1/swift-5.1-armv7-DebianStretch.tgz 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 " 28 | LABEL Description="Docker Container for Swift on Balena" 29 | 30 | # Dependencies from official Swift Dockerfile for Swift 5.1 on Ubuntu 16.04 31 | # https://github.com/apple/swift-docker/blob/fd1691a1f73b68fb8c8ef6072e716892be54a3d2/5.1/ubuntu/16.04/slim/Dockerfile 32 | 33 | RUN install_packages \ 34 | libatomic1 \ 35 | libcurl3 \ 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 41 | -------------------------------------------------------------------------------- /Dockerfiles/device-base/generic-armv7ahf/ubuntu/bionic/4.2.3/run/Dockerfile: -------------------------------------------------------------------------------- 1 | # Autogenerated device Dockerfile based on architecture Dockerfile: wlisac/armv7hf-ubuntu-swift:4.2.3-bionic-run 2 | 3 | # wlisac/generic-armv7ahf-ubuntu-swift:4.2.3-bionic-run 4 | 5 | ARG BASE_IMAGE=balenalib/generic-armv7ahf-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/armv7hf-ubuntu:bionic as downloader 11 | 12 | LABEL Description="Swift Downloader" 13 | 14 | ARG TARBALL_URL=https://github.com/uraimo/buildSwiftOnARM/releases/download/4.2.3/swift-4.2.3-RPi23-Ubuntu1804.tgz 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 " 28 | LABEL Description="Docker Container for Swift on Balena" 29 | 30 | # There isn't an official Swift 4 slim Dockerfile to see dependencies 31 | # Dependencies from official Swift Dockerfile for Swift 5.0 on Ubuntu 18.04 32 | # https://github.com/apple/swift-docker/blob/bdd1aba3f1bc66139e1daff609a4037a7fa8cd8a/5.0/ubuntu/18.04/slim/Dockerfile 33 | 34 | RUN install_packages \ 35 | libatomic1 \ 36 | libbsd0 \ 37 | libcurl4 \ 38 | libxml2 \ 39 | tzdata 40 | 41 | # Copy files from downloader to root 42 | COPY --from=downloader /swift/usr/lib/swift/linux /usr/lib/swift/linux 43 | -------------------------------------------------------------------------------- /Dockerfiles/device-base/generic-armv7ahf/ubuntu/bionic/5.0.1/run/Dockerfile: -------------------------------------------------------------------------------- 1 | # Autogenerated device Dockerfile based on architecture Dockerfile: wlisac/armv7hf-ubuntu-swift:5.0.1-bionic-run 2 | 3 | # wlisac/generic-armv7ahf-ubuntu-swift:5.0.1-bionic-run 4 | 5 | ARG BASE_IMAGE=balenalib/generic-armv7ahf-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/armv7hf-ubuntu:bionic as downloader 11 | 12 | LABEL Description="Swift Downloader" 13 | 14 | ARG TARBALL_URL=https://github.com/uraimo/buildSwiftOnARM/releases/download/5.0.1/swift-5.0.1-RPi23-Ubuntu1804.tgz 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 " 28 | LABEL Description="Docker Container for Swift on Balena" 29 | 30 | # Dependencies from official Swift Dockerfile for Swift 5.0 on Ubuntu 18.04 31 | # https://github.com/apple/swift-docker/blob/bdd1aba3f1bc66139e1daff609a4037a7fa8cd8a/5.0/ubuntu/18.04/slim/Dockerfile 32 | 33 | RUN install_packages \ 34 | libatomic1 \ 35 | libbsd0 \ 36 | libcurl4 \ 37 | libxml2 \ 38 | tzdata 39 | 40 | # Copy files from downloader to root 41 | COPY --from=downloader /swift/usr/lib/swift/linux /usr/lib/swift/linux 42 | -------------------------------------------------------------------------------- /Dockerfiles/device-base/generic-armv7ahf/ubuntu/bionic/5.0/run/Dockerfile: -------------------------------------------------------------------------------- 1 | # Autogenerated device Dockerfile based on architecture Dockerfile: wlisac/armv7hf-ubuntu-swift:5.0-bionic-run 2 | 3 | # wlisac/generic-armv7ahf-ubuntu-swift:5.0-bionic-run 4 | 5 | ARG BASE_IMAGE=balenalib/generic-armv7ahf-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/armv7hf-ubuntu:bionic as downloader 11 | 12 | LABEL Description="Swift Downloader" 13 | 14 | ARG TARBALL_URL=https://github.com/uraimo/buildSwiftOnARM/releases/download/5.0/swift-5.0-threads_hotfix-RPi23-Ubuntu1804.tgz 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 " 28 | LABEL Description="Docker Container for Swift on Balena" 29 | 30 | # Dependencies from official Swift Dockerfile for Swift 5.0 on Ubuntu 18.04 31 | # https://github.com/apple/swift-docker/blob/bdd1aba3f1bc66139e1daff609a4037a7fa8cd8a/5.0/ubuntu/18.04/slim/Dockerfile 32 | 33 | RUN install_packages \ 34 | libatomic1 \ 35 | libbsd0 \ 36 | libcurl4 \ 37 | libxml2 \ 38 | tzdata 39 | 40 | # Copy files from downloader to root 41 | COPY --from=downloader /swift/usr/lib/swift/linux /usr/lib/swift/linux 42 | -------------------------------------------------------------------------------- /Dockerfiles/device-base/generic-armv7ahf/ubuntu/bionic/5.1/run/Dockerfile: -------------------------------------------------------------------------------- 1 | # Autogenerated device Dockerfile based on architecture Dockerfile: wlisac/armv7hf-ubuntu-swift:5.1-bionic-run 2 | 3 | # wlisac/generic-armv7ahf-ubuntu-swift:5.1-bionic-run 4 | 5 | ARG BASE_IMAGE=balenalib/generic-armv7ahf-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/armv7hf-ubuntu:bionic as downloader 11 | 12 | LABEL Description="Swift Downloader" 13 | 14 | ARG TARBALL_URL=https://github.com/uraimo/buildSwiftOnARM/releases/download/5.1/swift-5.1-armv7-Ubuntu1804.tgz 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 " 28 | LABEL Description="Docker Container for Swift on Balena" 29 | 30 | # Dependencies from official Swift Dockerfile for Swift 5.1 on Ubuntu 18.04 31 | # https://github.com/apple/swift-docker/blob/fd1691a1f73b68fb8c8ef6072e716892be54a3d2/5.1/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 41 | -------------------------------------------------------------------------------- /Dockerfiles/device-base/generic-armv7ahf/ubuntu/xenial/4.2.3/run/Dockerfile: -------------------------------------------------------------------------------- 1 | # Autogenerated device Dockerfile based on architecture Dockerfile: wlisac/armv7hf-ubuntu-swift:4.2.3-xenial-run 2 | 3 | # wlisac/generic-armv7ahf-ubuntu-swift:4.2.3-xenial-run 4 | 5 | ARG BASE_IMAGE=balenalib/generic-armv7ahf-ubuntu:xenial-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/armv7hf-ubuntu:xenial as downloader 11 | 12 | LABEL Description="Swift Downloader" 13 | 14 | ARG TARBALL_URL=https://github.com/uraimo/buildSwiftOnARM/releases/download/4.2.3/swift-4.2.3-RPi23-Ubuntu1604.tgz 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 " 28 | LABEL Description="Docker Container for Swift on Balena" 29 | 30 | # There isn't an official Swift 4 slim Dockerfile to see dependencies 31 | # Dependencies from official Swift Dockerfile for Swift 5.0 on Ubuntu 16.04 32 | # https://github.com/apple/swift-docker/blob/bdd1aba3f1bc66139e1daff609a4037a7fa8cd8a/5.0/ubuntu/16.04/slim/Dockerfile 33 | 34 | # Needed to replace libcurl3 with libcurl4-nss-dev 35 | # https://github.com/uraimo/buildSwiftOnARM/tree/fc3ac47b2ce60b0098f44c7961f8295231698c99#dependencies 36 | 37 | RUN install_packages \ 38 | libatomic1 \ 39 | libbsd0 \ 40 | libcurl4-nss-dev \ 41 | libxml2 \ 42 | tzdata 43 | 44 | # Copy files from downloader to root 45 | COPY --from=downloader /swift/usr/lib/swift/linux /usr/lib/swift/linux 46 | -------------------------------------------------------------------------------- /Dockerfiles/device-base/generic-armv7ahf/ubuntu/xenial/5.0.1/run/Dockerfile: -------------------------------------------------------------------------------- 1 | # Autogenerated device Dockerfile based on architecture Dockerfile: wlisac/armv7hf-ubuntu-swift:5.0.1-xenial-run 2 | 3 | # wlisac/generic-armv7ahf-ubuntu-swift:5.0.1-xenial-run 4 | 5 | ARG BASE_IMAGE=balenalib/generic-armv7ahf-ubuntu:xenial-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/armv7hf-ubuntu:xenial as downloader 11 | 12 | LABEL Description="Swift Downloader" 13 | 14 | ARG TARBALL_URL=https://github.com/uraimo/buildSwiftOnARM/releases/download/5.0.1/swift-5.0.1-RPi23-Ubuntu1604.tgz 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 " 28 | LABEL Description="Docker Container for Swift on Balena" 29 | 30 | # Dependencies from official Swift Dockerfile for Swift 5.0 on Ubuntu 16.04 31 | # https://github.com/apple/swift-docker/blob/bdd1aba3f1bc66139e1daff609a4037a7fa8cd8a/5.0/ubuntu/16.04/slim/Dockerfile 32 | 33 | RUN install_packages \ 34 | libatomic1 \ 35 | libbsd0 \ 36 | libcurl3 \ 37 | libxml2 \ 38 | tzdata 39 | 40 | # Copy files from downloader to root 41 | COPY --from=downloader /swift/usr/lib/swift/linux /usr/lib/swift/linux 42 | -------------------------------------------------------------------------------- /Dockerfiles/device-base/generic-armv7ahf/ubuntu/xenial/5.0/run/Dockerfile: -------------------------------------------------------------------------------- 1 | # Autogenerated device Dockerfile based on architecture Dockerfile: wlisac/armv7hf-ubuntu-swift:5.0-xenial-run 2 | 3 | # wlisac/generic-armv7ahf-ubuntu-swift:5.0-xenial-run 4 | 5 | ARG BASE_IMAGE=balenalib/generic-armv7ahf-ubuntu:xenial-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/armv7hf-ubuntu:xenial as downloader 11 | 12 | LABEL Description="Swift Downloader" 13 | 14 | ARG TARBALL_URL=https://github.com/uraimo/buildSwiftOnARM/releases/download/5.0/swift-5.0-threads_hotfix-RPi23-Ubuntu1604.tgz 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 " 28 | LABEL Description="Docker Container for Swift on Balena" 29 | 30 | # Dependencies from official Swift Dockerfile for Swift 5.0 on Ubuntu 16.04 31 | # https://github.com/apple/swift-docker/blob/bdd1aba3f1bc66139e1daff609a4037a7fa8cd8a/5.0/ubuntu/16.04/slim/Dockerfile 32 | 33 | RUN install_packages \ 34 | libatomic1 \ 35 | libbsd0 \ 36 | libcurl3 \ 37 | libxml2 \ 38 | tzdata 39 | 40 | # Copy files from downloader to root 41 | COPY --from=downloader /swift/usr/lib/swift/linux /usr/lib/swift/linux 42 | -------------------------------------------------------------------------------- /Dockerfiles/device-base/generic-armv7ahf/ubuntu/xenial/5.1/run/Dockerfile: -------------------------------------------------------------------------------- 1 | # Autogenerated device Dockerfile based on architecture Dockerfile: wlisac/armv7hf-ubuntu-swift:5.1-xenial-run 2 | 3 | # wlisac/generic-armv7ahf-ubuntu-swift:5.1-xenial-run 4 | 5 | ARG BASE_IMAGE=balenalib/generic-armv7ahf-ubuntu:xenial-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/armv7hf-ubuntu:xenial as downloader 11 | 12 | LABEL Description="Swift Downloader" 13 | 14 | ARG TARBALL_URL=https://github.com/uraimo/buildSwiftOnARM/releases/download/5.1/swift-5.1-armv7-Ubuntu1604.tgz 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 " 28 | LABEL Description="Docker Container for Swift on Balena" 29 | 30 | # Dependencies from official Swift Dockerfile for Swift 5.1 on Ubuntu 16.04 31 | # https://github.com/apple/swift-docker/blob/fd1691a1f73b68fb8c8ef6072e716892be54a3d2/5.1/ubuntu/16.04/slim/Dockerfile 32 | 33 | RUN install_packages \ 34 | libatomic1 \ 35 | libcurl3 \ 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 41 | -------------------------------------------------------------------------------- /Dockerfiles/device-base/raspberry-pi/debian/stretch/4.2.3/run/Dockerfile: -------------------------------------------------------------------------------- 1 | # Autogenerated device Dockerfile based on architecture Dockerfile: wlisac/rpi-debian-swift:4.2.3-stretch-run 2 | 3 | # wlisac/raspberry-pi-debian-swift:4.2.3-stretch-run 4 | 5 | ARG BASE_IMAGE=balenalib/raspberry-pi-debian:stretch-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/rpi-debian:stretch as downloader 11 | 12 | LABEL Description="Swift Downloader" 13 | 14 | ARG TARBALL_URL=https://github.com/uraimo/buildSwiftOnARM/releases/download/4.2.3/swift-4.2.3-RPi01-RaspbianStretch.tgz 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 " 28 | LABEL Description="Docker Container for Swift on Balena" 29 | 30 | # There isn't an official Swift 4 slim Dockerfile to see dependencies 31 | # Dependencies from official Swift Dockerfile for Swift 5.0 on Ubuntu 16.04 32 | # https://github.com/apple/swift-docker/blob/bdd1aba3f1bc66139e1daff609a4037a7fa8cd8a/5.0/ubuntu/16.04/slim/Dockerfile 33 | 34 | RUN install_packages \ 35 | libatomic1 \ 36 | libbsd0 \ 37 | libcurl3 \ 38 | libxml2 \ 39 | tzdata 40 | 41 | # Copy files from downloader to root 42 | COPY --from=downloader /swift/usr/lib/swift/linux /usr/lib/swift/linux 43 | -------------------------------------------------------------------------------- /Dockerfiles/device-base/raspberry-pi/debian/stretch/5.0.1/run/Dockerfile: -------------------------------------------------------------------------------- 1 | # Autogenerated device Dockerfile based on architecture Dockerfile: wlisac/rpi-debian-swift:5.0.1-stretch-run 2 | 3 | # wlisac/raspberry-pi-debian-swift:5.0.1-stretch-run 4 | 5 | ARG BASE_IMAGE=balenalib/raspberry-pi-debian:stretch-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/rpi-debian:stretch as downloader 11 | 12 | LABEL Description="Swift Downloader" 13 | 14 | ARG TARBALL_URL=https://github.com/uraimo/buildSwiftOnARM/releases/download/5.0.1/swift-5.0.1-RPi0123-RaspbianStretch.tgz 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 " 28 | LABEL Description="Docker Container for Swift on Balena" 29 | 30 | # Dependencies from official Swift Dockerfile for Swift 5.0 on Ubuntu 16.04 31 | # https://github.com/apple/swift-docker/blob/bdd1aba3f1bc66139e1daff609a4037a7fa8cd8a/5.0/ubuntu/16.04/slim/Dockerfile 32 | 33 | RUN install_packages \ 34 | libatomic1 \ 35 | libbsd0 \ 36 | libcurl3 \ 37 | libxml2 \ 38 | tzdata 39 | 40 | # Copy files from downloader to root 41 | COPY --from=downloader /swift/usr/lib/swift/linux /usr/lib/swift/linux 42 | -------------------------------------------------------------------------------- /Dockerfiles/device-base/raspberry-pi/debian/stretch/5.0/run/Dockerfile: -------------------------------------------------------------------------------- 1 | # Autogenerated device Dockerfile based on architecture Dockerfile: wlisac/rpi-debian-swift:5.0-stretch-run 2 | 3 | # wlisac/raspberry-pi-debian-swift:5.0-stretch-run 4 | 5 | ARG BASE_IMAGE=balenalib/raspberry-pi-debian:stretch-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/rpi-debian:stretch as downloader 11 | 12 | LABEL Description="Swift Downloader" 13 | 14 | ARG TARBALL_URL=https://github.com/uraimo/buildSwiftOnARM/releases/download/5.0/swift-5.0-RPi01-RaspbianStretch.tgz 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 " 28 | LABEL Description="Docker Container for Swift on Balena" 29 | 30 | # Dependencies from official Swift Dockerfile for Swift 5.0 on Ubuntu 16.04 31 | # https://github.com/apple/swift-docker/blob/bdd1aba3f1bc66139e1daff609a4037a7fa8cd8a/5.0/ubuntu/16.04/slim/Dockerfile 32 | 33 | RUN install_packages \ 34 | libatomic1 \ 35 | libbsd0 \ 36 | libcurl3 \ 37 | libxml2 \ 38 | tzdata 39 | 40 | # Copy files from downloader to root 41 | COPY --from=downloader /swift/usr/lib/swift/linux /usr/lib/swift/linux 42 | -------------------------------------------------------------------------------- /Dockerfiles/device-base/raspberry-pi/debian/stretch/5.1/run/Dockerfile: -------------------------------------------------------------------------------- 1 | # Autogenerated device Dockerfile based on architecture Dockerfile: wlisac/rpi-debian-swift:5.1-stretch-run 2 | 3 | # wlisac/raspberry-pi-debian-swift:5.1-stretch-run 4 | 5 | ARG BASE_IMAGE=balenalib/raspberry-pi-debian:stretch-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/rpi-debian:stretch as downloader 11 | 12 | LABEL Description="Swift Downloader" 13 | 14 | ARG TARBALL_URL=https://github.com/uraimo/buildSwiftOnARM/releases/download/5.1/swift-5.1-armv6-RPi0123-RaspbianStretch.tgz 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 " 28 | LABEL Description="Docker Container for Swift on Balena" 29 | 30 | # Dependencies from official Swift Dockerfile for Swift 5.1 on Ubuntu 16.04 31 | # https://github.com/apple/swift-docker/blob/fd1691a1f73b68fb8c8ef6072e716892be54a3d2/5.1/ubuntu/16.04/slim/Dockerfile 32 | 33 | RUN install_packages \ 34 | libatomic1 \ 35 | libcurl3 \ 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 41 | -------------------------------------------------------------------------------- /Dockerfiles/device-base/raspberry-pi2/debian/stretch/4.2.3/run/Dockerfile: -------------------------------------------------------------------------------- 1 | # Autogenerated device Dockerfile based on architecture Dockerfile: wlisac/armv7hf-debian-swift:4.2.3-stretch-run 2 | 3 | # wlisac/raspberry-pi2-debian-swift:4.2.3-stretch-run 4 | 5 | ARG BASE_IMAGE=balenalib/raspberry-pi2-debian:stretch-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/armv7hf-debian:stretch as downloader 11 | 12 | LABEL Description="Swift Downloader" 13 | 14 | ARG TARBALL_URL=https://github.com/uraimo/buildSwiftOnARM/releases/download/4.2.3/swift-4.2.3-RPi23-RaspbianStretch.tgz 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 " 28 | LABEL Description="Docker Container for Swift on Balena" 29 | 30 | # There isn't an official Swift 4 slim Dockerfile to see dependencies 31 | # Dependencies from official Swift Dockerfile for Swift 5.0 on Ubuntu 16.04 32 | # https://github.com/apple/swift-docker/blob/bdd1aba3f1bc66139e1daff609a4037a7fa8cd8a/5.0/ubuntu/16.04/slim/Dockerfile 33 | 34 | RUN install_packages \ 35 | libatomic1 \ 36 | libbsd0 \ 37 | libcurl3 \ 38 | libxml2 \ 39 | tzdata 40 | 41 | # Copy files from downloader to root 42 | COPY --from=downloader /swift/usr/lib/swift/linux /usr/lib/swift/linux 43 | -------------------------------------------------------------------------------- /Dockerfiles/device-base/raspberry-pi2/debian/stretch/5.0.1/run/Dockerfile: -------------------------------------------------------------------------------- 1 | # Autogenerated device Dockerfile based on architecture Dockerfile: wlisac/armv7hf-debian-swift:5.0.1-stretch-run 2 | 3 | # wlisac/raspberry-pi2-debian-swift:5.0.1-stretch-run 4 | 5 | ARG BASE_IMAGE=balenalib/raspberry-pi2-debian:stretch-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/armv7hf-debian:stretch as downloader 11 | 12 | LABEL Description="Swift Downloader" 13 | 14 | ARG TARBALL_URL=https://github.com/uraimo/buildSwiftOnARM/releases/download/5.0.1/swift-5.0.1-RPi0123-RaspbianStretch.tgz 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 " 28 | LABEL Description="Docker Container for Swift on Balena" 29 | 30 | # Dependencies from official Swift Dockerfile for Swift 5.0 on Ubuntu 16.04 31 | # https://github.com/apple/swift-docker/blob/bdd1aba3f1bc66139e1daff609a4037a7fa8cd8a/5.0/ubuntu/16.04/slim/Dockerfile 32 | 33 | RUN install_packages \ 34 | libatomic1 \ 35 | libbsd0 \ 36 | libcurl3 \ 37 | libxml2 \ 38 | tzdata 39 | 40 | # Copy files from downloader to root 41 | COPY --from=downloader /swift/usr/lib/swift/linux /usr/lib/swift/linux 42 | -------------------------------------------------------------------------------- /Dockerfiles/device-base/raspberry-pi2/debian/stretch/5.0/run/Dockerfile: -------------------------------------------------------------------------------- 1 | # Autogenerated device Dockerfile based on architecture Dockerfile: wlisac/armv7hf-debian-swift:5.0-stretch-run 2 | 3 | # wlisac/raspberry-pi2-debian-swift:5.0-stretch-run 4 | 5 | ARG BASE_IMAGE=balenalib/raspberry-pi2-debian:stretch-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/armv7hf-debian:stretch as downloader 11 | 12 | LABEL Description="Swift Downloader" 13 | 14 | ARG TARBALL_URL=https://github.com/uraimo/buildSwiftOnARM/releases/download/5.0/swift-5.0-threads_hotfix-RPi23-RaspbianStretch.tgz 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 " 28 | LABEL Description="Docker Container for Swift on Balena" 29 | 30 | # Dependencies from official Swift Dockerfile for Swift 5.0 on Ubuntu 16.04 31 | # https://github.com/apple/swift-docker/blob/bdd1aba3f1bc66139e1daff609a4037a7fa8cd8a/5.0/ubuntu/16.04/slim/Dockerfile 32 | 33 | RUN install_packages \ 34 | libatomic1 \ 35 | libbsd0 \ 36 | libcurl3 \ 37 | libxml2 \ 38 | tzdata 39 | 40 | # Copy files from downloader to root 41 | COPY --from=downloader /swift/usr/lib/swift/linux /usr/lib/swift/linux 42 | -------------------------------------------------------------------------------- /Dockerfiles/device-base/raspberry-pi2/debian/stretch/5.1/run/Dockerfile: -------------------------------------------------------------------------------- 1 | # Autogenerated device Dockerfile based on architecture Dockerfile: wlisac/armv7hf-debian-swift:5.1-stretch-run 2 | 3 | # wlisac/raspberry-pi2-debian-swift:5.1-stretch-run 4 | 5 | ARG BASE_IMAGE=balenalib/raspberry-pi2-debian:stretch-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/armv7hf-debian:stretch as downloader 11 | 12 | LABEL Description="Swift Downloader" 13 | 14 | ARG TARBALL_URL=https://github.com/uraimo/buildSwiftOnARM/releases/download/5.1/swift-5.1-armv7-DebianStretch.tgz 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 " 28 | LABEL Description="Docker Container for Swift on Balena" 29 | 30 | # Dependencies from official Swift Dockerfile for Swift 5.1 on Ubuntu 16.04 31 | # https://github.com/apple/swift-docker/blob/fd1691a1f73b68fb8c8ef6072e716892be54a3d2/5.1/ubuntu/16.04/slim/Dockerfile 32 | 33 | RUN install_packages \ 34 | libatomic1 \ 35 | libcurl3 \ 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 41 | -------------------------------------------------------------------------------- /Dockerfiles/device-base/raspberry-pi2/ubuntu/bionic/4.2.3/run/Dockerfile: -------------------------------------------------------------------------------- 1 | # Autogenerated device Dockerfile based on architecture Dockerfile: wlisac/armv7hf-ubuntu-swift:4.2.3-bionic-run 2 | 3 | # wlisac/raspberry-pi2-ubuntu-swift:4.2.3-bionic-run 4 | 5 | ARG BASE_IMAGE=balenalib/raspberry-pi2-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/armv7hf-ubuntu:bionic as downloader 11 | 12 | LABEL Description="Swift Downloader" 13 | 14 | ARG TARBALL_URL=https://github.com/uraimo/buildSwiftOnARM/releases/download/4.2.3/swift-4.2.3-RPi23-Ubuntu1804.tgz 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 " 28 | LABEL Description="Docker Container for Swift on Balena" 29 | 30 | # There isn't an official Swift 4 slim Dockerfile to see dependencies 31 | # Dependencies from official Swift Dockerfile for Swift 5.0 on Ubuntu 18.04 32 | # https://github.com/apple/swift-docker/blob/bdd1aba3f1bc66139e1daff609a4037a7fa8cd8a/5.0/ubuntu/18.04/slim/Dockerfile 33 | 34 | RUN install_packages \ 35 | libatomic1 \ 36 | libbsd0 \ 37 | libcurl4 \ 38 | libxml2 \ 39 | tzdata 40 | 41 | # Copy files from downloader to root 42 | COPY --from=downloader /swift/usr/lib/swift/linux /usr/lib/swift/linux 43 | -------------------------------------------------------------------------------- /Dockerfiles/device-base/raspberry-pi2/ubuntu/bionic/5.0.1/run/Dockerfile: -------------------------------------------------------------------------------- 1 | # Autogenerated device Dockerfile based on architecture Dockerfile: wlisac/armv7hf-ubuntu-swift:5.0.1-bionic-run 2 | 3 | # wlisac/raspberry-pi2-ubuntu-swift:5.0.1-bionic-run 4 | 5 | ARG BASE_IMAGE=balenalib/raspberry-pi2-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/armv7hf-ubuntu:bionic as downloader 11 | 12 | LABEL Description="Swift Downloader" 13 | 14 | ARG TARBALL_URL=https://github.com/uraimo/buildSwiftOnARM/releases/download/5.0.1/swift-5.0.1-RPi23-Ubuntu1804.tgz 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 " 28 | LABEL Description="Docker Container for Swift on Balena" 29 | 30 | # Dependencies from official Swift Dockerfile for Swift 5.0 on Ubuntu 18.04 31 | # https://github.com/apple/swift-docker/blob/bdd1aba3f1bc66139e1daff609a4037a7fa8cd8a/5.0/ubuntu/18.04/slim/Dockerfile 32 | 33 | RUN install_packages \ 34 | libatomic1 \ 35 | libbsd0 \ 36 | libcurl4 \ 37 | libxml2 \ 38 | tzdata 39 | 40 | # Copy files from downloader to root 41 | COPY --from=downloader /swift/usr/lib/swift/linux /usr/lib/swift/linux 42 | -------------------------------------------------------------------------------- /Dockerfiles/device-base/raspberry-pi2/ubuntu/bionic/5.0/run/Dockerfile: -------------------------------------------------------------------------------- 1 | # Autogenerated device Dockerfile based on architecture Dockerfile: wlisac/armv7hf-ubuntu-swift:5.0-bionic-run 2 | 3 | # wlisac/raspberry-pi2-ubuntu-swift:5.0-bionic-run 4 | 5 | ARG BASE_IMAGE=balenalib/raspberry-pi2-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/armv7hf-ubuntu:bionic as downloader 11 | 12 | LABEL Description="Swift Downloader" 13 | 14 | ARG TARBALL_URL=https://github.com/uraimo/buildSwiftOnARM/releases/download/5.0/swift-5.0-threads_hotfix-RPi23-Ubuntu1804.tgz 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 " 28 | LABEL Description="Docker Container for Swift on Balena" 29 | 30 | # Dependencies from official Swift Dockerfile for Swift 5.0 on Ubuntu 18.04 31 | # https://github.com/apple/swift-docker/blob/bdd1aba3f1bc66139e1daff609a4037a7fa8cd8a/5.0/ubuntu/18.04/slim/Dockerfile 32 | 33 | RUN install_packages \ 34 | libatomic1 \ 35 | libbsd0 \ 36 | libcurl4 \ 37 | libxml2 \ 38 | tzdata 39 | 40 | # Copy files from downloader to root 41 | COPY --from=downloader /swift/usr/lib/swift/linux /usr/lib/swift/linux 42 | -------------------------------------------------------------------------------- /Dockerfiles/device-base/raspberry-pi2/ubuntu/bionic/5.1/build/Dockerfile: -------------------------------------------------------------------------------- 1 | # Autogenerated device Dockerfile based on architecture Dockerfile: wlisac/armv7hf-ubuntu-swift:5.1-bionic-build 2 | 3 | # wlisac/raspberry-pi2-ubuntu-swift:5.1-bionic-build 4 | 5 | ARG BASE_IMAGE=balenalib/raspberry-pi2-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/armv7hf-ubuntu:bionic as downloader 11 | 12 | LABEL Description="Swift Downloader" 13 | 14 | ARG TARBALL_URL=https://github.com/uraimo/buildSwiftOnARM/releases/download/5.1/swift-5.1-armv7-Ubuntu1804.tgz 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 " 28 | LABEL Description="Docker Container for Swift on Balena" 29 | 30 | # Dependencies from official Swift Dockerfile for Swift 5.1 on Ubuntu 18.04 31 | # https://github.com/apple/swift-docker/blob/fd1691a1f73b68fb8c8ef6072e716892be54a3d2/5.1/ubuntu/18.04/Dockerfile 32 | 33 | # Needed to add clang 34 | # https://github.com/uraimo/buildSwiftOnARM/blob/1be3c13d709724b48b418c6511a38c8f323378ec/README.md#dependencies 35 | 36 | RUN install_packages \ 37 | libatomic1 \ 38 | libcurl4 \ 39 | libxml2 \ 40 | libedit2 \ 41 | libsqlite3-0 \ 42 | libc6-dev \ 43 | binutils \ 44 | libgcc-5-dev \ 45 | libstdc++-5-dev \ 46 | libpython2.7 \ 47 | tzdata \ 48 | git \ 49 | pkg-config \ 50 | clang 51 | 52 | # Copy files from downloader to root 53 | COPY --from=downloader /swift / 54 | 55 | RUN swift --version 56 | -------------------------------------------------------------------------------- /Dockerfiles/device-base/raspberry-pi2/ubuntu/bionic/5.1/run/Dockerfile: -------------------------------------------------------------------------------- 1 | # Autogenerated device Dockerfile based on architecture Dockerfile: wlisac/armv7hf-ubuntu-swift:5.1-bionic-run 2 | 3 | # wlisac/raspberry-pi2-ubuntu-swift:5.1-bionic-run 4 | 5 | ARG BASE_IMAGE=balenalib/raspberry-pi2-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/armv7hf-ubuntu:bionic as downloader 11 | 12 | LABEL Description="Swift Downloader" 13 | 14 | ARG TARBALL_URL=https://github.com/uraimo/buildSwiftOnARM/releases/download/5.1/swift-5.1-armv7-Ubuntu1804.tgz 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 " 28 | LABEL Description="Docker Container for Swift on Balena" 29 | 30 | # Dependencies from official Swift Dockerfile for Swift 5.1 on Ubuntu 18.04 31 | # https://github.com/apple/swift-docker/blob/fd1691a1f73b68fb8c8ef6072e716892be54a3d2/5.1/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 41 | -------------------------------------------------------------------------------- /Dockerfiles/device-base/raspberry-pi2/ubuntu/xenial/4.2.3/run/Dockerfile: -------------------------------------------------------------------------------- 1 | # Autogenerated device Dockerfile based on architecture Dockerfile: wlisac/armv7hf-ubuntu-swift:4.2.3-xenial-run 2 | 3 | # wlisac/raspberry-pi2-ubuntu-swift:4.2.3-xenial-run 4 | 5 | ARG BASE_IMAGE=balenalib/raspberry-pi2-ubuntu:xenial-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/armv7hf-ubuntu:xenial as downloader 11 | 12 | LABEL Description="Swift Downloader" 13 | 14 | ARG TARBALL_URL=https://github.com/uraimo/buildSwiftOnARM/releases/download/4.2.3/swift-4.2.3-RPi23-Ubuntu1604.tgz 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 " 28 | LABEL Description="Docker Container for Swift on Balena" 29 | 30 | # There isn't an official Swift 4 slim Dockerfile to see dependencies 31 | # Dependencies from official Swift Dockerfile for Swift 5.0 on Ubuntu 16.04 32 | # https://github.com/apple/swift-docker/blob/bdd1aba3f1bc66139e1daff609a4037a7fa8cd8a/5.0/ubuntu/16.04/slim/Dockerfile 33 | 34 | # Needed to replace libcurl3 with libcurl4-nss-dev 35 | # https://github.com/uraimo/buildSwiftOnARM/tree/fc3ac47b2ce60b0098f44c7961f8295231698c99#dependencies 36 | 37 | RUN install_packages \ 38 | libatomic1 \ 39 | libbsd0 \ 40 | libcurl4-nss-dev \ 41 | libxml2 \ 42 | tzdata 43 | 44 | # Copy files from downloader to root 45 | COPY --from=downloader /swift/usr/lib/swift/linux /usr/lib/swift/linux 46 | -------------------------------------------------------------------------------- /Dockerfiles/device-base/raspberry-pi2/ubuntu/xenial/5.0.1/run/Dockerfile: -------------------------------------------------------------------------------- 1 | # Autogenerated device Dockerfile based on architecture Dockerfile: wlisac/armv7hf-ubuntu-swift:5.0.1-xenial-run 2 | 3 | # wlisac/raspberry-pi2-ubuntu-swift:5.0.1-xenial-run 4 | 5 | ARG BASE_IMAGE=balenalib/raspberry-pi2-ubuntu:xenial-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/armv7hf-ubuntu:xenial as downloader 11 | 12 | LABEL Description="Swift Downloader" 13 | 14 | ARG TARBALL_URL=https://github.com/uraimo/buildSwiftOnARM/releases/download/5.0.1/swift-5.0.1-RPi23-Ubuntu1604.tgz 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 " 28 | LABEL Description="Docker Container for Swift on Balena" 29 | 30 | # Dependencies from official Swift Dockerfile for Swift 5.0 on Ubuntu 16.04 31 | # https://github.com/apple/swift-docker/blob/bdd1aba3f1bc66139e1daff609a4037a7fa8cd8a/5.0/ubuntu/16.04/slim/Dockerfile 32 | 33 | RUN install_packages \ 34 | libatomic1 \ 35 | libbsd0 \ 36 | libcurl3 \ 37 | libxml2 \ 38 | tzdata 39 | 40 | # Copy files from downloader to root 41 | COPY --from=downloader /swift/usr/lib/swift/linux /usr/lib/swift/linux 42 | -------------------------------------------------------------------------------- /Dockerfiles/device-base/raspberry-pi2/ubuntu/xenial/5.0/run/Dockerfile: -------------------------------------------------------------------------------- 1 | # Autogenerated device Dockerfile based on architecture Dockerfile: wlisac/armv7hf-ubuntu-swift:5.0-xenial-run 2 | 3 | # wlisac/raspberry-pi2-ubuntu-swift:5.0-xenial-run 4 | 5 | ARG BASE_IMAGE=balenalib/raspberry-pi2-ubuntu:xenial-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/armv7hf-ubuntu:xenial as downloader 11 | 12 | LABEL Description="Swift Downloader" 13 | 14 | ARG TARBALL_URL=https://github.com/uraimo/buildSwiftOnARM/releases/download/5.0/swift-5.0-threads_hotfix-RPi23-Ubuntu1604.tgz 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 " 28 | LABEL Description="Docker Container for Swift on Balena" 29 | 30 | # Dependencies from official Swift Dockerfile for Swift 5.0 on Ubuntu 16.04 31 | # https://github.com/apple/swift-docker/blob/bdd1aba3f1bc66139e1daff609a4037a7fa8cd8a/5.0/ubuntu/16.04/slim/Dockerfile 32 | 33 | RUN install_packages \ 34 | libatomic1 \ 35 | libbsd0 \ 36 | libcurl3 \ 37 | libxml2 \ 38 | tzdata 39 | 40 | # Copy files from downloader to root 41 | COPY --from=downloader /swift/usr/lib/swift/linux /usr/lib/swift/linux 42 | -------------------------------------------------------------------------------- /Dockerfiles/device-base/raspberry-pi2/ubuntu/xenial/5.1/run/Dockerfile: -------------------------------------------------------------------------------- 1 | # Autogenerated device Dockerfile based on architecture Dockerfile: wlisac/armv7hf-ubuntu-swift:5.1-xenial-run 2 | 3 | # wlisac/raspberry-pi2-ubuntu-swift:5.1-xenial-run 4 | 5 | ARG BASE_IMAGE=balenalib/raspberry-pi2-ubuntu:xenial-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/armv7hf-ubuntu:xenial as downloader 11 | 12 | LABEL Description="Swift Downloader" 13 | 14 | ARG TARBALL_URL=https://github.com/uraimo/buildSwiftOnARM/releases/download/5.1/swift-5.1-armv7-Ubuntu1604.tgz 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 " 28 | LABEL Description="Docker Container for Swift on Balena" 29 | 30 | # Dependencies from official Swift Dockerfile for Swift 5.1 on Ubuntu 16.04 31 | # https://github.com/apple/swift-docker/blob/fd1691a1f73b68fb8c8ef6072e716892be54a3d2/5.1/ubuntu/16.04/slim/Dockerfile 32 | 33 | RUN install_packages \ 34 | libatomic1 \ 35 | libcurl3 \ 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 41 | -------------------------------------------------------------------------------- /Dockerfiles/device-base/raspberrypi0-2w-64/ubuntu/bionic/5.5.1/build/Dockerfile: -------------------------------------------------------------------------------- 1 | # Autogenerated device Dockerfile based on architecture Dockerfile: wlisac/aarch64-ubuntu-swift:5.5.1-bionic-build 2 | 3 | # wlisac/raspberrypi0-2w-64-ubuntu-swift:5.5.1-bionic-build 4 | 5 | ARG BASE_IMAGE=balenalib/raspberrypi0-2w-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 " 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 -------------------------------------------------------------------------------- /Dockerfiles/device-base/raspberrypi0-2w-64/ubuntu/bionic/5.5.1/run/Dockerfile: -------------------------------------------------------------------------------- 1 | # Autogenerated device Dockerfile based on architecture Dockerfile: wlisac/aarch64-ubuntu-swift:5.5.1-bionic-run 2 | 3 | # wlisac/raspberrypi0-2w-64-ubuntu-swift:5.5.1-bionic-run 4 | 5 | ARG BASE_IMAGE=balenalib/raspberrypi0-2w-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 " 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 41 | -------------------------------------------------------------------------------- /Dockerfiles/device-base/raspberrypi3-64/ubuntu/bionic/4.2.3/run/Dockerfile: -------------------------------------------------------------------------------- 1 | # Autogenerated device Dockerfile based on architecture Dockerfile: wlisac/aarch64-ubuntu-swift:4.2.3-bionic-run 2 | 3 | # wlisac/raspberrypi3-64-ubuntu-swift:4.2.3-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/v4.2.3-RELEASE/swift-4.2.3-RELEASE-aarch64-Ubuntu-18.04_2019-03-04.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 " 28 | LABEL Description="Docker Container for Swift on Balena" 29 | 30 | # There isn't an official Swift 4 slim Dockerfile to see dependencies 31 | # Dependencies from official Swift Dockerfile for Swift 5.0 on Ubuntu 18.04 32 | # https://github.com/apple/swift-docker/blob/bdd1aba3f1bc66139e1daff609a4037a7fa8cd8a/5.0/ubuntu/18.04/slim/Dockerfile 33 | 34 | RUN install_packages \ 35 | libatomic1 \ 36 | libbsd0 \ 37 | libcurl4 \ 38 | libxml2 \ 39 | tzdata 40 | 41 | # Copy files from downloader to root 42 | COPY --from=downloader /swift/usr/lib/swift/linux /usr/lib/swift/linux 43 | -------------------------------------------------------------------------------- /Dockerfiles/device-base/raspberrypi3-64/ubuntu/bionic/5.0.1/build/Dockerfile: -------------------------------------------------------------------------------- 1 | # Autogenerated device Dockerfile based on architecture Dockerfile: wlisac/aarch64-ubuntu-swift:5.0.1-bionic-build 2 | 3 | # wlisac/raspberrypi3-64-ubuntu-swift:5.0.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.0.1-RELEASE/swift-5.0.1-aarch64-RELEASE-Ubuntu-18.04-patched_2019-07-03.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 " 28 | LABEL Description="Docker Container for Swift on Balena" 29 | 30 | # Dependencies from official Swift Dockerfile for Swift 5.0 on Ubuntu 18.04 31 | # https://github.com/apple/swift-docker/blob/6812f217b405a5101ea3e8fce4d1cf09e3c8727b/5.0/ubuntu/18.04/Dockerfile 32 | 33 | RUN install_packages \ 34 | libatomic1 \ 35 | libbsd0 \ 36 | libcurl4 \ 37 | libxml2 \ 38 | libedit2 \ 39 | libsqlite3-0 \ 40 | libc6-dev \ 41 | binutils \ 42 | libgcc-5-dev \ 43 | libstdc++-5-dev \ 44 | libpython2.7 \ 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 53 | -------------------------------------------------------------------------------- /Dockerfiles/device-base/raspberrypi3-64/ubuntu/bionic/5.0.1/run/Dockerfile: -------------------------------------------------------------------------------- 1 | # Autogenerated device Dockerfile based on architecture Dockerfile: wlisac/aarch64-ubuntu-swift:5.0.1-bionic-run 2 | 3 | # wlisac/raspberrypi3-64-ubuntu-swift:5.0.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.0.1-RELEASE/swift-5.0.1-aarch64-RELEASE-Ubuntu-18.04_2019-05-17.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 " 28 | LABEL Description="Docker Container for Swift on Balena" 29 | 30 | # Dependencies from official Swift Dockerfile for Swift 5.0 on Ubuntu 18.04 31 | # https://github.com/apple/swift-docker/blob/bdd1aba3f1bc66139e1daff609a4037a7fa8cd8a/5.0/ubuntu/18.04/slim/Dockerfile 32 | 33 | RUN install_packages \ 34 | libatomic1 \ 35 | libbsd0 \ 36 | libcurl4 \ 37 | libxml2 \ 38 | tzdata 39 | 40 | # Copy files from downloader to root 41 | COPY --from=downloader /swift/usr/lib/swift/linux /usr/lib/swift/linux 42 | -------------------------------------------------------------------------------- /Dockerfiles/device-base/raspberrypi3-64/ubuntu/bionic/5.0/build/Dockerfile: -------------------------------------------------------------------------------- 1 | # Autogenerated device Dockerfile based on architecture Dockerfile: wlisac/aarch64-ubuntu-swift:5.0-bionic-build 2 | 3 | # wlisac/raspberrypi3-64-ubuntu-swift:5.0-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.0-RELEASE/swift-5.0-RELEASE-aarch64-Ubuntu-18.04_2019-03-26.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 " 28 | LABEL Description="Docker Container for Swift on Balena" 29 | 30 | # Dependencies from official Swift Dockerfile for Swift 5.0 on Ubuntu 18.04 31 | # https://github.com/apple/swift-docker/blob/6812f217b405a5101ea3e8fce4d1cf09e3c8727b/5.0/ubuntu/18.04/Dockerfile 32 | 33 | RUN install_packages \ 34 | libatomic1 \ 35 | libbsd0 \ 36 | libcurl4 \ 37 | libxml2 \ 38 | libedit2 \ 39 | libsqlite3-0 \ 40 | libc6-dev \ 41 | binutils \ 42 | libgcc-5-dev \ 43 | libstdc++-5-dev \ 44 | libpython2.7 \ 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 53 | -------------------------------------------------------------------------------- /Dockerfiles/device-base/raspberrypi3-64/ubuntu/bionic/5.0/run/Dockerfile: -------------------------------------------------------------------------------- 1 | # Autogenerated device Dockerfile based on architecture Dockerfile: wlisac/aarch64-ubuntu-swift:5.0-bionic-run 2 | 3 | # wlisac/raspberrypi3-64-ubuntu-swift:5.0-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.0-RELEASE/swift-5.0-RELEASE-aarch64-Ubuntu-18.04_2019-03-26.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 " 28 | LABEL Description="Docker Container for Swift on Balena" 29 | 30 | # Dependencies from official Swift Dockerfile for Swift 5.0 on Ubuntu 18.04 31 | # https://github.com/apple/swift-docker/blob/bdd1aba3f1bc66139e1daff609a4037a7fa8cd8a/5.0/ubuntu/18.04/slim/Dockerfile 32 | 33 | RUN install_packages \ 34 | libatomic1 \ 35 | libbsd0 \ 36 | libcurl4 \ 37 | libxml2 \ 38 | tzdata 39 | 40 | # Copy files from downloader to root 41 | COPY --from=downloader /swift/usr/lib/swift/linux /usr/lib/swift/linux 42 | -------------------------------------------------------------------------------- /Dockerfiles/device-base/raspberrypi3-64/ubuntu/bionic/5.1/build/Dockerfile: -------------------------------------------------------------------------------- 1 | # Autogenerated device Dockerfile based on architecture Dockerfile: wlisac/aarch64-ubuntu-swift:5.1-bionic-build 2 | 3 | # wlisac/raspberrypi3-64-ubuntu-swift: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.1-RELEASE/swift-5.1-aarch64-RELEASE-Ubuntu-18.04_2019-09-21.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 " 28 | LABEL Description="Docker Container for Swift on Balena" 29 | 30 | # Dependencies from official Swift Dockerfile for Swift 5.1 on Ubuntu 18.04 31 | # https://github.com/apple/swift-docker/blob/fd1691a1f73b68fb8c8ef6072e716892be54a3d2/5.1/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 | libpython2.7 \ 44 | tzdata \ 45 | git \ 46 | pkg-config 47 | 48 | # Copy files from downloader to root 49 | COPY --from=downloader /swift / 50 | 51 | RUN swift --version 52 | -------------------------------------------------------------------------------- /Dockerfiles/device-base/raspberrypi3-64/ubuntu/bionic/5.1/run/Dockerfile: -------------------------------------------------------------------------------- 1 | # Autogenerated device Dockerfile based on architecture Dockerfile: wlisac/aarch64-ubuntu-swift:5.1-bionic-run 2 | 3 | # wlisac/raspberrypi3-64-ubuntu-swift: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.1-RELEASE/swift-5.1-aarch64-RELEASE-Ubuntu-18.04_2019-09-21.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 " 28 | LABEL Description="Docker Container for Swift on Balena" 29 | 30 | # Dependencies from official Swift Dockerfile for Swift 5.1 on Ubuntu 18.04 31 | # https://github.com/apple/swift-docker/blob/fd1691a1f73b68fb8c8ef6072e716892be54a3d2/5.1/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 41 | -------------------------------------------------------------------------------- /Dockerfiles/device-base/raspberrypi3-64/ubuntu/bionic/5.5.1/build/Dockerfile: -------------------------------------------------------------------------------- 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 " 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 -------------------------------------------------------------------------------- /Dockerfiles/device-base/raspberrypi3-64/ubuntu/bionic/5.5.1/run/Dockerfile: -------------------------------------------------------------------------------- 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 " 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 41 | -------------------------------------------------------------------------------- /Dockerfiles/device-base/raspberrypi3-64/ubuntu/xenial/4.2.3/run/Dockerfile: -------------------------------------------------------------------------------- 1 | # Autogenerated device Dockerfile based on architecture Dockerfile: wlisac/aarch64-ubuntu-swift:4.2.3-xenial-run 2 | 3 | # wlisac/raspberrypi3-64-ubuntu-swift:4.2.3-xenial-run 4 | 5 | ARG BASE_IMAGE=balenalib/raspberrypi3-64-ubuntu:xenial-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:xenial as downloader 11 | 12 | LABEL Description="Swift Downloader" 13 | 14 | ARG TARBALL_URL=https://github.com/futurejones/swift-arm64/releases/download/v4.2.3-RELEASE/swift-4.2.3-RELEASE-aarch64-Ubuntu-16.04_2019-03-03.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 " 28 | LABEL Description="Docker Container for Swift on Balena" 29 | 30 | # There isn't an official Swift 4 slim Dockerfile to see dependencies 31 | # Dependencies from official Swift Dockerfile for Swift 5.0 on Ubuntu 16.04 32 | # https://github.com/apple/swift-docker/blob/bdd1aba3f1bc66139e1daff609a4037a7fa8cd8a/5.0/ubuntu/16.04/slim/Dockerfile 33 | 34 | RUN install_packages \ 35 | libatomic1 \ 36 | libbsd0 \ 37 | libcurl3 \ 38 | libxml2 \ 39 | tzdata 40 | 41 | # Copy files from downloader to root 42 | COPY --from=downloader /swift/usr/lib/swift/linux /usr/lib/swift/linux 43 | -------------------------------------------------------------------------------- /Dockerfiles/device-base/raspberrypi3-64/ubuntu/xenial/5.0.1/build/Dockerfile: -------------------------------------------------------------------------------- 1 | # Autogenerated device Dockerfile based on architecture Dockerfile: wlisac/aarch64-ubuntu-swift:5.0.1-xenial-build 2 | 3 | # wlisac/raspberrypi3-64-ubuntu-swift:5.0.1-xenial-build 4 | 5 | ARG BASE_IMAGE=balenalib/raspberrypi3-64-ubuntu:xenial-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:xenial as downloader 11 | 12 | LABEL Description="Swift Downloader" 13 | 14 | ARG TARBALL_URL=https://github.com/futurejones/swift-arm64/releases/download/v5.0.1-RELEASE/swift-5.0.1-aarch64-RELEASE-Ubuntu-16.04-patched_2019-07-03.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 " 28 | LABEL Description="Docker Container for Swift on Balena" 29 | 30 | # Dependencies from official Swift Dockerfile for Swift 5.0 on Ubuntu 16.04 31 | # https://github.com/apple/swift-docker/blob/6812f217b405a5101ea3e8fce4d1cf09e3c8727b/5.0/ubuntu/16.04/Dockerfile 32 | 33 | RUN install_packages \ 34 | libatomic1 \ 35 | libbsd0 \ 36 | libcurl3 \ 37 | libxml2 \ 38 | libedit2 \ 39 | libsqlite3-0 \ 40 | libc6-dev \ 41 | binutils \ 42 | libgcc-5-dev \ 43 | libstdc++-5-dev \ 44 | libpython2.7 \ 45 | tzdata \ 46 | git \ 47 | pkg-config \ 48 | libicu-dev 49 | 50 | # Copy files from downloader to root 51 | COPY --from=downloader /swift / 52 | 53 | RUN swift --version 54 | -------------------------------------------------------------------------------- /Dockerfiles/device-base/raspberrypi3-64/ubuntu/xenial/5.0.1/run/Dockerfile: -------------------------------------------------------------------------------- 1 | # Autogenerated device Dockerfile based on architecture Dockerfile: wlisac/aarch64-ubuntu-swift:5.0.1-xenial-run 2 | 3 | # wlisac/raspberrypi3-64-ubuntu-swift:5.0.1-xenial-run 4 | 5 | ARG BASE_IMAGE=balenalib/raspberrypi3-64-ubuntu:xenial-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:xenial as downloader 11 | 12 | LABEL Description="Swift Downloader" 13 | 14 | ARG TARBALL_URL=https://github.com/futurejones/swift-arm64/releases/download/v5.0.1-RELEASE/swift-5.0.1-aarch64-RELEASE-Ubuntu-16.04_2019-04-24.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 " 28 | LABEL Description="Docker Container for Swift on Balena" 29 | 30 | # Dependencies from official Swift Dockerfile for Swift 5.0 on Ubuntu 16.04 31 | # https://github.com/apple/swift-docker/blob/bdd1aba3f1bc66139e1daff609a4037a7fa8cd8a/5.0/ubuntu/16.04/slim/Dockerfile 32 | 33 | RUN install_packages \ 34 | libatomic1 \ 35 | libbsd0 \ 36 | libcurl3 \ 37 | libxml2 \ 38 | tzdata 39 | 40 | # Copy files from downloader to root 41 | COPY --from=downloader /swift/usr/lib/swift/linux /usr/lib/swift/linux 42 | -------------------------------------------------------------------------------- /Dockerfiles/device-base/raspberrypi3-64/ubuntu/xenial/5.0/build/Dockerfile: -------------------------------------------------------------------------------- 1 | # Autogenerated device Dockerfile based on architecture Dockerfile: wlisac/aarch64-ubuntu-swift:5.0-xenial-build 2 | 3 | # wlisac/raspberrypi3-64-ubuntu-swift:5.0-xenial-build 4 | 5 | ARG BASE_IMAGE=balenalib/raspberrypi3-64-ubuntu:xenial-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:xenial as downloader 11 | 12 | LABEL Description="Swift Downloader" 13 | 14 | ARG TARBALL_URL=https://github.com/futurejones/swift-arm64/releases/download/v5.0-RELEASE/swift-5.0-RELEASE-aarch64-Ubuntu-16.04_2019-03-26.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 " 28 | LABEL Description="Docker Container for Swift on Balena" 29 | 30 | # Dependencies from official Swift Dockerfile for Swift 5.0 on Ubuntu 16.04 31 | # https://github.com/apple/swift-docker/blob/6812f217b405a5101ea3e8fce4d1cf09e3c8727b/5.0/ubuntu/16.04/Dockerfile 32 | 33 | RUN install_packages \ 34 | libatomic1 \ 35 | libbsd0 \ 36 | libcurl3 \ 37 | libxml2 \ 38 | libedit2 \ 39 | libsqlite3-0 \ 40 | libc6-dev \ 41 | binutils \ 42 | libgcc-5-dev \ 43 | libstdc++-5-dev \ 44 | libpython2.7 \ 45 | tzdata \ 46 | git \ 47 | pkg-config \ 48 | libicu-dev 49 | 50 | # Copy files from downloader to root 51 | COPY --from=downloader /swift / 52 | 53 | RUN swift --version 54 | -------------------------------------------------------------------------------- /Dockerfiles/device-base/raspberrypi3-64/ubuntu/xenial/5.0/run/Dockerfile: -------------------------------------------------------------------------------- 1 | # Autogenerated device Dockerfile based on architecture Dockerfile: wlisac/aarch64-ubuntu-swift:5.0-xenial-run 2 | 3 | # wlisac/raspberrypi3-64-ubuntu-swift:5.0-xenial-run 4 | 5 | ARG BASE_IMAGE=balenalib/raspberrypi3-64-ubuntu:xenial-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:xenial as downloader 11 | 12 | LABEL Description="Swift Downloader" 13 | 14 | ARG TARBALL_URL=https://github.com/futurejones/swift-arm64/releases/download/v5.0-RELEASE/swift-5.0-RELEASE-aarch64-Ubuntu-16.04_2019-03-26.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 " 28 | LABEL Description="Docker Container for Swift on Balena" 29 | 30 | # Dependencies from official Swift Dockerfile for Swift 5.0 on Ubuntu 16.04 31 | # https://github.com/apple/swift-docker/blob/bdd1aba3f1bc66139e1daff609a4037a7fa8cd8a/5.0/ubuntu/16.04/slim/Dockerfile 32 | 33 | RUN install_packages \ 34 | libatomic1 \ 35 | libbsd0 \ 36 | libcurl3 \ 37 | libxml2 \ 38 | tzdata 39 | 40 | # Copy files from downloader to root 41 | COPY --from=downloader /swift/usr/lib/swift/linux /usr/lib/swift/linux 42 | -------------------------------------------------------------------------------- /Dockerfiles/device-base/raspberrypi3-64/ubuntu/xenial/5.1/build/Dockerfile: -------------------------------------------------------------------------------- 1 | # Autogenerated device Dockerfile based on architecture Dockerfile: wlisac/aarch64-ubuntu-swift:5.1-xenial-build 2 | 3 | # wlisac/raspberrypi3-64-ubuntu-swift:5.1-xenial-build 4 | 5 | ARG BASE_IMAGE=balenalib/raspberrypi3-64-ubuntu:xenial-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:xenial as downloader 11 | 12 | LABEL Description="Swift Downloader" 13 | 14 | ARG TARBALL_URL=https://github.com/futurejones/swift-arm64/releases/download/v5.1-RELEASE/swift-5.1-aarch64-RELEASE-Ubuntu-16.04_2019-09-24.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 " 28 | LABEL Description="Docker Container for Swift on Balena" 29 | 30 | # Dependencies from official Swift Dockerfile for Swift 5.1 on Ubuntu 16.04 31 | # https://github.com/apple/swift-docker/blob/fd1691a1f73b68fb8c8ef6072e716892be54a3d2/5.1/ubuntu/16.04/Dockerfile 32 | 33 | RUN install_packages \ 34 | libatomic1 \ 35 | libcurl3 \ 36 | libxml2 \ 37 | libedit2 \ 38 | libsqlite3-0 \ 39 | libc6-dev \ 40 | binutils \ 41 | libgcc-5-dev \ 42 | libstdc++-5-dev \ 43 | libpython2.7 \ 44 | tzdata \ 45 | git \ 46 | pkg-config 47 | 48 | # Copy files from downloader to root 49 | COPY --from=downloader /swift / 50 | 51 | RUN swift --version 52 | -------------------------------------------------------------------------------- /Dockerfiles/device-base/raspberrypi3-64/ubuntu/xenial/5.1/run/Dockerfile: -------------------------------------------------------------------------------- 1 | # Autogenerated device Dockerfile based on architecture Dockerfile: wlisac/aarch64-ubuntu-swift:5.1-xenial-run 2 | 3 | # wlisac/raspberrypi3-64-ubuntu-swift:5.1-xenial-run 4 | 5 | ARG BASE_IMAGE=balenalib/raspberrypi3-64-ubuntu:xenial-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:xenial as downloader 11 | 12 | LABEL Description="Swift Downloader" 13 | 14 | ARG TARBALL_URL=https://github.com/futurejones/swift-arm64/releases/download/v5.1-RELEASE/swift-5.1-aarch64-RELEASE-Ubuntu-16.04_2019-09-24.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 " 28 | LABEL Description="Docker Container for Swift on Balena" 29 | 30 | # Dependencies from official Swift Dockerfile for Swift 5.1 on Ubuntu 16.04 31 | # https://github.com/apple/swift-docker/blob/fd1691a1f73b68fb8c8ef6072e716892be54a3d2/5.1/ubuntu/16.04/slim/Dockerfile 32 | 33 | RUN install_packages \ 34 | libatomic1 \ 35 | libcurl3 \ 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 41 | -------------------------------------------------------------------------------- /Dockerfiles/device-base/raspberrypi3/debian/stretch/4.2.3/run/Dockerfile: -------------------------------------------------------------------------------- 1 | # Autogenerated device Dockerfile based on architecture Dockerfile: wlisac/armv7hf-debian-swift:4.2.3-stretch-run 2 | 3 | # wlisac/raspberrypi3-debian-swift:4.2.3-stretch-run 4 | 5 | ARG BASE_IMAGE=balenalib/raspberrypi3-debian:stretch-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/armv7hf-debian:stretch as downloader 11 | 12 | LABEL Description="Swift Downloader" 13 | 14 | ARG TARBALL_URL=https://github.com/uraimo/buildSwiftOnARM/releases/download/4.2.3/swift-4.2.3-RPi23-RaspbianStretch.tgz 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 " 28 | LABEL Description="Docker Container for Swift on Balena" 29 | 30 | # There isn't an official Swift 4 slim Dockerfile to see dependencies 31 | # Dependencies from official Swift Dockerfile for Swift 5.0 on Ubuntu 16.04 32 | # https://github.com/apple/swift-docker/blob/bdd1aba3f1bc66139e1daff609a4037a7fa8cd8a/5.0/ubuntu/16.04/slim/Dockerfile 33 | 34 | RUN install_packages \ 35 | libatomic1 \ 36 | libbsd0 \ 37 | libcurl3 \ 38 | libxml2 \ 39 | tzdata 40 | 41 | # Copy files from downloader to root 42 | COPY --from=downloader /swift/usr/lib/swift/linux /usr/lib/swift/linux 43 | -------------------------------------------------------------------------------- /Dockerfiles/device-base/raspberrypi3/debian/stretch/5.0.1/run/Dockerfile: -------------------------------------------------------------------------------- 1 | # Autogenerated device Dockerfile based on architecture Dockerfile: wlisac/armv7hf-debian-swift:5.0.1-stretch-run 2 | 3 | # wlisac/raspberrypi3-debian-swift:5.0.1-stretch-run 4 | 5 | ARG BASE_IMAGE=balenalib/raspberrypi3-debian:stretch-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/armv7hf-debian:stretch as downloader 11 | 12 | LABEL Description="Swift Downloader" 13 | 14 | ARG TARBALL_URL=https://github.com/uraimo/buildSwiftOnARM/releases/download/5.0.1/swift-5.0.1-RPi0123-RaspbianStretch.tgz 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 " 28 | LABEL Description="Docker Container for Swift on Balena" 29 | 30 | # Dependencies from official Swift Dockerfile for Swift 5.0 on Ubuntu 16.04 31 | # https://github.com/apple/swift-docker/blob/bdd1aba3f1bc66139e1daff609a4037a7fa8cd8a/5.0/ubuntu/16.04/slim/Dockerfile 32 | 33 | RUN install_packages \ 34 | libatomic1 \ 35 | libbsd0 \ 36 | libcurl3 \ 37 | libxml2 \ 38 | tzdata 39 | 40 | # Copy files from downloader to root 41 | COPY --from=downloader /swift/usr/lib/swift/linux /usr/lib/swift/linux 42 | -------------------------------------------------------------------------------- /Dockerfiles/device-base/raspberrypi3/debian/stretch/5.0/run/Dockerfile: -------------------------------------------------------------------------------- 1 | # Autogenerated device Dockerfile based on architecture Dockerfile: wlisac/armv7hf-debian-swift:5.0-stretch-run 2 | 3 | # wlisac/raspberrypi3-debian-swift:5.0-stretch-run 4 | 5 | ARG BASE_IMAGE=balenalib/raspberrypi3-debian:stretch-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/armv7hf-debian:stretch as downloader 11 | 12 | LABEL Description="Swift Downloader" 13 | 14 | ARG TARBALL_URL=https://github.com/uraimo/buildSwiftOnARM/releases/download/5.0/swift-5.0-threads_hotfix-RPi23-RaspbianStretch.tgz 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 " 28 | LABEL Description="Docker Container for Swift on Balena" 29 | 30 | # Dependencies from official Swift Dockerfile for Swift 5.0 on Ubuntu 16.04 31 | # https://github.com/apple/swift-docker/blob/bdd1aba3f1bc66139e1daff609a4037a7fa8cd8a/5.0/ubuntu/16.04/slim/Dockerfile 32 | 33 | RUN install_packages \ 34 | libatomic1 \ 35 | libbsd0 \ 36 | libcurl3 \ 37 | libxml2 \ 38 | tzdata 39 | 40 | # Copy files from downloader to root 41 | COPY --from=downloader /swift/usr/lib/swift/linux /usr/lib/swift/linux 42 | -------------------------------------------------------------------------------- /Dockerfiles/device-base/raspberrypi3/debian/stretch/5.1/run/Dockerfile: -------------------------------------------------------------------------------- 1 | # Autogenerated device Dockerfile based on architecture Dockerfile: wlisac/armv7hf-debian-swift:5.1-stretch-run 2 | 3 | # wlisac/raspberrypi3-debian-swift:5.1-stretch-run 4 | 5 | ARG BASE_IMAGE=balenalib/raspberrypi3-debian:stretch-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/armv7hf-debian:stretch as downloader 11 | 12 | LABEL Description="Swift Downloader" 13 | 14 | ARG TARBALL_URL=https://github.com/uraimo/buildSwiftOnARM/releases/download/5.1/swift-5.1-armv7-DebianStretch.tgz 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 " 28 | LABEL Description="Docker Container for Swift on Balena" 29 | 30 | # Dependencies from official Swift Dockerfile for Swift 5.1 on Ubuntu 16.04 31 | # https://github.com/apple/swift-docker/blob/fd1691a1f73b68fb8c8ef6072e716892be54a3d2/5.1/ubuntu/16.04/slim/Dockerfile 32 | 33 | RUN install_packages \ 34 | libatomic1 \ 35 | libcurl3 \ 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 41 | -------------------------------------------------------------------------------- /Dockerfiles/device-base/raspberrypi3/ubuntu/bionic/4.2.3/run/Dockerfile: -------------------------------------------------------------------------------- 1 | # Autogenerated device Dockerfile based on architecture Dockerfile: wlisac/armv7hf-ubuntu-swift:4.2.3-bionic-run 2 | 3 | # wlisac/raspberrypi3-ubuntu-swift:4.2.3-bionic-run 4 | 5 | ARG BASE_IMAGE=balenalib/raspberrypi3-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/armv7hf-ubuntu:bionic as downloader 11 | 12 | LABEL Description="Swift Downloader" 13 | 14 | ARG TARBALL_URL=https://github.com/uraimo/buildSwiftOnARM/releases/download/4.2.3/swift-4.2.3-RPi23-Ubuntu1804.tgz 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 " 28 | LABEL Description="Docker Container for Swift on Balena" 29 | 30 | # There isn't an official Swift 4 slim Dockerfile to see dependencies 31 | # Dependencies from official Swift Dockerfile for Swift 5.0 on Ubuntu 18.04 32 | # https://github.com/apple/swift-docker/blob/bdd1aba3f1bc66139e1daff609a4037a7fa8cd8a/5.0/ubuntu/18.04/slim/Dockerfile 33 | 34 | RUN install_packages \ 35 | libatomic1 \ 36 | libbsd0 \ 37 | libcurl4 \ 38 | libxml2 \ 39 | tzdata 40 | 41 | # Copy files from downloader to root 42 | COPY --from=downloader /swift/usr/lib/swift/linux /usr/lib/swift/linux 43 | -------------------------------------------------------------------------------- /Dockerfiles/device-base/raspberrypi3/ubuntu/bionic/5.0.1/run/Dockerfile: -------------------------------------------------------------------------------- 1 | # Autogenerated device Dockerfile based on architecture Dockerfile: wlisac/armv7hf-ubuntu-swift:5.0.1-bionic-run 2 | 3 | # wlisac/raspberrypi3-ubuntu-swift:5.0.1-bionic-run 4 | 5 | ARG BASE_IMAGE=balenalib/raspberrypi3-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/armv7hf-ubuntu:bionic as downloader 11 | 12 | LABEL Description="Swift Downloader" 13 | 14 | ARG TARBALL_URL=https://github.com/uraimo/buildSwiftOnARM/releases/download/5.0.1/swift-5.0.1-RPi23-Ubuntu1804.tgz 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 " 28 | LABEL Description="Docker Container for Swift on Balena" 29 | 30 | # Dependencies from official Swift Dockerfile for Swift 5.0 on Ubuntu 18.04 31 | # https://github.com/apple/swift-docker/blob/bdd1aba3f1bc66139e1daff609a4037a7fa8cd8a/5.0/ubuntu/18.04/slim/Dockerfile 32 | 33 | RUN install_packages \ 34 | libatomic1 \ 35 | libbsd0 \ 36 | libcurl4 \ 37 | libxml2 \ 38 | tzdata 39 | 40 | # Copy files from downloader to root 41 | COPY --from=downloader /swift/usr/lib/swift/linux /usr/lib/swift/linux 42 | -------------------------------------------------------------------------------- /Dockerfiles/device-base/raspberrypi3/ubuntu/bionic/5.0/run/Dockerfile: -------------------------------------------------------------------------------- 1 | # Autogenerated device Dockerfile based on architecture Dockerfile: wlisac/armv7hf-ubuntu-swift:5.0-bionic-run 2 | 3 | # wlisac/raspberrypi3-ubuntu-swift:5.0-bionic-run 4 | 5 | ARG BASE_IMAGE=balenalib/raspberrypi3-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/armv7hf-ubuntu:bionic as downloader 11 | 12 | LABEL Description="Swift Downloader" 13 | 14 | ARG TARBALL_URL=https://github.com/uraimo/buildSwiftOnARM/releases/download/5.0/swift-5.0-threads_hotfix-RPi23-Ubuntu1804.tgz 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 " 28 | LABEL Description="Docker Container for Swift on Balena" 29 | 30 | # Dependencies from official Swift Dockerfile for Swift 5.0 on Ubuntu 18.04 31 | # https://github.com/apple/swift-docker/blob/bdd1aba3f1bc66139e1daff609a4037a7fa8cd8a/5.0/ubuntu/18.04/slim/Dockerfile 32 | 33 | RUN install_packages \ 34 | libatomic1 \ 35 | libbsd0 \ 36 | libcurl4 \ 37 | libxml2 \ 38 | tzdata 39 | 40 | # Copy files from downloader to root 41 | COPY --from=downloader /swift/usr/lib/swift/linux /usr/lib/swift/linux 42 | -------------------------------------------------------------------------------- /Dockerfiles/device-base/raspberrypi3/ubuntu/bionic/5.1/build/Dockerfile: -------------------------------------------------------------------------------- 1 | # Autogenerated device Dockerfile based on architecture Dockerfile: wlisac/armv7hf-ubuntu-swift:5.1-bionic-build 2 | 3 | # wlisac/raspberrypi3-ubuntu-swift:5.1-bionic-build 4 | 5 | ARG BASE_IMAGE=balenalib/raspberrypi3-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/armv7hf-ubuntu:bionic as downloader 11 | 12 | LABEL Description="Swift Downloader" 13 | 14 | ARG TARBALL_URL=https://github.com/uraimo/buildSwiftOnARM/releases/download/5.1/swift-5.1-armv7-Ubuntu1804.tgz 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 " 28 | LABEL Description="Docker Container for Swift on Balena" 29 | 30 | # Dependencies from official Swift Dockerfile for Swift 5.1 on Ubuntu 18.04 31 | # https://github.com/apple/swift-docker/blob/fd1691a1f73b68fb8c8ef6072e716892be54a3d2/5.1/ubuntu/18.04/Dockerfile 32 | 33 | # Needed to add clang 34 | # https://github.com/uraimo/buildSwiftOnARM/blob/1be3c13d709724b48b418c6511a38c8f323378ec/README.md#dependencies 35 | 36 | RUN install_packages \ 37 | libatomic1 \ 38 | libcurl4 \ 39 | libxml2 \ 40 | libedit2 \ 41 | libsqlite3-0 \ 42 | libc6-dev \ 43 | binutils \ 44 | libgcc-5-dev \ 45 | libstdc++-5-dev \ 46 | libpython2.7 \ 47 | tzdata \ 48 | git \ 49 | pkg-config \ 50 | clang 51 | 52 | # Copy files from downloader to root 53 | COPY --from=downloader /swift / 54 | 55 | RUN swift --version 56 | -------------------------------------------------------------------------------- /Dockerfiles/device-base/raspberrypi3/ubuntu/bionic/5.1/run/Dockerfile: -------------------------------------------------------------------------------- 1 | # Autogenerated device Dockerfile based on architecture Dockerfile: wlisac/armv7hf-ubuntu-swift:5.1-bionic-run 2 | 3 | # wlisac/raspberrypi3-ubuntu-swift:5.1-bionic-run 4 | 5 | ARG BASE_IMAGE=balenalib/raspberrypi3-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/armv7hf-ubuntu:bionic as downloader 11 | 12 | LABEL Description="Swift Downloader" 13 | 14 | ARG TARBALL_URL=https://github.com/uraimo/buildSwiftOnARM/releases/download/5.1/swift-5.1-armv7-Ubuntu1804.tgz 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 " 28 | LABEL Description="Docker Container for Swift on Balena" 29 | 30 | # Dependencies from official Swift Dockerfile for Swift 5.1 on Ubuntu 18.04 31 | # https://github.com/apple/swift-docker/blob/fd1691a1f73b68fb8c8ef6072e716892be54a3d2/5.1/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 41 | -------------------------------------------------------------------------------- /Dockerfiles/device-base/raspberrypi3/ubuntu/xenial/4.2.3/run/Dockerfile: -------------------------------------------------------------------------------- 1 | # Autogenerated device Dockerfile based on architecture Dockerfile: wlisac/armv7hf-ubuntu-swift:4.2.3-xenial-run 2 | 3 | # wlisac/raspberrypi3-ubuntu-swift:4.2.3-xenial-run 4 | 5 | ARG BASE_IMAGE=balenalib/raspberrypi3-ubuntu:xenial-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/armv7hf-ubuntu:xenial as downloader 11 | 12 | LABEL Description="Swift Downloader" 13 | 14 | ARG TARBALL_URL=https://github.com/uraimo/buildSwiftOnARM/releases/download/4.2.3/swift-4.2.3-RPi23-Ubuntu1604.tgz 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 " 28 | LABEL Description="Docker Container for Swift on Balena" 29 | 30 | # There isn't an official Swift 4 slim Dockerfile to see dependencies 31 | # Dependencies from official Swift Dockerfile for Swift 5.0 on Ubuntu 16.04 32 | # https://github.com/apple/swift-docker/blob/bdd1aba3f1bc66139e1daff609a4037a7fa8cd8a/5.0/ubuntu/16.04/slim/Dockerfile 33 | 34 | # Needed to replace libcurl3 with libcurl4-nss-dev 35 | # https://github.com/uraimo/buildSwiftOnARM/tree/fc3ac47b2ce60b0098f44c7961f8295231698c99#dependencies 36 | 37 | RUN install_packages \ 38 | libatomic1 \ 39 | libbsd0 \ 40 | libcurl4-nss-dev \ 41 | libxml2 \ 42 | tzdata 43 | 44 | # Copy files from downloader to root 45 | COPY --from=downloader /swift/usr/lib/swift/linux /usr/lib/swift/linux 46 | -------------------------------------------------------------------------------- /Dockerfiles/device-base/raspberrypi3/ubuntu/xenial/5.0.1/run/Dockerfile: -------------------------------------------------------------------------------- 1 | # Autogenerated device Dockerfile based on architecture Dockerfile: wlisac/armv7hf-ubuntu-swift:5.0.1-xenial-run 2 | 3 | # wlisac/raspberrypi3-ubuntu-swift:5.0.1-xenial-run 4 | 5 | ARG BASE_IMAGE=balenalib/raspberrypi3-ubuntu:xenial-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/armv7hf-ubuntu:xenial as downloader 11 | 12 | LABEL Description="Swift Downloader" 13 | 14 | ARG TARBALL_URL=https://github.com/uraimo/buildSwiftOnARM/releases/download/5.0.1/swift-5.0.1-RPi23-Ubuntu1604.tgz 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 " 28 | LABEL Description="Docker Container for Swift on Balena" 29 | 30 | # Dependencies from official Swift Dockerfile for Swift 5.0 on Ubuntu 16.04 31 | # https://github.com/apple/swift-docker/blob/bdd1aba3f1bc66139e1daff609a4037a7fa8cd8a/5.0/ubuntu/16.04/slim/Dockerfile 32 | 33 | RUN install_packages \ 34 | libatomic1 \ 35 | libbsd0 \ 36 | libcurl3 \ 37 | libxml2 \ 38 | tzdata 39 | 40 | # Copy files from downloader to root 41 | COPY --from=downloader /swift/usr/lib/swift/linux /usr/lib/swift/linux 42 | -------------------------------------------------------------------------------- /Dockerfiles/device-base/raspberrypi3/ubuntu/xenial/5.0/run/Dockerfile: -------------------------------------------------------------------------------- 1 | # Autogenerated device Dockerfile based on architecture Dockerfile: wlisac/armv7hf-ubuntu-swift:5.0-xenial-run 2 | 3 | # wlisac/raspberrypi3-ubuntu-swift:5.0-xenial-run 4 | 5 | ARG BASE_IMAGE=balenalib/raspberrypi3-ubuntu:xenial-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/armv7hf-ubuntu:xenial as downloader 11 | 12 | LABEL Description="Swift Downloader" 13 | 14 | ARG TARBALL_URL=https://github.com/uraimo/buildSwiftOnARM/releases/download/5.0/swift-5.0-threads_hotfix-RPi23-Ubuntu1604.tgz 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 " 28 | LABEL Description="Docker Container for Swift on Balena" 29 | 30 | # Dependencies from official Swift Dockerfile for Swift 5.0 on Ubuntu 16.04 31 | # https://github.com/apple/swift-docker/blob/bdd1aba3f1bc66139e1daff609a4037a7fa8cd8a/5.0/ubuntu/16.04/slim/Dockerfile 32 | 33 | RUN install_packages \ 34 | libatomic1 \ 35 | libbsd0 \ 36 | libcurl3 \ 37 | libxml2 \ 38 | tzdata 39 | 40 | # Copy files from downloader to root 41 | COPY --from=downloader /swift/usr/lib/swift/linux /usr/lib/swift/linux 42 | -------------------------------------------------------------------------------- /Dockerfiles/device-base/raspberrypi3/ubuntu/xenial/5.1/run/Dockerfile: -------------------------------------------------------------------------------- 1 | # Autogenerated device Dockerfile based on architecture Dockerfile: wlisac/armv7hf-ubuntu-swift:5.1-xenial-run 2 | 3 | # wlisac/raspberrypi3-ubuntu-swift:5.1-xenial-run 4 | 5 | ARG BASE_IMAGE=balenalib/raspberrypi3-ubuntu:xenial-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/armv7hf-ubuntu:xenial as downloader 11 | 12 | LABEL Description="Swift Downloader" 13 | 14 | ARG TARBALL_URL=https://github.com/uraimo/buildSwiftOnARM/releases/download/5.1/swift-5.1-armv7-Ubuntu1604.tgz 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 " 28 | LABEL Description="Docker Container for Swift on Balena" 29 | 30 | # Dependencies from official Swift Dockerfile for Swift 5.1 on Ubuntu 16.04 31 | # https://github.com/apple/swift-docker/blob/fd1691a1f73b68fb8c8ef6072e716892be54a3d2/5.1/ubuntu/16.04/slim/Dockerfile 32 | 33 | RUN install_packages \ 34 | libatomic1 \ 35 | libcurl3 \ 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 41 | -------------------------------------------------------------------------------- /Dockerfiles/device-base/raspberrypi4-64/ubuntu/bionic/4.2.3/run/Dockerfile: -------------------------------------------------------------------------------- 1 | # Autogenerated device Dockerfile based on architecture Dockerfile: wlisac/aarch64-ubuntu-swift:4.2.3-bionic-run 2 | 3 | # wlisac/raspberrypi4-64-ubuntu-swift:4.2.3-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/v4.2.3-RELEASE/swift-4.2.3-RELEASE-aarch64-Ubuntu-18.04_2019-03-04.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 " 28 | LABEL Description="Docker Container for Swift on Balena" 29 | 30 | # There isn't an official Swift 4 slim Dockerfile to see dependencies 31 | # Dependencies from official Swift Dockerfile for Swift 5.0 on Ubuntu 18.04 32 | # https://github.com/apple/swift-docker/blob/bdd1aba3f1bc66139e1daff609a4037a7fa8cd8a/5.0/ubuntu/18.04/slim/Dockerfile 33 | 34 | RUN install_packages \ 35 | libatomic1 \ 36 | libbsd0 \ 37 | libcurl4 \ 38 | libxml2 \ 39 | tzdata 40 | 41 | # Copy files from downloader to root 42 | COPY --from=downloader /swift/usr/lib/swift/linux /usr/lib/swift/linux 43 | -------------------------------------------------------------------------------- /Dockerfiles/device-base/raspberrypi4-64/ubuntu/bionic/5.0.1/build/Dockerfile: -------------------------------------------------------------------------------- 1 | # Autogenerated device Dockerfile based on architecture Dockerfile: wlisac/aarch64-ubuntu-swift:5.0.1-bionic-build 2 | 3 | # wlisac/raspberrypi4-64-ubuntu-swift:5.0.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.0.1-RELEASE/swift-5.0.1-aarch64-RELEASE-Ubuntu-18.04-patched_2019-07-03.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 " 28 | LABEL Description="Docker Container for Swift on Balena" 29 | 30 | # Dependencies from official Swift Dockerfile for Swift 5.0 on Ubuntu 18.04 31 | # https://github.com/apple/swift-docker/blob/6812f217b405a5101ea3e8fce4d1cf09e3c8727b/5.0/ubuntu/18.04/Dockerfile 32 | 33 | RUN install_packages \ 34 | libatomic1 \ 35 | libbsd0 \ 36 | libcurl4 \ 37 | libxml2 \ 38 | libedit2 \ 39 | libsqlite3-0 \ 40 | libc6-dev \ 41 | binutils \ 42 | libgcc-5-dev \ 43 | libstdc++-5-dev \ 44 | libpython2.7 \ 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 53 | -------------------------------------------------------------------------------- /Dockerfiles/device-base/raspberrypi4-64/ubuntu/bionic/5.0.1/run/Dockerfile: -------------------------------------------------------------------------------- 1 | # Autogenerated device Dockerfile based on architecture Dockerfile: wlisac/aarch64-ubuntu-swift:5.0.1-bionic-run 2 | 3 | # wlisac/raspberrypi4-64-ubuntu-swift:5.0.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.0.1-RELEASE/swift-5.0.1-aarch64-RELEASE-Ubuntu-18.04_2019-05-17.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 " 28 | LABEL Description="Docker Container for Swift on Balena" 29 | 30 | # Dependencies from official Swift Dockerfile for Swift 5.0 on Ubuntu 18.04 31 | # https://github.com/apple/swift-docker/blob/bdd1aba3f1bc66139e1daff609a4037a7fa8cd8a/5.0/ubuntu/18.04/slim/Dockerfile 32 | 33 | RUN install_packages \ 34 | libatomic1 \ 35 | libbsd0 \ 36 | libcurl4 \ 37 | libxml2 \ 38 | tzdata 39 | 40 | # Copy files from downloader to root 41 | COPY --from=downloader /swift/usr/lib/swift/linux /usr/lib/swift/linux 42 | -------------------------------------------------------------------------------- /Dockerfiles/device-base/raspberrypi4-64/ubuntu/bionic/5.0/build/Dockerfile: -------------------------------------------------------------------------------- 1 | # Autogenerated device Dockerfile based on architecture Dockerfile: wlisac/aarch64-ubuntu-swift:5.0-bionic-build 2 | 3 | # wlisac/raspberrypi4-64-ubuntu-swift:5.0-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.0-RELEASE/swift-5.0-RELEASE-aarch64-Ubuntu-18.04_2019-03-26.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 " 28 | LABEL Description="Docker Container for Swift on Balena" 29 | 30 | # Dependencies from official Swift Dockerfile for Swift 5.0 on Ubuntu 18.04 31 | # https://github.com/apple/swift-docker/blob/6812f217b405a5101ea3e8fce4d1cf09e3c8727b/5.0/ubuntu/18.04/Dockerfile 32 | 33 | RUN install_packages \ 34 | libatomic1 \ 35 | libbsd0 \ 36 | libcurl4 \ 37 | libxml2 \ 38 | libedit2 \ 39 | libsqlite3-0 \ 40 | libc6-dev \ 41 | binutils \ 42 | libgcc-5-dev \ 43 | libstdc++-5-dev \ 44 | libpython2.7 \ 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 53 | -------------------------------------------------------------------------------- /Dockerfiles/device-base/raspberrypi4-64/ubuntu/bionic/5.0/run/Dockerfile: -------------------------------------------------------------------------------- 1 | # Autogenerated device Dockerfile based on architecture Dockerfile: wlisac/aarch64-ubuntu-swift:5.0-bionic-run 2 | 3 | # wlisac/raspberrypi4-64-ubuntu-swift:5.0-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.0-RELEASE/swift-5.0-RELEASE-aarch64-Ubuntu-18.04_2019-03-26.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 " 28 | LABEL Description="Docker Container for Swift on Balena" 29 | 30 | # Dependencies from official Swift Dockerfile for Swift 5.0 on Ubuntu 18.04 31 | # https://github.com/apple/swift-docker/blob/bdd1aba3f1bc66139e1daff609a4037a7fa8cd8a/5.0/ubuntu/18.04/slim/Dockerfile 32 | 33 | RUN install_packages \ 34 | libatomic1 \ 35 | libbsd0 \ 36 | libcurl4 \ 37 | libxml2 \ 38 | tzdata 39 | 40 | # Copy files from downloader to root 41 | COPY --from=downloader /swift/usr/lib/swift/linux /usr/lib/swift/linux 42 | -------------------------------------------------------------------------------- /Dockerfiles/device-base/raspberrypi4-64/ubuntu/bionic/5.1/build/Dockerfile: -------------------------------------------------------------------------------- 1 | # Autogenerated device Dockerfile based on architecture Dockerfile: wlisac/aarch64-ubuntu-swift:5.1-bionic-build 2 | 3 | # wlisac/raspberrypi4-64-ubuntu-swift: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.1-RELEASE/swift-5.1-aarch64-RELEASE-Ubuntu-18.04_2019-09-21.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 " 28 | LABEL Description="Docker Container for Swift on Balena" 29 | 30 | # Dependencies from official Swift Dockerfile for Swift 5.1 on Ubuntu 18.04 31 | # https://github.com/apple/swift-docker/blob/fd1691a1f73b68fb8c8ef6072e716892be54a3d2/5.1/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 | libpython2.7 \ 44 | tzdata \ 45 | git \ 46 | pkg-config 47 | 48 | # Copy files from downloader to root 49 | COPY --from=downloader /swift / 50 | 51 | RUN swift --version 52 | -------------------------------------------------------------------------------- /Dockerfiles/device-base/raspberrypi4-64/ubuntu/bionic/5.1/run/Dockerfile: -------------------------------------------------------------------------------- 1 | # Autogenerated device Dockerfile based on architecture Dockerfile: wlisac/aarch64-ubuntu-swift:5.1-bionic-run 2 | 3 | # wlisac/raspberrypi4-64-ubuntu-swift: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.1-RELEASE/swift-5.1-aarch64-RELEASE-Ubuntu-18.04_2019-09-21.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 " 28 | LABEL Description="Docker Container for Swift on Balena" 29 | 30 | # Dependencies from official Swift Dockerfile for Swift 5.1 on Ubuntu 18.04 31 | # https://github.com/apple/swift-docker/blob/fd1691a1f73b68fb8c8ef6072e716892be54a3d2/5.1/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 41 | -------------------------------------------------------------------------------- /Dockerfiles/device-base/raspberrypi4-64/ubuntu/bionic/5.5.1/build/Dockerfile: -------------------------------------------------------------------------------- 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 " 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 -------------------------------------------------------------------------------- /Dockerfiles/device-base/raspberrypi4-64/ubuntu/bionic/5.5.1/run/Dockerfile: -------------------------------------------------------------------------------- 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 " 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 41 | -------------------------------------------------------------------------------- /Dockerfiles/device-base/raspberrypi4-64/ubuntu/xenial/4.2.3/run/Dockerfile: -------------------------------------------------------------------------------- 1 | # Autogenerated device Dockerfile based on architecture Dockerfile: wlisac/aarch64-ubuntu-swift:4.2.3-xenial-run 2 | 3 | # wlisac/raspberrypi4-64-ubuntu-swift:4.2.3-xenial-run 4 | 5 | ARG BASE_IMAGE=balenalib/raspberrypi4-64-ubuntu:xenial-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:xenial as downloader 11 | 12 | LABEL Description="Swift Downloader" 13 | 14 | ARG TARBALL_URL=https://github.com/futurejones/swift-arm64/releases/download/v4.2.3-RELEASE/swift-4.2.3-RELEASE-aarch64-Ubuntu-16.04_2019-03-03.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 " 28 | LABEL Description="Docker Container for Swift on Balena" 29 | 30 | # There isn't an official Swift 4 slim Dockerfile to see dependencies 31 | # Dependencies from official Swift Dockerfile for Swift 5.0 on Ubuntu 16.04 32 | # https://github.com/apple/swift-docker/blob/bdd1aba3f1bc66139e1daff609a4037a7fa8cd8a/5.0/ubuntu/16.04/slim/Dockerfile 33 | 34 | RUN install_packages \ 35 | libatomic1 \ 36 | libbsd0 \ 37 | libcurl3 \ 38 | libxml2 \ 39 | tzdata 40 | 41 | # Copy files from downloader to root 42 | COPY --from=downloader /swift/usr/lib/swift/linux /usr/lib/swift/linux 43 | -------------------------------------------------------------------------------- /Dockerfiles/device-base/raspberrypi4-64/ubuntu/xenial/5.0.1/build/Dockerfile: -------------------------------------------------------------------------------- 1 | # Autogenerated device Dockerfile based on architecture Dockerfile: wlisac/aarch64-ubuntu-swift:5.0.1-xenial-build 2 | 3 | # wlisac/raspberrypi4-64-ubuntu-swift:5.0.1-xenial-build 4 | 5 | ARG BASE_IMAGE=balenalib/raspberrypi4-64-ubuntu:xenial-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:xenial as downloader 11 | 12 | LABEL Description="Swift Downloader" 13 | 14 | ARG TARBALL_URL=https://github.com/futurejones/swift-arm64/releases/download/v5.0.1-RELEASE/swift-5.0.1-aarch64-RELEASE-Ubuntu-16.04-patched_2019-07-03.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 " 28 | LABEL Description="Docker Container for Swift on Balena" 29 | 30 | # Dependencies from official Swift Dockerfile for Swift 5.0 on Ubuntu 16.04 31 | # https://github.com/apple/swift-docker/blob/6812f217b405a5101ea3e8fce4d1cf09e3c8727b/5.0/ubuntu/16.04/Dockerfile 32 | 33 | RUN install_packages \ 34 | libatomic1 \ 35 | libbsd0 \ 36 | libcurl3 \ 37 | libxml2 \ 38 | libedit2 \ 39 | libsqlite3-0 \ 40 | libc6-dev \ 41 | binutils \ 42 | libgcc-5-dev \ 43 | libstdc++-5-dev \ 44 | libpython2.7 \ 45 | tzdata \ 46 | git \ 47 | pkg-config \ 48 | libicu-dev 49 | 50 | # Copy files from downloader to root 51 | COPY --from=downloader /swift / 52 | 53 | RUN swift --version 54 | -------------------------------------------------------------------------------- /Dockerfiles/device-base/raspberrypi4-64/ubuntu/xenial/5.0.1/run/Dockerfile: -------------------------------------------------------------------------------- 1 | # Autogenerated device Dockerfile based on architecture Dockerfile: wlisac/aarch64-ubuntu-swift:5.0.1-xenial-run 2 | 3 | # wlisac/raspberrypi4-64-ubuntu-swift:5.0.1-xenial-run 4 | 5 | ARG BASE_IMAGE=balenalib/raspberrypi4-64-ubuntu:xenial-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:xenial as downloader 11 | 12 | LABEL Description="Swift Downloader" 13 | 14 | ARG TARBALL_URL=https://github.com/futurejones/swift-arm64/releases/download/v5.0.1-RELEASE/swift-5.0.1-aarch64-RELEASE-Ubuntu-16.04_2019-04-24.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 " 28 | LABEL Description="Docker Container for Swift on Balena" 29 | 30 | # Dependencies from official Swift Dockerfile for Swift 5.0 on Ubuntu 16.04 31 | # https://github.com/apple/swift-docker/blob/bdd1aba3f1bc66139e1daff609a4037a7fa8cd8a/5.0/ubuntu/16.04/slim/Dockerfile 32 | 33 | RUN install_packages \ 34 | libatomic1 \ 35 | libbsd0 \ 36 | libcurl3 \ 37 | libxml2 \ 38 | tzdata 39 | 40 | # Copy files from downloader to root 41 | COPY --from=downloader /swift/usr/lib/swift/linux /usr/lib/swift/linux 42 | -------------------------------------------------------------------------------- /Dockerfiles/device-base/raspberrypi4-64/ubuntu/xenial/5.0/build/Dockerfile: -------------------------------------------------------------------------------- 1 | # Autogenerated device Dockerfile based on architecture Dockerfile: wlisac/aarch64-ubuntu-swift:5.0-xenial-build 2 | 3 | # wlisac/raspberrypi4-64-ubuntu-swift:5.0-xenial-build 4 | 5 | ARG BASE_IMAGE=balenalib/raspberrypi4-64-ubuntu:xenial-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:xenial as downloader 11 | 12 | LABEL Description="Swift Downloader" 13 | 14 | ARG TARBALL_URL=https://github.com/futurejones/swift-arm64/releases/download/v5.0-RELEASE/swift-5.0-RELEASE-aarch64-Ubuntu-16.04_2019-03-26.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 " 28 | LABEL Description="Docker Container for Swift on Balena" 29 | 30 | # Dependencies from official Swift Dockerfile for Swift 5.0 on Ubuntu 16.04 31 | # https://github.com/apple/swift-docker/blob/6812f217b405a5101ea3e8fce4d1cf09e3c8727b/5.0/ubuntu/16.04/Dockerfile 32 | 33 | RUN install_packages \ 34 | libatomic1 \ 35 | libbsd0 \ 36 | libcurl3 \ 37 | libxml2 \ 38 | libedit2 \ 39 | libsqlite3-0 \ 40 | libc6-dev \ 41 | binutils \ 42 | libgcc-5-dev \ 43 | libstdc++-5-dev \ 44 | libpython2.7 \ 45 | tzdata \ 46 | git \ 47 | pkg-config \ 48 | libicu-dev 49 | 50 | # Copy files from downloader to root 51 | COPY --from=downloader /swift / 52 | 53 | RUN swift --version 54 | -------------------------------------------------------------------------------- /Dockerfiles/device-base/raspberrypi4-64/ubuntu/xenial/5.0/run/Dockerfile: -------------------------------------------------------------------------------- 1 | # Autogenerated device Dockerfile based on architecture Dockerfile: wlisac/aarch64-ubuntu-swift:5.0-xenial-run 2 | 3 | # wlisac/raspberrypi4-64-ubuntu-swift:5.0-xenial-run 4 | 5 | ARG BASE_IMAGE=balenalib/raspberrypi4-64-ubuntu:xenial-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:xenial as downloader 11 | 12 | LABEL Description="Swift Downloader" 13 | 14 | ARG TARBALL_URL=https://github.com/futurejones/swift-arm64/releases/download/v5.0-RELEASE/swift-5.0-RELEASE-aarch64-Ubuntu-16.04_2019-03-26.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 " 28 | LABEL Description="Docker Container for Swift on Balena" 29 | 30 | # Dependencies from official Swift Dockerfile for Swift 5.0 on Ubuntu 16.04 31 | # https://github.com/apple/swift-docker/blob/bdd1aba3f1bc66139e1daff609a4037a7fa8cd8a/5.0/ubuntu/16.04/slim/Dockerfile 32 | 33 | RUN install_packages \ 34 | libatomic1 \ 35 | libbsd0 \ 36 | libcurl3 \ 37 | libxml2 \ 38 | tzdata 39 | 40 | # Copy files from downloader to root 41 | COPY --from=downloader /swift/usr/lib/swift/linux /usr/lib/swift/linux 42 | -------------------------------------------------------------------------------- /Dockerfiles/device-base/raspberrypi4-64/ubuntu/xenial/5.1/build/Dockerfile: -------------------------------------------------------------------------------- 1 | # Autogenerated device Dockerfile based on architecture Dockerfile: wlisac/aarch64-ubuntu-swift:5.1-xenial-build 2 | 3 | # wlisac/raspberrypi4-64-ubuntu-swift:5.1-xenial-build 4 | 5 | ARG BASE_IMAGE=balenalib/raspberrypi4-64-ubuntu:xenial-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:xenial as downloader 11 | 12 | LABEL Description="Swift Downloader" 13 | 14 | ARG TARBALL_URL=https://github.com/futurejones/swift-arm64/releases/download/v5.1-RELEASE/swift-5.1-aarch64-RELEASE-Ubuntu-16.04_2019-09-24.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 " 28 | LABEL Description="Docker Container for Swift on Balena" 29 | 30 | # Dependencies from official Swift Dockerfile for Swift 5.1 on Ubuntu 16.04 31 | # https://github.com/apple/swift-docker/blob/fd1691a1f73b68fb8c8ef6072e716892be54a3d2/5.1/ubuntu/16.04/Dockerfile 32 | 33 | RUN install_packages \ 34 | libatomic1 \ 35 | libcurl3 \ 36 | libxml2 \ 37 | libedit2 \ 38 | libsqlite3-0 \ 39 | libc6-dev \ 40 | binutils \ 41 | libgcc-5-dev \ 42 | libstdc++-5-dev \ 43 | libpython2.7 \ 44 | tzdata \ 45 | git \ 46 | pkg-config 47 | 48 | # Copy files from downloader to root 49 | COPY --from=downloader /swift / 50 | 51 | RUN swift --version 52 | -------------------------------------------------------------------------------- /Dockerfiles/device-base/raspberrypi4-64/ubuntu/xenial/5.1/run/Dockerfile: -------------------------------------------------------------------------------- 1 | # Autogenerated device Dockerfile based on architecture Dockerfile: wlisac/aarch64-ubuntu-swift:5.1-xenial-run 2 | 3 | # wlisac/raspberrypi4-64-ubuntu-swift:5.1-xenial-run 4 | 5 | ARG BASE_IMAGE=balenalib/raspberrypi4-64-ubuntu:xenial-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:xenial as downloader 11 | 12 | LABEL Description="Swift Downloader" 13 | 14 | ARG TARBALL_URL=https://github.com/futurejones/swift-arm64/releases/download/v5.1-RELEASE/swift-5.1-aarch64-RELEASE-Ubuntu-16.04_2019-09-24.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 " 28 | LABEL Description="Docker Container for Swift on Balena" 29 | 30 | # Dependencies from official Swift Dockerfile for Swift 5.1 on Ubuntu 16.04 31 | # https://github.com/apple/swift-docker/blob/fd1691a1f73b68fb8c8ef6072e716892be54a3d2/5.1/ubuntu/16.04/slim/Dockerfile 32 | 33 | RUN install_packages \ 34 | libatomic1 \ 35 | libcurl3 \ 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 41 | -------------------------------------------------------------------------------- /Documentation/Device List.md: -------------------------------------------------------------------------------- 1 | # Device Names and Architectures 2 | 3 | Swift on Balena Docker images support a subset of [Balena's devices and architectures](https://www.balena.io/docs/reference/base-images/devicetypes). 4 | 5 | | Device Name | Balena Device Type | Balena Architecture | 6 | |---------------------------------------------|--------------------|---------------------| 7 | | Raspberry Pi (v1 or Zero) | raspberry-pi | rpi | 8 | | Raspberry Pi Zero 2 W (64-bit OS) | raspberrypi0-2w-64 | aarch64 | 9 | | Raspberry Pi 2 | raspberry-pi2 | armv7hf | 10 | | Raspberry Pi 3 | raspberrypi3 | armv7hf | 11 | | Raspberry Pi 3 (64-bit OS) | raspberrypi3-64 | aarch64 | 12 | | Raspberry Pi 4 (64-bit OS) | raspberrypi4-64 | aarch64 | 13 | | Generic ARMv7-a HF | generic-armv7ahf | armv7hf | 14 | | Generic AARCH64 (ARMv8) | generic-aarch64 | aarch64 | 15 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2019 Will Lisac 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. -------------------------------------------------------------------------------- /Package.swift: -------------------------------------------------------------------------------- 1 | // swift-tools-version:5.0 2 | // The swift-tools-version declares the minimum version of Swift required to build this package. 3 | 4 | import PackageDescription 5 | 6 | let package = Package( 7 | name: "SwiftOnBalena", 8 | platforms: [ 9 | .macOS(.v10_13) 10 | ], 11 | dependencies: [ 12 | .package(url: "https://github.com/kylef/Commander.git", from: "0.8.0"), 13 | .package(url: "https://github.com/kareman/SwiftShell", from: "5.0.0"), 14 | .package(url: "https://github.com/JohnSundell/Files.git", from: "3.1.0"), 15 | .package(url: "https://github.com/mxcl/Version.git", from: "1.0.0"), 16 | .package(url: "https://github.com/eneko/MarkdownGenerator.git", from: "1.0.0") 17 | ], 18 | targets: [ 19 | .target( 20 | name: "Run", 21 | dependencies: [ 22 | "Commander", 23 | "SwiftOnBalena" 24 | ]), 25 | .target( 26 | name: "SwiftOnBalena", 27 | dependencies: [ 28 | "SwiftShell", 29 | "Files", 30 | "MarkdownGenerator", 31 | "Version" 32 | ]) 33 | ] 34 | ) 35 | -------------------------------------------------------------------------------- /Sources/SwiftOnBalena/DockerHost.swift: -------------------------------------------------------------------------------- 1 | // 2 | // DockerHost.swift 3 | // SwiftOnBalena 4 | // 5 | // Created by Will Lisac on 5/11/19. 6 | // 7 | 8 | import Foundation 9 | 10 | enum DockerHost { 11 | static func host(for architecture: Architecture) -> String { 12 | switch architecture { 13 | case .aarch64: 14 | return "6e4f550.local" 15 | case .armv7hf: 16 | return "4184b8e.local" 17 | case .rpi: 18 | return "0dc92cf.local" 19 | } 20 | } 21 | } 22 | --------------------------------------------------------------------------------