Skip to content

Latest commit

 

History

History
83 lines (60 loc) · 2.75 KB

README.md

File metadata and controls

83 lines (60 loc) · 2.75 KB

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.