Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Swift server applications with Docker (Swift.Berlin #21)

Swift server applications with Docker (Swift.Berlin #21)

An introduction to Docker with examples on how to containerize a Swift server application.

Claus Höfele

October 10, 2016
Tweet

More Decks by Claus Höfele

Other Decks in Technology

Transcript

  1. Docker Usage Docker Image Dockerfile Docker Hub Docker Container build

    push run docker [OPTIONS] COMMAND [arg...] Dockerfile MongoDB
  2. Dockerfile • Describes steps to produce an image • Can

    inherit from other images • Images consist of layers • Images can be stored at Docker Hub
  3. Docker Pros/Cons • Docker focuses on convenience and ease-of- use

    • Abstracts providers (logging, deployment) • Lightweight (-> micro services) • Know what you deploy with pre-built images • But: Linux images only
  4. docker-compose • Bundles multiple Docker commands • Includes connectivity (ports,

    data) • Can be bound to remote machines via 
 docker-machine
  5. Environments Dev (macOS) CI (Linux) Prod (Linux) Package Management Swift

    Package Manager Swift Package Manager N/A Build Environment Xcode docker build N/A Runtime Environment Xcode/ docker run docker run docker run