mirror of
https://github.com/luzifer-docker/archlinux.git
synced 2024-11-08 07:20:09 +00:00
Wrap rootfs builder in Archlinux
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
d1e6c6c13e
commit
2084e85217
1 changed files with 14 additions and 2 deletions
16
Makefile
16
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
|
||||
|
|
Loading…
Reference in a new issue