Skip to content

Latest commit

 

History

History
44 lines (38 loc) · 1.75 KB

README.md

File metadata and controls

44 lines (38 loc) · 1.75 KB

Docker Pulls

With Vapor 4 comes a whole host of improvements:

  • Overhaul of Fluent
  • Support for Apple's new Swift-Log API as the default logger
  • HTTP/2 support with SwiftNIO v2

Vapor 4 is still only in beta.
For the latest stable release see my Vapor 3 Docker image

Image details

  • Ubuntu 18.04 Bionic
  • Swift 5.1.2
  • Vapor 4 Beta

Option 1. Build Docker Image

  • From within the directory of the Dockerfile execute the following command to build the image
docker build -t vapor4 .
  • To run with bash and a shared volume
docker run -v <host_path>:<container_path> -ti vapor4:latest bash

Option 2. Pull image from Docker Hub

docker pull bryankp/vapor4:latest
  • To run with bash and a shared volume
docker run -v <host_path>:<container_path> -ti bryankp/vapor4:latest bash

Further Details

  • Swift Official Docker Images
  • For troubleshooting issues see the Vapor4 Docs
  • To use the swift repl while running docker on macos the container needs to be run with the following flag --privileged
    • Example docker run --privileged -v <host_path>:<container_path> -ti bryankp/swift_vapor:latest bash
    • see swiftlang/swift-docker#9