mirror of
https://github.com/linuxkit/linuxkit.git
synced 2026-01-30 00:05:53 +00:00
tools: Update consumers of linuxkit/guestfs to package.mk build
Also update the base image to the latest. Signed-off-by: Ian Campbell <ijc@docker.com>
This commit is contained in:
@@ -1,27 +1,4 @@
|
||||
.PHONY: tag push
|
||||
|
||||
IMAGE=mkimage-gcp
|
||||
DEPS=make-gcp
|
||||
|
||||
default: push
|
||||
|
||||
hash: Dockerfile make-gcp
|
||||
tar cf - $^ | docker build --no-cache -t $(IMAGE):build -
|
||||
docker run --entrypoint sh --rm $(IMAGE):build -c "(cat $^; apt list --installed 2>/dev/null) | sha1sum" | sed 's/ .*//' > hash
|
||||
|
||||
push: hash
|
||||
docker pull linuxkit/$(IMAGE):$(shell cat hash) || \
|
||||
(docker tag $(IMAGE):build linuxkit/$(IMAGE):$(shell cat hash) && \
|
||||
docker push linuxkit/$(IMAGE):$(shell cat hash))
|
||||
docker rmi $(IMAGE):build
|
||||
rm -f hash
|
||||
|
||||
tag: hash
|
||||
docker pull linuxkit/$(IMAGE):$(shell cat hash) || \
|
||||
docker tag $(IMAGE):build linuxkit/$(IMAGE):$(shell cat hash)
|
||||
docker rmi $(IMAGE):build
|
||||
rm -f hash
|
||||
|
||||
clean:
|
||||
rm -f hash
|
||||
|
||||
.DELETE_ON_ERROR:
|
||||
include ../../pkg/package.mk
|
||||
|
||||
Reference in New Issue
Block a user