2017-04-08 16:10:19 +00:00
|
|
|
rootfs:
|
|
|
|
$(eval TMPDIR := $(shell mktemp -d))
|
2017-04-09 11:12:14 +00:00
|
|
|
pacstrap -C /usr/share/devtools/pacman-extra.conf -c -d -G -M $(TMPDIR) $(shell cat packages)
|
2017-04-08 16:10:19 +00:00
|
|
|
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
|