{"id":17295194,"url":"https://github.com/adam-fowler/swift-docker","last_synced_at":"2025-10-25T05:19:10.975Z","repository":{"id":52172647,"uuid":"362420124","full_name":"adam-fowler/swift-docker","owner":"adam-fowler","description":"Integrate docker into swift command line.","archived":false,"fork":false,"pushed_at":"2021-10-03T17:53:31.000Z","size":70,"stargazers_count":6,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-14T11:55:54.213Z","etag":null,"topics":["docker","spm","swift","swift-package-manager"],"latest_commit_sha":null,"homepage":"","language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/adam-fowler.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-04-28T10:00:43.000Z","updated_at":"2022-01-21T08:16:15.000Z","dependencies_parsed_at":"2022-08-23T21:31:01.994Z","dependency_job_id":null,"html_url":"https://github.com/adam-fowler/swift-docker","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/adam-fowler/swift-docker","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adam-fowler%2Fswift-docker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adam-fowler%2Fswift-docker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adam-fowler%2Fswift-docker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adam-fowler%2Fswift-docker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/adam-fowler","download_url":"https://codeload.github.com/adam-fowler/swift-docker/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adam-fowler%2Fswift-docker/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":280906433,"owners_count":26411415,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-25T02:00:06.499Z","response_time":81,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["docker","spm","swift","swift-package-manager"],"created_at":"2024-10-15T11:09:41.783Z","updated_at":"2025-10-25T05:19:10.949Z","avatar_url":"https://github.com/adam-fowler.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# swift-docker\n\nIntegrate docker into swift command line.\n\n## Basic Usage\n\nBuild a Swift project in docker\n```\nswift docker build\n```\nTest a Swift project\n```\nswift docker test\n```\nRun a Swift project\n```\nswift docker run\n```\nChoose the version of Swift you want to build/test with\n```\nswift docker test -i swift:5.2\n```\n\n## Installing\n\nCurrently the easiest way to install `swift-docker` is via [mint](https://github.com/yonaskolb/Mint). Once you have mint installed you can install as follows\n```\nmint install adam-fowler/swift-docker\n```\n\n## Command line options\n\n| Option | Description |\n|---|---|\n| -i/--image | Select swift image to use |\n| -n/--no-slim | swift-docker will automatically use a slim version of a docker image. This option disables this. |\n| -o/--output | Instead of running docker just output Dockerfile |\n| -t/--tag | Tag docker output with tag |\n| -c/--configuration | Set build configuration (debug or release) |\n| --product | Set product to build |\n| --target | Set target to build |\n| -e/-env | Set environment variable when running docker image |\n| -p/-publish | Publish port when running docker image |\n\nBy 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.\n```\nswift docker test --  --sanitize=thread\n```\n\n## Dockerfile Template\n\nIt 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.  \n```\nswift docker edit\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadam-fowler%2Fswift-docker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fadam-fowler%2Fswift-docker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadam-fowler%2Fswift-docker/lists"}