Integrate docker into swift command line.

Overview

swift-docker

Integrate docker into swift command line.

Basic Usage

Build a Swift project in docker

swift docker build

Test a Swift project

swift docker test

Run a Swift project

swift docker run

Choose the version of Swift you want to build/test with

swift docker test -i swift:5.2

Installing

Currently the easiest way to install swift-docker is via mint. Once you have mint installed you can install as follows

mint install adam-fowler/swift-docker

Command line options

Option Description
-i/--image Select swift image to use
-n/--no-slim swift-docker will automatically use a slim version of a docker image. This option disables this.
-o/--output Instead of running docker just output Dockerfile
-t/--tag Tag docker output with tag
-c/--configuration Set build configuration (debug or release)
--product Set product to build
--target Set target to build
-e/-env Set environment variable when running docker image
-p/-publish Publish port when running docker image

By adding a -- everything else after that in the command line will be added as an option to the swift test/build command in the docker file.

swift docker test --  --sanitize=thread

Dockerfile Template

It is not possible to create a Dockerfile template that supports all projects. Because of this there is an option to edit the template file used to create the Dockerfile. The following will save a local copy of the template file and open it up into a text editor for you to edit.

swift docker edit
Issues
Releases(0.3.0)
Owner
Adam Fowler
Used to make video games, can't be arsed anymore
Adam Fowler
Swift Express is a simple, yet unopinionated web application server written in Swift

Documentation <h5 align="right"><a href="http://demo.swiftexpress.io/">Live ?? server running Demo <img src="https://cdn0.iconfinder.com/data/icons/

Crossroad Labs 854 Oct 7, 2021
Swift backend / server framework (Pure Swift, Supports Linux)

NetworkObjects NetworkObjects is a #PureSwift backend. This framework compiles for OS X, iOS and Linux and serves as the foundation for building power

Alsey Coleman Miller 265 Nov 18, 2021
Tiny http server engine written in Swift programming language.

What is Swifter? Tiny http server engine written in Swift programming language. Branches * stable - lands on CocoaPods and others. Supports the latest

null 3.4k Nov 22, 2021
Swift HTTP server using the pre-fork worker model

Curassow Curassow is a Swift Nest HTTP Server. It uses the pre-fork worker model and it's similar to Python's Gunicorn and Ruby's Unicorn. It exposes

Kyle Fuller Archive 397 Jun 3, 2021
Lightweight library for web server applications in Swift on macOS and Linux powered by coroutines.

Why Zewo? • Support • Community • Contributing Zewo Zewo is a lightweight library for web applications in Swift. What sets Zewo apart? Zewo is not a w

Zewo 1.9k Nov 17, 2021
💧 A server-side Swift web framework.

Vapor is a web framework for Swift. It provides a beautifully expressive and easy to use foundation for your next website, API, or cloud project. Take

Vapor 21.1k Nov 29, 2021
Sinatra-like DSL for developing web apps in Swift

Swiftra Swiftra is a library that provides DSLs like Sinatra. System Requirements DEVELOPMENT-SNAPSHOT-2016-02-08-a Example See swiftra-example. impor

Shun Takebayashi 267 Jun 10, 2021
A minimal, fast and unopinionated web framework for Swift

![Fire Image] (http://i.imgur.com/1qR6Nl4.png) Blackfire An extremely fast Swift web framework ?? Getting Started If you're familiar with express.js t

Elliott Minns 918 Oct 15, 2021
HTTP Implementation for Swift on Linux and Mac OS X

Swift HTTP Server Simple HTTP implementation for Swift using POSIX socket API. Running on Mac OS X and Linux. For Mac users: You can install new Swift

Huy 454 Nov 17, 2021
libuv base Swift web HTTP server framework

Notice Trevi now open a Trevi Community. Yoseob/Trevi project split up into respective Trevi, lime, middlewares and sys packages at our community. If

leeyoseob 46 Mar 2, 2021
A lightweight library for writing HTTP web servers with Swift

Taylor Disclaimer: Not actively working on it anymore. You can check out some alternatives Swift 2.0 required. Working with Xcode 7.1. Disclaimer: It

Jorge Izquierdo 932 Nov 17, 2021
Frank is a DSL for quickly writing web applications in Swift

Frank Frank is a DSL for quickly writing web applications in Swift with type-safe path routing. Sources/main.swift import Frank // Handle GET request

Kyle Fuller Archive 380 Jul 25, 2021
A Swift web framework and HTTP server.

A Swift Web Framework and HTTP Server Summary Kitura is a web framework and web server that is created for web services written in Swift. For more inf

Kitura 7.5k Nov 28, 2021
A Ruby on Rails inspired Web Framework for Swift that runs on Linux and OS X

IMPORTANT! We don't see any way how to make web development as great as Ruby on Rails or Django with a very static nature of current Swift. We hope th

Saulius Grigaitis 2k Nov 23, 2021
High Performance (nearly)100% Swift Web server supporting dynamic content.

Dynamo - Dynamic Swift Web Server Starting this project the intention was to code the simplest possible Web Server entirely in Swift. Unfortunately I

John Holdsworth 69 Nov 14, 2021
A Swift Multiplatform Single-threaded Non-blocking Web and Networking Framework

Serverside non-blocking IO in Swift Ask questions in our Slack channel! Lightning (formerly Edge) Node Lightning is an HTTP Server and TCP Client/Serv

SkyLab 314 Aug 30, 2021
A simple Swift wrapper for libgd

SwiftGD This is a simple Swift wrapper for libgd, allowing for basic graphic rendering on server-side Swift where Core Graphics is not available. Alth

Paul Hudson 396 Nov 21, 2021
A job system for Swift backends.

Jobs A minimalistic job system in Swift, for Swift Table of Contents Getting started Intervals Syntax candy Starting a job Stopping a job Error handli

Brett R. Toomey 285 Nov 13, 2021
Reliable Server Side Swift ✭ Make Apache great again!

mod_swift mod_swift is a technology demo which shows how to write native modules for the Apache Web Server in the Swift 3 programming language. The de

The ApacheExpress Alliance 172 Nov 14, 2021