Commit f5bf444d authored by Pierre Schmitz's avatar Pierre Schmitz
Browse files

Add initial implementation

parent af420fab
*~
*.orig
/.idea
FROM scratch
ADD archlinux.tar.xz /
CMD ["/usr/bin/bash"]
rootfs:
$(eval TMPDIR := $(shell mktemp -d))
pacstrap -C rootfs/etc/pacman.conf -c -d -G -M $(TMPDIR) $(shell cat packages)
cp -rvp --backup --suffix=.pacnew rootfs/* $(TMPDIR)/
arch-chroot $(TMPDIR) locale-gen
arch-chroot $(TMPDIR) pacman-key --init
arch-chroot $(TMPDIR) pacman-key --populate archlinux
tar --numeric-owner --xattrs --acls --exclude-from=exclude -C $(TMPDIR) -c . -Jvf archlinux.tar.xz
rm -rf $(TMPDIR)
docker-image: rootfs
docker build -t pierres/archlinux .
.PHONY: rootfs docker-image
.dockerenv
.dockerinit
etc/hostname
etc/machine-id
etc/pacman.d/gnupg/openpgp-revocs.d/*
etc/pacman.d/gnupg/private-keys-v1.d/*
etc/pacman.d/gnupg/pubring.gpg~
etc/pacman.d/gnupg/S.gpg-agent*
root/*
tmp/*
var/cache/pacman/pkg/*
var/lib/pacman/sync/*
var/tmp/*
diffutils
gettext
grep
inetutils
iproute2
iputils
pacman
procps-ng
psmisc
sed
tar
util-linux
which
gzip
LANG=en_US.UTF-8
en_US.UTF-8 UTF-8
[options]
CacheDir = /tmp/pacman/pkg
Architecture = auto
SigLevel = Required DatabaseOptional
LocalFileSigLevel = Optional
[core]
Include = /etc/pacman.d/mirrorlist
[extra]
Include = /etc/pacman.d/mirrorlist
[community]
Include = /etc/pacman.d/mirrorlist
Server = http://mirror.leaseweb.net/archlinux/$repo/os/$arch
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment