diff --git a/Makefile b/Makefile index 69bc837..9bd012a 100644 --- a/Makefile +++ b/Makefile @@ -16,10 +16,16 @@ jenkins: docker-image-test_base-devel jenkins: docker-push_base-devel rootfs_minimal: - bash mkroots.sh + docker run --rm -ti -v "$(CURDIR):$(CURDIR)" -w "$(CURDIR)" \ + --privileged --tmpfs=/tmp:exec --tmpfs=/run/shm \ + $(DOCKER_ORGANIZATION)/$(DOCKER_IMAGE):latest \ + sh -c 'pacman -Sy --noconfirm devtools tar && bash mkroots.sh' rootfs_%: - bash mkroots.sh $* + docker run --rm -ti -v "$(CURDIR):$(CURDIR)" -w "$(CURDIR)" \ + --privileged --tmpfs=/tmp:exec --tmpfs=/run/shm \ + $(DOCKER_ORGANIZATION)/$(DOCKER_IMAGE):latest \ + sh -c 'pacman -Sy --noconfirm devtools tar && bash mkroots.sh $*' docker-image_minimal: rootfs_minimal docker build -t $(DOCKER_ORGANIZATION)/$(DOCKER_IMAGE):latest . @@ -40,4 +46,10 @@ docker-image-test_%: docker-push_%: docker push $(DOCKER_ORGANIZATION)/$(DOCKER_IMAGE):$* +# Special build target to locally build the first minimal image +seed: + bash mkroots.sh + docker build -t $(DOCKER_ORGANIZATION)/$(DOCKER_IMAGE):latest . + docker push $(DOCKER_ORGANIZATION)/$(DOCKER_IMAGE):$* + .PHONY: rootfs docker-image docker-image-test ci-test docker-push