-or from source
+Install from source
-> git clone https://github.com/iainsmith/swift-docker.git
+> git clone https://github.com/iainsmith/swift-docker-cli.git
> cd swift-docker
-> swift build -c release -Xswiftc -static-stdlib
-# copy the binary to somewhere in your path.
-> cp ./.build/x86_64-apple-macosx10.10/release/swift-docker ~/bin
+> swift build -c release --disable-sandbox
+# copy the binary to somewhere in your path.
+> cp ./.build/release/swift-docker ~/bin
@@ -29,50 +61,61 @@ And install docker if you don't have it already
* Download the [Docker Mac App](https://www.docker.com/docker-mac).
-* Alternatively install via homebrew `brew install docker`
+* Or alternatively install via homebrew `brew cask install docker`
## Usage
-Run the Tests
+```bash
+OVERVIEW: Build and test your swift packages in docker
-```sh
-# Against the latest version of swift
-swift docker test
+Simple commands for working with the official swift docker images
+https://hub.docker.com/_/swift
-# Against a swift version
-swift docker test --swift 4.0
+examples:
-# Using a specific image
-swift docker test --image ibmcom/swift-ubuntu:4.1
+swift docker test #test the package in the current directory
+swift docker test --swift 5.1 # test your package against swift:5.1
+swift docker test --path ~/code/my-package # test a package in a directory
+swift docker build --swift 5.2.2 --tag username/package:1.0
+swift docker write-dockerfile --swift 5.2.2-slim
+swift docker cleanup # Remove all images created with swift docker test
-# Run tests and save dockerfile
-swift docker test --image ibmcom/swift-ubuntu:4.1 --write-dockerfile
-```
+USAGE: swift-docker