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
- Ubuntu 18.04 Bionic
- Swift 5.1.2
- Vapor 4 Beta
- 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
- Go to the repository page bryankp/vapor4
- Pull the latest image
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
- 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
- Example