{"id":18672265,"url":"https://github.com/adagio/swiftsdl2","last_synced_at":"2026-04-15T16:01:56.928Z","repository":{"id":150157952,"uuid":"159606132","full_name":"adagio/swiftsdl2","owner":"adagio","description":"Dockerfile for Swift + SDL2 (Simple DirectMedia Layer)","archived":false,"fork":false,"pushed_at":"2018-11-29T17:36:43.000Z","size":4,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-12-27T19:30:59.665Z","etag":null,"topics":["directmedia","docker","dockerfile","linux","sdl","sdl2","swift"],"latest_commit_sha":null,"homepage":"","language":"Dockerfile","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/adagio.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-11-29T04:11:26.000Z","updated_at":"2018-11-29T17:36:44.000Z","dependencies_parsed_at":"2023-05-17T18:30:51.155Z","dependency_job_id":null,"html_url":"https://github.com/adagio/swiftsdl2","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adagio%2Fswiftsdl2","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adagio%2Fswiftsdl2/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adagio%2Fswiftsdl2/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adagio%2Fswiftsdl2/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/adagio","download_url":"https://codeload.github.com/adagio/swiftsdl2/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239513352,"owners_count":19651322,"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","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":["directmedia","docker","dockerfile","linux","sdl","sdl2","swift"],"created_at":"2024-11-07T09:10:14.694Z","updated_at":"2025-11-06T21:30:42.280Z","avatar_url":"https://github.com/adagio.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Docker Container for the Apple's Swift programming language, includes sdl2\n\n## SDL2\n\n[Simple DirectMedia Layer](https://www.libsdl.org/download-2.0.php)\n\n## Using this docker image\n\n### Build with Swift within container\n\nRun inside your project\n\n    docker run --rm -v $(pwd):/data adagio/swiftsdl2:4.2\n\nThe `-v $(pwd):/data` parameter maps the current directory to the `/data` volume\n\n### Run the executable produced\n\n    .build/x86_64-unknown-linux/debug/\u003ctarget-name\u003e\n\nYes, you can run the product in host 👌\n\n## Recommendations\n\nCreate a `.build` folder inside your project\n\n    mkdir .build\n\nGive useful permissions to your `.build` folder\n\n    chmod u+s .build\n\n## About parameters in Dockerfile\n\n    WORKDIR /data  \n    VOLUME /data  \n    CMD sh -c \"swift build -Xswiftc -static-stdlib\"\n\nThe coomand will be executed on `/data` directory, that maps to `/data` volume.\nRemember that current directory on the host was mapped to `/data` volume with a parameter on `docker run` command.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadagio%2Fswiftsdl2","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fadagio%2Fswiftsdl2","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadagio%2Fswiftsdl2/lists"}