DOCKER_ORGANIZATION=luzifer DOCKER_IMAGE:=archlinux default: docker-image_minimal jenkins: docker-image_minimal jenkins: docker-image-test_latest jenkins: docker-push_latest jenkins: docker-image_base jenkins: docker-image-test_base jenkins: docker-push_base jenkins: docker-image_base-devel jenkins: docker-image-test_base-devel jenkins: docker-push_base-devel rootfs_minimal: bash mkroots.sh rootfs_%: bash mkroots.sh $* docker-image_minimal: rootfs_minimal docker build -t $(DOCKER_ORGANIZATION)/$(DOCKER_IMAGE):latest . docker-image_%: $(MAKE) rootfs_$* docker build -t $(DOCKER_ORGANIZATION)/$(DOCKER_IMAGE):$* . docker-image-test_%: # FIXME: /etc/mtab is hidden by docker so the stricter -Qkk fails docker run --rm $(DOCKER_ORGANIZATION)/$(DOCKER_IMAGE):$* sh -c "/usr/bin/pacman -Sy && /usr/bin/pacman -Qqk" docker run --rm $(DOCKER_ORGANIZATION)/$(DOCKER_IMAGE):$* sh -c "/usr/bin/pacman -Syu --noconfirm docker && docker -v" # Ensure that the image does not include a private key ! docker run --rm $(DOCKER_ORGANIZATION)/$(DOCKER_IMAGE):$* pacman-key --lsign-key pierre@archlinux.de docker run --rm $(DOCKER_ORGANIZATION)/$(DOCKER_IMAGE):$* sh -c "/usr/bin/id -u http" docker run --rm $(DOCKER_ORGANIZATION)/$(DOCKER_IMAGE):$* sh -c "/usr/bin/pacman -Syu --noconfirm grep && locale | grep -q UTF-8" docker-push_%: docker push $(DOCKER_ORGANIZATION)/$(DOCKER_IMAGE):$* .PHONY: rootfs docker-image docker-image-test ci-test docker-push