• Stars
    star
    121
  • Rank 293,924 (Top 6 %)
  • Language
    Dockerfile
  • Created over 7 years ago
  • Updated almost 2 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Playing with dockerizing Swift for Raspberry Pi

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.

More Repositories

1

SwiftSockets

A simple GCD based socket wrapper for Swift.
Swift
277
star
2

SwiftyHTTP

A simple GCD based HTTP client and server, written in 'pure' Swift
Swift
117
star
3

Shell

Module exposing Unix command line tools as Swift 5 @dynamicCallable functions
Swift
109
star
4

SwiftyWasmer

A Swift API for the Wasmer WebAssembly Runtime
Swift
52
star
5

SwiftObjCBridge

A Swift Objective-C Bridge implemented using @dynamicCallable
Swift
45
star
6

MicroExpress

A micro web server framework on top of the official Swift HTTP API
Swift
29
star
7

NWHTTPProtocol

An HTTP protocol implementation (an `NWProtocolFramer`) and a tiny HTTP server for Network.framework
C
25
star
8

swift-arm2mac-x-compile-toolchain

SPM toolchain to cross compile macOS Swift binaries on a Raspberry Pi (yes, you read that right)
Shell
12
star
9

SwiftXmlRpc

An XML-RPC protocol implementation for Swift
Swift
12
star
10

MacroCows

A Swift macro plugin that expands Strings into ASCII Cows, right at compile time.
Swift
12
star
11

GTKKit

Write GTK (GNOME) Applications in Objective-C
Objective-C
10
star
12

SwiftyExpat

Simple wrapper for the Expat XML parser.
C
9
star
13

http-c-vs-swift

Test performance of http-parser in Swift and C
Swift
6
star
14

WebPackMiniS

A super simple mini version of WebPack written in Swift
Swift
5
star
15

MultiCrap

Quick hack to square-crop a folder of images
Swift
5
star
16

SQLite3Schema

A Swift library to fetch the schema from a SQLite3 database.
Swift
4
star
17

wren-swift

The wren scripting language as a Swift package, w/ some Swift API wrappers
C
4
star
18

libFoundation

An Objective-C Foundation library
Objective-C
2
star
19

helje5

The GitHub Home of Helge Heß
2
star
20

StaticCMS

GETobjects based static website generator
Java
1
star
21

swifter

Swifter - like Swift, but swift!
1
star
22

mod_objc1

Write Apache 1 modules in Objective-C via GNUstep/libFoundation
Objective-C
1
star