A container for the Swift compiler on Debian Stretch, w/ the debs to install it and the swift-libs.
10K+
Dockerfile Linkhttps://github.com/happn-tech/swift-docker/blob/master/context_stretch/Dockerfile
https://github.com/happn-tech/swift-docker/issues
This image contains the Swift compiler for Debian Stretch. It is built by the Dockerfile in the context_stretch folder of this GitHub repository.
The image contains a .deb file you can retrieve at path $SWIFTLANG_LIBS_DEB_PATH. The deb contains the Swift libs, against which all Swift executables are linked.
Installing the deb on a Debian Stretch install should allow you to run the binaries produced by the Swift compiler inside this Docker image.
There is an option you can pass to swift to try and statically link the Swift libs (--static-swift-stdlib), however this option apparently does not work on Linux.
The image also contains the .deb file to install the Swift compiler directly on a Debian Stretch install at path $SWIFTLANG_DEB_PATH.
To run the Swift REPL, you’ll have to run swift directly, and disable the confinement so that ptrace works in the container. For instance you can do something like:
docker run --security-opt=seccomp:unconfined -it --rm happn/swift swift
Content type
Image
Digest
Size
836.6 MB
Last updated
over 6 years ago
docker pull happn/swift