Skip to content

🐳 💧Simple Dev Environment for Serverside Swift using the Vapor 4 Beta

Notifications You must be signed in to change notification settings

KnowledgePending/Vapor4-Docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Releases

No releases published

Packages

No packages published