helje5 / dockSwiftOnARM

Playing with dockerizing Swift for Raspberry Pi

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

Playing with dockerizing Swift for Raspberry Pi


Languages

Language:Dockerfile 77.4%Language:Makefile 18.0%Language:Shell 4.6%