{"id":50737759,"url":"https://github.com/royratcliffe/swi-prolog-dev-container","last_synced_at":"2026-06-10T15:02:11.477Z","repository":{"id":46513250,"uuid":"414276814","full_name":"royratcliffe/swi-prolog-dev-container","owner":"royratcliffe","description":"Nice to know that SWI Prolog runs very nicely under VS Code using the Remote Containers extension.","archived":false,"fork":false,"pushed_at":"2021-10-08T07:36:59.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2023-04-11T20:50:41.436Z","etag":null,"topics":["dev-containers","prolog","vscode"],"latest_commit_sha":null,"homepage":"https://swi-prolog.discourse.group/t/vs-code-dev-containers-with-swi-prolog/4529","language":"Dockerfile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/royratcliffe.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-10-06T15:53:11.000Z","updated_at":"2021-10-08T07:36:59.000Z","dependencies_parsed_at":"2022-07-25T04:01:57.090Z","dependency_job_id":null,"html_url":"https://github.com/royratcliffe/swi-prolog-dev-container","commit_stats":null,"previous_names":[],"tags_count":null,"template":null,"template_full_name":null,"purl":"pkg:github/royratcliffe/swi-prolog-dev-container","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/royratcliffe%2Fswi-prolog-dev-container","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/royratcliffe%2Fswi-prolog-dev-container/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/royratcliffe%2Fswi-prolog-dev-container/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/royratcliffe%2Fswi-prolog-dev-container/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/royratcliffe","download_url":"https://codeload.github.com/royratcliffe/swi-prolog-dev-container/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/royratcliffe%2Fswi-prolog-dev-container/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34157453,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-10T02:00:07.152Z","response_time":89,"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":["dev-containers","prolog","vscode"],"created_at":"2026-06-10T15:02:10.455Z","updated_at":"2026-06-10T15:02:11.468Z","avatar_url":"https://github.com/royratcliffe.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SWI Prolog Dev Container\n\nSets up SWI Prolog in a VS Code [development\ncontainer](https://code.visualstudio.com/docs/remote/containers). You need\n[Docker](https://www.docker.com/products/docker-desktop) and [VS\nCode](https://code.visualstudio.com/) with [Microsoft's Remote\nContainers](https://marketplace.visualstudio.com/items?itemName=ms-vscode-remote.remote-containers)\nextension. You can run SWI Prolog from a docker container within Visual Studio\nCode.\n\n## X11 and Emacs\n\nThe container sets up `DISPLAY` for X11 connectivity.\n\n```json\n\"runArgs\": [\n    \"-e\", \"DISPLAY=host.docker.internal:0\"\n],\n```\n\nYou can then run the `emacs` predicate, e.g.\n\n```bash\n$ swipl -g emacs\n```\n\nor, of course, you can launch it and other graphical Prolog tools from the\nubiquitous _Do What I Mean_ prompt.\n\n```text\nWelcome to SWI-Prolog (threaded, 64 bits, version 8.5.0)\nSWI-Prolog comes with ABSOLUTELY NO WARRANTY. This is free software.\nPlease run ?- license. for legal details.\n\nFor online help and background, visit https://www.swi-prolog.org\nFor built-in help, use ?- help(Topic). or ?- apropos(Word).\n```\n```prolog\n?- emacs.\ntrue.\n\n?- prolog_ide(thread_monitor), prolog_ide(xref).\n```\n\nThis assumes that you have an X server at `host.docker.internal` which\ncorresponds to the host interface.\n\nOn Windows, you can install an X11 server using [VcXsrv Windows X\nServer](https://community.chocolatey.org/packages/vcxsrv) using Chocolatey. Do\nnot forget to disable access control. The enclosed `config.xlaunch` X launcher\nconfiguration includes the necessary `DisableAC=\"True\"` setting. Double-click it\nto launch the X server on Windows.\n\n# MIT License\n\nCopyright (c) 2021 Roy Ratcliffe, United Kingdom\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of\nthis software and associated documentation files (the \"Software\"), to deal in\nthe Software without restriction, including without limitation the rights to\nuse, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of\nthe Software, and to permit persons to whom the Software is furnished to do so,\nsubject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS\nFOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR\nCOPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER\nIN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN\nCONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Froyratcliffe%2Fswi-prolog-dev-container","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Froyratcliffe%2Fswi-prolog-dev-container","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Froyratcliffe%2Fswi-prolog-dev-container/lists"}