Skip to content

KnowledgePending/Vapor-Docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Docker Pulls

For the Vapor 4 beta see my Vapor 4 Docker image

Image details

  • Ubuntu 16.04
  • Swift 4.1
  • Vapor 3.1

Option 1. Build Docker Image

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

Option 2. Pull image from Docker Hub

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

Further Details

  • Swift Official Docker Images
  • For troubleshooting issues see the Vapor 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