You are viewing the 2025 edition of FOSDEM. Click here to view the 2026 edition
How to put Swift in a box: Building container images with swift-container-plugin
K.4.401 | Day 1 | 16:55 - 17:15 | Speakers: Euan Harris
How to put Swift in a box: Building container images with swift-container-plugin
Abstract
Did you know that you can write a cloud-native service in Swift and publish it in a container image, ready to run on any standard container-based cloud infrastructure, all using just the Swift compiler and its build system?
In this talk we'll see how Swift's strong multi-platform support and highly extensible package manager can take care of the whole process for you, allowing you to build your application, package it and upload it in one efficient step:
- Swift SDKs extend your native Swift compiler, giving it the ability to cross-compile and produce Linux executables directly on macOS.
- swift-container-plugin extends Swift Package Manager, giving it the ability to construct a container image and publish it to a container registry.
We'll see these tools in action and peek behind the scenes to learn how they actually work. Along the way we'll answer questions such as:
- How can we build Linux binaries on macOS?
- Can we build our own custom Swift SDKs?
- What actually goes on when we build, push and pull container images?
- How can we build a container image from scratch, just using Swift?
Attachments
Speakers
Euan Harris
Links
External Links
Notice: The placeholder video image is licensed under CC BY-SA 4.0. The original image can be found hereChanges made to the image are: Cropped the image to a new ratio, part of the image was cut off.
