| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
parent directory.. | ||||
Contents of this folder is used for building docker image/container needed for compiling Anarchy ISO.
Docker image contains add-aur.sh and setup.sh files. docker-compile.sh would be executed from inside container but it is not embedded into image/container.
To build a new image from project root run:
$ docker build -t anarchy:latest .To remove image:
$ docker rmi anarchy:latestIf you will, you can push created image to docker hub. Anarchy doesn't maintain an official docker image.
$ docker tag anarchy:latest <username>/anarchy:latest
$ docker tag <username>/anarchy:latest <username>/anarchy:"$(date +%F)"Publish image:
$ docker login
# Enter username/password
$ docker push <username>/anarchy:"$(date +%F)"
$ docker push <username>/anarchy:latestReplace <username> with your own username on docker hub.
It is recommended to run the compile.sh script from project root with -d flag. If anarchy:latest docker image doesn't exist, it would be created:
$ ./compile.sh -dTo build an ISO image using Docker you need to map project root folder to /anarchy inside docker container to do so run the following command from project root:
$ docker run --rm --privileged \
--device-cgroup-rule='b 7:* rmw' \
-v "${PWD}":/project \
-e anarchy_iso_label=ANARCHY10 \
-e anarchy_iso_release=1.0.10 \
anarchy:latestWhen compilation is completed you can find Anarchy ISO image under [project root]/out.
You can start a fresh container and walk trough the process with:
$ docker run --rm --privileged \
--device-cgroup-rule='b 7:* rmw' \
-v "${PWD}":/project \
-e anarchy_iso_label=ANARCHY10 \
-e anarchy_iso_release=1.0.10 \
-it anarchy:latestUse a virtualization software to test Anarchy bootable ISO.
For example using QEMU without a hard-disk on Arch Linux the command is like:
$ qemu-system-x86_64 -m 2048M -cdrom ./out/anarchy-1.0.10-x86_64.isoReplace anarchy-1.0.10-x86_64.iso with desired Anarchy ISO in above command.
| Back | FazBrowse Home | New Git URL |