Used for Docker Hub build triggering
Docker build version: 20170518-2
Arch Linux is an independently developed, i686/x86-64 general purpose GNU/Linux distribution versatile enough to suit any role. Development focuses on simplicity, minimalism, and code elegance.
Arch Linux image built "from scratch" using shim and ducktape (https://github.com/dock0/ducktape) to bootstrap. This image has been stripped down to reduce size and is ready to be used to build upon as a base, see binhex/arch-base for example.
- Build a 32 bit Arch Linux chroot
- Log into the chroot with
systemd-nspawn -b -D <CHROOT_DIR>/root bash
- Pack up the chroot into a tarball via the method described in the 2nd link (Arch Linux from scratch.
- Clear the pacman package cache to clean some space out with
paccache -r(typically 6+ GB).
Create the tarball inside the chroot (size expected: 300 MB).
mkdir -p /ext && tar -cvpjf /ext/root.tar.bz2 --exclude=/ext --exclude=/etc/hosts --exclude=/etc/hostname --exclude=/etc/resolv.conf --exclude=/sys --one-file-system /
opensshin the chroot
- Transfer the tarball was via scp back to the original host with
scp /ext/root.tar.bz2 user@host:/home/user
Build using the dockerfile with your host computer, located at (Arch Linux from scratch. Docker does not install (even though I've read you can with a good deal of hassle) on a 32 bit host
docker build -f /path/to/a/Dockerfile .
Optional: remove openssh from the chroot to clean up
Credit to original work: https://github.com/binhex