From 70867ed46d4672bfa019bc2eca0d5fd6dded0f03 Mon Sep 17 00:00:00 2001 From: Zaoqi Date: Mon, 12 Aug 2019 21:49:11 +0800 Subject: [PATCH 1/4] readme: add Manjaro --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index b03d779..d1763b5 100644 --- a/README.md +++ b/README.md @@ -36,7 +36,7 @@ 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 \ @@ -55,4 +55,4 @@ docker run -i -t \ ## License This docker build project is licensed [MIT](LICENSE). -Darling is GNU v3, other included assets all have their own licensing. \ No newline at end of file +Darling is GNU v3, other included assets all have their own licensing. From 59cad5604690b22c96f8ce23caab882595daf00a Mon Sep 17 00:00:00 2001 From: motherboard1999 Date: Thu, 14 Nov 2019 15:10:32 +0100 Subject: [PATCH 2/4] add CentOS/RHEL command and darling logo --- README.md | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index d1763b5..cdb93fe 100644 --- a/README.md +++ b/README.md @@ -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. @@ -44,7 +46,7 @@ docker run -i -t \ --privileged utensils/darling darling shell ``` -For Ubuntu/Debian Hosts run: +For Ubuntu/Debian Linux Hosts run: ```shell docker run -i -t \ @@ -52,6 +54,16 @@ docker run -i -t \ --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). From 763330efea99f59bbb793f70590307934d371cda Mon Sep 17 00:00:00 2001 From: motherboard1999 Date: Thu, 14 Nov 2019 15:12:25 +0100 Subject: [PATCH 3/4] fix Makefile error: Cannot generate ORC matedata for CONFIG_UNWINDER_ORC=y, please install libelf-dev --- Dockerfile | 1 + 1 file changed, 1 insertion(+) diff --git a/Dockerfile b/Dockerfile index b557082..fba590f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -109,6 +109,7 @@ RUN set -xe; \ flex \ kmod \ make \ + libelf-dev \ sudo; \ rm -rf /var/lib/apt/lists/*; \ # Setup sudo access \ From 2a7546dcac1934d8ce306204b8e4553d06ead46a Mon Sep 17 00:00:00 2001 From: motherboard1999 Date: Thu, 14 Nov 2019 15:13:12 +0100 Subject: [PATCH 4/4] fix permission issue: can not generate /home/darling/.darling --- Dockerfile | 1 + 1 file changed, 1 insertion(+) diff --git a/Dockerfile b/Dockerfile index fba590f..e3b958e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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; \