From f829ed0ba1f8df61b307c09c30c04e0243f85314 Mon Sep 17 00:00:00 2001 From: Jacob Pyke Date: Mon, 7 Sep 2020 20:06:03 +1000 Subject: [PATCH] Added docker information to README --- README.md | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/README.md b/README.md index 2e339eb..a9693b7 100644 --- a/README.md +++ b/README.md @@ -215,6 +215,39 @@ sudo bash -c "echo 2 > /sys/class/input/*/device/fnmode" ## Building for yourself +### Option 1: Docker +First, you need to ensure that docker isn't using `overlay` or `overlay2` filesystems. This can be verified by running `docker info`. And will be shown next to `Storage Driver`. + +In the event that you are running `overlay`, [Look at this docker documentation](https://docs.docker.com/storage/storagedriver/aufs-driver/) on how to switch to AUFS. + +**Quick Docker Install Script - Tested on Arch** +``` +sh -c "$(curl -fsSL "https://raw.githubusercontent.com/JPyke3/mbp-manjaro/master/build-in-docker.sh")" +``` + +**Docker Command** + +``` +docker run --privileged \ + -v ~/manjaro-mbp-iso:/root/out \ + --env KERNEL=linux57-mbp\ + --env EDITION=gnome\ + jpyke3/mbp-manjaro-buildiso +``` + +#### Command Breakdown + - `--privileged` + - This is required for allowing the filesystems to be created. (This is a security risk! Read for yourself the documentation on this flag) + - `-v` + - Create a folder on your host filesystem to retrieve the compiled files from the container + - `--env` + - There are two environment variables: + - `KERNEL`: This is used for defining which kernel version to use. All packages will follow the `-mbp` naming scheme. + - `EDITION`: This is used for defining which edition of manjaro you would like to install. + + +## Option 2: Manually on an existing Manjaro Install + First Install Manjaro Tools: ``` pamac install manjaro-tools-iso git