Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

issue fixes and README update #3

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ FROM ${BASE_IMAGE}
RUN set -xe; \
groupadd -g 1000 darling; \
useradd -g darling -u 1000 -s /bin/sh -d /home/darling darling; \
chown -R 1000:1000 /home/darling; \
# Install deps. \
dpkg --add-architecture i386; \
apt-get update; \
Expand All @@ -109,6 +110,7 @@ RUN set -xe; \
flex \
kmod \
make \
libelf-dev \
sudo; \
rm -rf /var/lib/apt/lists/*; \
# Setup sudo access \
Expand Down
18 changes: 15 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

[![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")

![Darling Logo](https://upload.wikimedia.org/wikipedia/commons/thumb/a/ae/Darling_project_logo.png/150px-Darling_project_logo.png)

## About

This 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.
Expand Down Expand Up @@ -36,23 +38,33 @@ kernel module against the running system on container startup. We run the contai

We 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.

For Arch Linux Hosts run:
For Manjaro/Arch Linux Hosts run:

```shell
docker run -i -t \
-v /lib/modules/"$(uname -r)"/build:/lib/modules/"$(uname -r)"/build:ro \
--privileged utensils/darling darling shell
```

For Ubuntu/Debian Hosts run:
For Ubuntu/Debian Linux Hosts run:

```shell
docker run -i -t \
-v /usr/src:/usr/src:ro \
--privileged utensils/darling darling shell
```

For CentOS/RHEL Linux Hosts run:

```shell
docker run -i -t \
-v /lib/modules/"$(uname -r)"/build:/lib/modules/"$(uname -r)"/build:ro \
-v /lib/modules/"$(uname -r)"/modules.builtin:/lib/modules/"$(uname -r)"/modules.builtin:ro \
-v /lib/modules/"$(uname -r)"/modules.order:/lib/modules/"$(uname -r)"/modules.order:ro \
--privileged utensils/darling darling shell
```

## License

This docker build project is licensed [MIT](LICENSE).
Darling is GNU v3, other included assets all have their own licensing.
Darling is GNU v3, other included assets all have their own licensing.