How To Put Swift in a Box: Container Images From Scratch With Swift Container Plugin
summary
Demonstrates building Linux container images directly from Swift Package Manager using Swift Container Plugin, cross‑compiling Linux binaries on macOS with static SDKs or custom dynamic SDKs produced by Swift SDK generator (installed via Swiftly), creating image layers by hand (manifest, config, gzipped tar layers) and uploading them with registry HTTP calls, then running the result on macOS with the new container runtime (micro‑VM per instance) and containerization framework (VM init); the automated plugin produces a pullable image reference and the demos run successfully.
AI-written summary · about
chapters (15)
- 0:00Swift and containers intro
- 3:13Why Swift for services
- 7:02Hummingbird web service
- 8:48Swift Container Plugin demo
- 13:12Cross-compiling Swift for Linux
- 15:42Swift SDKs for cross-compile
- 17:48Dynamic Swift SDKs
- 20:38Container image structure
- 25:17Building images from scratch
- 29:48Upload images with curl
- 30:51Automate builds with SPM
- 31:55Run containers with Swift tool
- 32:38Swift Container runtime
- 35:24Containerization in Xcode
- 40:18Summary and next steps
related talks
19mSwift to the cloud in a single step
06mSwift Superpowers #3
26mPractical Cross-Platform Swift
20mUsing gRPC Swift for Container Agents in Apple Containerization
35mSwift, Server-Side, Serverless
44mSwift Packages - Dependency Management of the Future
21mUnlock the Potential of Swift Code Generation
36mBuilding Swift Packages in VSCode
