Public | Automated Build

Last pushed: 8 months ago
Short Description
Docker images for Swift
Full Description

Supported tags and respective Dockerfile links




Official

Custom

Docker images containing custom Swift builds, for Debian and Ubuntu, created using docker-swift-dev. Custom Swift builds can be downloaded from BinTray.

Docker images for Swift.
https://hub.docker.com/r/bartoszj/swift/

What is Swift?

Swift is a general-purpose programming language built using a modern approach to safety, performance, and software design patterns.

The goal of the Swift project is to create the best available language for uses ranging from systems programming, to mobile and desktop apps, scaling up to cloud services. Most importantly, Swift is designed to make writing and maintaining correct programs easier for the developer. To achieve this goal, we believe that the most obvious way to write Swift code must also be:

Safe. The most obvious way to write code should also behave in a safe manner. Undefined behavior is the enemy of safety, and developer mistakes should be caught before software is in production. Opting for safety sometimes means Swift will feel strict, but we believe that clarity saves time in the long run.

Fast. Swift is intended as a replacement for C-based languages (C, C++, and Objective-C). As such, Swift must be comparable to those languages in performance for most tasks. Performance must also be predictable and consistent, not just fast in short bursts that require clean-up later. There are lots of languages with novel features — being fast is rare.

Expressive. Swift benefits from decades of advancement in computer science to offer syntax that is a joy to use, with modern features developers expect. But Swift is never done. We will monitor language advancements and embrace what works, continually evolving to make Swift even better.

https://en.wikipedia.org/wiki/Swift_\(programming_language\)
https://swift.org/
https://github.com/apple/swift

How to use this image

Pull image

docker pull bartoszj/swift

Create image and attache

docker run -it --name swift bartoszj/swift bash

If you want to use REPL or LLDB then run the container in the privileged mode:

docker run -it --name swift --cap-add sys_ptrace bartoszj/swift

To start and attache to the image created previously:

docker start -ai swift

or if the container is already running:

docker attach swift

Execute Swift

To execute main.swift (or any other Swift executable) in the current directory:

docker run -it ${PWD}:/ bartoszj/swift ./main.swift

License

The MIT License (MIT)

Copyright (c) 2016 Bartosz Janda

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Docker Pull Command
Owner
bartoszj
Source Repository