Sign inSign up

professorkaos64/arch-scratch

By professorkaos64

•Updated over 9 years ago

Auto build for Arch Linux 32-bit

Image
0

984

professorkaos64/arch-scratch repository overview

Used for Docker Hub build triggering Docker build version: 20170518-2

Application

Arch Linux⁠

Description

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.

Build notes

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.

Instructions:

  1. Build a 32 bit Arch Linux chroot⁠

  2. Log into the chroot with archnspawn <CHROOT_DIR>/root bash

  3. Pack up the chroot into a tarball via the method described in the 2nd link (Arch Linux from scratch⁠.

  4. Clear the pacman package cache to clean some space out with paccache -r (typically 6+ GB).

  5. 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 /
    
  6. Install openssh in the chroot

  7. Transfer the tarball was via scp back to the original host with scp /ext/root.tar.bz2 user@host:/home/user

  8. 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 .
    
  9. Optional: remove openssh from the chroot to clean up


Credit to original work: https://github.com/binhex⁠

Tag summary

Content type

Image

Digest

Size

661.3 MB

Last updated

over 9 years ago

docker pull professorkaos64/arch-scratch