GitXplorerGitXplorer
h

dockSwiftOnARM

public
121 stars
40 forks
0 issues

Commits

List of commits on branch main.
Verified
1bf4fdc1eb32beced40cbd18c3db6e4b86005e7e

Add 5.7.2 images

hhelje5 committed 2 years ago
Verified
c15e435aef80fca7c69a1fd18c6709e306457467

Add Swift 5.5.3 setups

hhelje5 committed 2 years ago
Verified
6acdce95fd00888e153c6a580a24a925d90d47f2

Add -dev 5.5.1 image

hhelje5 committed 3 years ago
Verified
84e97e22990f2894ba0e6df8ff70d796a2d35fb9

Setup 5.5.1 arm docker

hhelje5 committed 3 years ago
Verified
53c6b46aa9d513dc582aa21902ddd0ebc711b0cd

Add 5.3.2 Dockerfile based on futurejones'

hhelje5 committed 4 years ago
Verified
66a601525499f08904d4807d3cef9ec654bc2d61

Swift 5.0.0-dev dockers

hhelje5 committed 5 years ago

README

The README file for this repository.

dockSwiftOnARM

Swift3 Swift4 Swift5 tuxOS ARM

Playing with dockerizing Swift for Raspberry Pi.

Inspired by uraimo/buildSwiftOnARM.

Also note the companion project: swift-mac2arm-x-compile-toolchain, a cross compiler toolchain which allows you to build Raspi Swift binaries on macOS (and the reverse for the fun of it!).

Running Swift w/ Docker on macOS

Works:

docker run --rm  helje5/rpi-swift swift --version
Swift version 3.1 (swift-3.1-RELEASE)
Target: armv7-unknown-linux-gnueabihf

There is also an image which includes Emacs, vi, etc:

docker run -it --rm  helje5/rpi-swift-dev bash

Note that the REPL doesn't work on the Raspi.

DockerHub:

Want to run Server Side Swift on a Raspberry Pi? Use mod_swift.

Versions

As of 2018-04-05 the latest working Swift version for Raspi is Swift 3.1.1.

We do provide a docker image for 4.1.0. It basically works, but isn't stable (e.g. crashes on some operations). It also doesn't include the Swift Package Manager.

Setup Raspi w/ Docker and remote-control it from macOS

Moved to Wiki:

Building Swift w/ Docker on macOS

Moved to Wiki:

Status

No idea, still investigating this :-)

Who

Brought to you by Helge Heß. We like feedback, GitHub stars, cool contract work, presumably any form of praise you can think of. We don't like people who are wrong.

There is the swift-arm Slack channel if you have questions about running Swift on ARM/Raspberry Pi.