{"id":18289985,"url":"https://github.com/utensils/docker-darling","last_synced_at":"2025-07-01T09:38:28.834Z","repository":{"id":79101218,"uuid":"137442359","full_name":"utensils/docker-darling","owner":"utensils","description":"Experimental docker container with Darling for macOS runtime","archived":false,"fork":false,"pushed_at":"2019-11-14T14:24:30.000Z","size":58,"stargazers_count":42,"open_issues_count":2,"forks_count":3,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-05T09:34:52.447Z","etag":null,"topics":["container","cross-compiler","darling","docker","emulator","linux","macos","osx"],"latest_commit_sha":null,"homepage":"","language":"CMake","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/utensils.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":"2018-06-15T04:52:28.000Z","updated_at":"2024-11-28T16:33:58.000Z","dependencies_parsed_at":"2023-08-28T18:33:00.388Z","dependency_job_id":null,"html_url":"https://github.com/utensils/docker-darling","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/utensils/docker-darling","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/utensils%2Fdocker-darling","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/utensils%2Fdocker-darling/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/utensils%2Fdocker-darling/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/utensils%2Fdocker-darling/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/utensils","download_url":"https://codeload.github.com/utensils/docker-darling/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/utensils%2Fdocker-darling/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262937817,"owners_count":23387671,"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":["container","cross-compiler","darling","docker","emulator","linux","macos","osx"],"created_at":"2024-11-05T14:09:00.245Z","updated_at":"2025-07-01T09:38:28.825Z","avatar_url":"https://github.com/utensils.png","language":"CMake","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Docker darling\n\n[![CircleCI](https://circleci.com/gh/utensils/docker-darling.svg?style=svg)](https://circleci.com/gh/utensils/docker-darling) [![Docker Pulls](https://img.shields.io/docker/pulls/utensils/darling.svg)](https://hub.docker.com/r/utensils/darling/) [![Docker Stars](https://img.shields.io/docker/stars/utensils/darling.svg)](https://hub.docker.com/r/utensils/darling/) [![](https://images.microbadger.com/badges/image/utensils/darling.svg)](https://microbadger.com/images/utensils/darling \"Get your own image badge on microbadger.com\") [![](https://images.microbadger.com/badges/version/utensils/darling.svg)](https://microbadger.com/images/utensils/darling \"Get your own version badge on microbadger.com\")  \n\n## About\n\nThis is a containerized version of Darling (macOS translation layer). This is an experimental project with the goal to eventually cross compile both iOS and macOS projects in a docker container. I have had some limited success with macOS application builds.\n\nDarling actually uses it's own container system, so running with Docker is a bit redundant, but I would be interested to see it work more gracefully with docker in the future.  \n\n**Pull Requests are always welcome!**\n\n## Building\n\nThis image is fairly heavy to build and can take a few hours depending on your system. The resulting image is about **1.5GB** uncompressed.\nThe build is driven by a `Makefile` so simply run the following:  \n\n```shell\nmake\n```\n\nIf you look at the Makefile you will see a variable for `DARLING_GIT_REF` which is used to build the image against a known working git ref since there seems to be no versioning or tagging going on with Darling. This variable is nothing more than a build arg passed to docker so you can build the most recent commit:  \n\n```shell\nDARLING_GIT_REF=master make\n```\nor you can build from a specific commit:\n```shell\nDARLING_GIT_REF=a00051b580c45b002690422819e9e2ce486f257e make\n```\n\n## Usage\n\nEnsure you have kernel sources installed on your host, this is needed to build the darling \nkernel module against the running system on container startup. We run the container in **privileged** mode and inject the module into the host`s kernel. \n\nWe use a volume mount of your host systems kernel sources (read only) so the kernel module can be built on container startup, this is just an attempt to keep the image somewhat portable.\n\nFor Manjaro/Arch Linux Hosts run:  \n\n```shell\ndocker run -i -t \\\n    -v /lib/modules/\"$(uname -r)\"/build:/lib/modules/\"$(uname -r)\"/build:ro \\\n    --privileged utensils/darling darling shell\n```\n\nFor Ubuntu/Debian Hosts run:  \n\n```shell\ndocker run -i -t \\\n    -v /usr/src:/usr/src:ro \\\n    --privileged utensils/darling darling shell\n```\n\n## License\n\nThis docker build project is licensed [MIT](LICENSE).  \nDarling is GNU v3, other included assets all have their own licensing.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Futensils%2Fdocker-darling","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Futensils%2Fdocker-darling","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Futensils%2Fdocker-darling/lists"}