{"id":15394759,"url":"https://github.com/bensuperpc/docker-distcc","last_synced_at":"2025-10-04T05:33:44.447Z","repository":{"id":107272352,"uuid":"607864184","full_name":"bensuperpc/docker-distcc","owner":"bensuperpc","description":"Distcc (and ccache) in docker and support multiple linux distro !","archived":false,"fork":false,"pushed_at":"2023-06-09T18:02:08.000Z","size":24,"stargazers_count":3,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-27T23:44:18.434Z","etag":null,"topics":["ccache","distcc","docker","makefile"],"latest_commit_sha":null,"homepage":"","language":"Makefile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bensuperpc.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-02-28T20:41:27.000Z","updated_at":"2025-03-15T08:35:09.000Z","dependencies_parsed_at":null,"dependency_job_id":"2cf341f4-055a-4c58-bdfc-ab62afdf1003","html_url":"https://github.com/bensuperpc/docker-distcc","commit_stats":{"total_commits":9,"total_committers":2,"mean_commits":4.5,"dds":"0.11111111111111116","last_synced_commit":"d674fba575650ff7e443ef462641cb1ed9ca7e22"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/bensuperpc/docker-distcc","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bensuperpc%2Fdocker-distcc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bensuperpc%2Fdocker-distcc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bensuperpc%2Fdocker-distcc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bensuperpc%2Fdocker-distcc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bensuperpc","download_url":"https://codeload.github.com/bensuperpc/docker-distcc/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bensuperpc%2Fdocker-distcc/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278268493,"owners_count":25959064,"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-04T02:00:05.491Z","response_time":63,"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":["ccache","distcc","docker","makefile"],"created_at":"2024-10-01T15:24:29.027Z","updated_at":"2025-10-04T05:33:44.413Z","avatar_url":"https://github.com/bensuperpc.png","language":"Makefile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# docker-distcc\n\nDistcc (and ccache) in docker !\n\n## Features\n\n- Support for multiple systems (Ubuntu, Debian, Arch, Fedora, Alpine)\n- Distcc (and ccache)\n- Easy to use and configure\n\n## Requirements\n\n- [Docker](https://www.docker.com/)\n- [GNU Make](https://www.gnu.org/software/make/)\n- [GCC](https://gcc.gnu.org/)\n- [Distcc](https://distcc.github.io/)\n- [CMake](https://cmake.org/)\n- [Ninja](https://ninja-build.org/)\n- [ccache](https://ccache.dev/)\n\n## Usage\n\n### Run\n\nFirst, you need to run the container. You can use the following command:\n\n__Note:__ You can replace `debian-11` with `ubuntu-20.04`, `archlinux-rolling`, `fedora-34` or `alpine-3.14` ect...\n\n```bash\ndocker run -d -p 3632:3632 -p 3633:3633 bensuperpc/distcc:debian-11 --allow 0.0.0.0/0\n```\n\nSecond, you need to configure your environment to use the container. You can use the following command:\n\n__Note:__ You need to replace `X` with the number of cores you want to use, and if you want, localhost with the IP of the container.\n\n```bash\nexport DISTCC_HOSTS='localhost/X localhost:3632/X'\n```\n\nFor Cmake, you can use the following command:\n\n__Note:__ We use `Ninja` as a generator for build speed but you can use `Make` or other generators.\n\n```bash\ncmake -DCMAKE_C_COMPILER_LAUNCHER=\"ccache;distcc\" -DCMAKE_CXX_COMPILER_LAUNCHER=\"ccache;distcc\" -S . -B build -G Ninja \u0026\u0026 cmake --build build\n```\n\nFor Make, you can use the following command:\n\n__Note:__ You can replace `X` with the number of cores you want to use.\n\n```bash\nmake -jX CC=\"distcc gcc\" CXX=\"distcc g++\"\n```\n\n### Build\n\nYou can build the image using the following command:\n\n__Note:__ You can replace `debian` with `ubuntu`, `archlinux` or `alpine`.\n\n```bash\nmake debian\n```\n\nWith tests:\n__Note:__ Currently, the tests doesn't return an error code if the tests failed.\n\n```bash\nmake debian.test\n```\n\n## Supported systems (Table)\n\n\n| System | Version | Image |\n| --- | --- | --- |\n| Debian | 11 | bensuperpc/distcc:debian-11 |\n| Debian | 10 | bensuperpc/distcc:debian-10 |   \n| Debian | 9 | bensuperpc/distcc:debian-9 |\n| Ubuntu | 22.04 | bensuperpc/distcc:ubuntu-22.04 |\n| Ubuntu | 20.04 | bensuperpc/distcc:ubuntu-20.04 |\n| Ubuntu | 18.04 | bensuperpc/distcc:ubuntu-18.04 |\n| Archlinux | base-devel | bensuperpc/distcc:archlinux-base-devel |\n| Alpine | 3.17 | bensuperpc/distcc:alpine-3.17 |\n| Alpine | 3.16 | bensuperpc/distcc:alpine-3.16 |\n| Alpine | 3.15 | Not supported |\n| Fedora | 37 | bensuperpc/distcc:fedora-37 |\n| Fedora | 36 | bensuperpc/distcc:fedora-36 |\n| Fedora | 35 | bensuperpc/distcc:fedora-35 |\n| Manjaro | rolling | bensuperpc/distcc:manjarolinux-latest |\n| CentOS | 8 | Not supported |\n\n\n\n## Contributing\n\nIf you want to contribute to this project, you can do it by opening a pull request or an issue.\n\n## Open source projects used\n\n- [buildroot](https://github.com/buildroot/buildroot)\n- [CMake](https://github.com/Kitware/CMake)\n- [Make](https://www.gnu.org/software/make/)\n- [llvm-project](https://github.com/llvm/llvm-project)\n- [gcc](https://github.com/gcc-mirror/gcc)\n- [docker](https://github.com/docker/docker)\n- [actions](https://github.com/actions/virtual-environments)\n\n## Sources\n\n- [redhat.com](https://developers.redhat.com/blog/2019/05/15/2-tips-to-make-your-c-projects-compile-3-times-faster/)\n- [medium.com](https://link.medium.com/cfhBeb298V)\n- [linux.die.net](https://linux.die.net/man/1/distccd)\n\n## Licensing\n\nSee the [LICENSE](LICENSE) document.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbensuperpc%2Fdocker-distcc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbensuperpc%2Fdocker-distcc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbensuperpc%2Fdocker-distcc/lists"}