项目作者: KnowledgePending

项目描述 :
🐳 🕊️Simple Dev Environment for Serverside Swift using Kitura
高级语言: Dockerfile
项目地址: git://github.com/KnowledgePending/Kitura-Docker.git
创建时间: 2019-07-23T21:09:48Z
项目社区:https://github.com/KnowledgePending/Kitura-Docker

开源协议:

下载


Simple Kitura Docker environment

Docker Pulls

Image details

  • Ubuntu 18.04 Bionic
  • Swift 5.0.2
  • Kitura 0.0.16

Option 1. Build Docker Image

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

    Option 2. Pull image from Docker Hub

  • Go to the repository page bryankp/swift_kitura
  • Pull the latest image

    1. docker pull bryankp/swift_kitura:latest
  • To run with bash and a shared volume

    1. docker run -v <host_path>:<container_path> -ti bryankp/swift_kitura:latest bash

Further Details

  • To use the swift repl while running docker on macos the container needs to be run with the following flag —privileged