Docker image with the Swift 3.0.2 RELEASE binaries and dependencies for running Kitura-based applications. Our development team uses this image for development and testing of Swift 3 applications on the Linux Ubuntu (v14.04) operating system.
- Removed packages from Dockerfile no longer needed.
- Upgraded Dockerfile to the Swift 3.0.2 RELEASE binaries.
- Aligned version of Ubuntu with version found in Cloud Foundry environments (14.04).
- Reduced size of the Docker image.
- Updated Dockerfile per guidelines in Best practices for writing Dockerfiles.
You can execute the following command to download the latest version of this image from Docker Hub:
docker pull ibmcom/swift-ubuntu:latest
You can mount a folder on your host to your Docker container using the following command:
docker run -i -t -v <absolute path to the swift package>:/root/<swift package name> ibmcom/swift-ubuntu:latest /bin/bash
After executing the above command, you will have terminal access to the Docker container.
If you attempt to run the Swift REPL and you get the error failed to launch REPL process: process launch failed: 'A' packet returned an error: 8
, then you should run your Docker container in privilege mode:
docker run --privileged -i -t ibmcom/swift-ubuntu:latest /bin/bash
This issue is described at https://bugs.swift.org/browse/SR-54.