Wrap rootfs builder in Archlinux

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2019-02-14 19:06:11 +01:00
parent d1e6c6c13e
commit 2084e85217
Signed by: luzifer
GPG key ID: DC2729FDD34BE99E

View file

@ -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