mirror of
https://gitlab.archlinux.org/archlinux/archlinux-docker.git
synced 2025-08-05 05:37:12 +02:00
Can be used to build 32bit (aka multilib) packages. With all the simplification and de-duplication done with the previous commits, this turns out to be a fairly simple job ;-) Notes: - there is currently no test stage for this container - the release bits will come with next commit v2: - preserve extra.conf for base/base-devel Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
22 lines
676 B
Makefile
22 lines
676 B
Makefile
OCITOOL=podman # or docker
|
|
BUILDDIR=$(shell pwd)/build
|
|
OUTPUTDIR=$(shell pwd)/output
|
|
|
|
.PHONY: clean
|
|
clean:
|
|
rm -rf $(BUILDDIR) $(OUTPUTDIR)
|
|
|
|
.PRECIOUS: $(OUTPUTDIR)/%.tar.zst
|
|
$(OUTPUTDIR)/%.tar.zst:
|
|
scripts/make-rootfs.sh $(*) $(BUILDDIR) $(OUTPUTDIR)
|
|
|
|
.PRECIOUS: $(OUTPUTDIR)/Dockerfile.%
|
|
$(OUTPUTDIR)/Dockerfile.%: $(OUTPUTDIR)/%.tar.zst
|
|
scripts/make-dockerfile.sh "$(*).tar.zst" $(*) $(OUTPUTDIR) "true" "Dev"
|
|
|
|
# The following is for local builds only, it is not used by the CI/CD pipeline
|
|
|
|
all: image-base image-base-devel image-multilib-devel
|
|
image-%: $(OUTPUTDIR)/Dockerfile.%
|
|
${OCITOOL} build -f $(OUTPUTDIR)/Dockerfile.$(*) -t archlinux/archlinux:$(*) $(OUTPUTDIR)
|