mirror of
https://github.com/linuxkit/linuxkit.git
synced 2026-04-11 18:21:47 +00:00
In most places we use the Alpine one, which is already here, but make sure this is updated, as we may use it more (yes, we should be consistent). Change the hash to just use the ca-cert hash, not the apt hash. Signed-off-by: Justin Cormack <justin.cormack@docker.com>
30 lines
747 B
Makefile
30 lines
747 B
Makefile
.PHONY: tag push
|
|
|
|
BASE=debian:testing
|
|
IMAGE=ca-certificates
|
|
|
|
default: push
|
|
|
|
hash: Dockerfile
|
|
DOCKER_CONTENT_TRUST=1 docker pull $(BASE)
|
|
tar cf - $^ | docker build --no-cache -t $(IMAGE):build -
|
|
docker run --rm $(IMAGE):build sh -c 'cat /etc/ssl/certs/ca-certificates.crt | sha1sum' | sed 's/ .*//' > hash
|
|
|
|
push: hash
|
|
docker pull mobylinux/$(IMAGE):$(shell cat hash) || \
|
|
(docker tag $(IMAGE):build mobylinux/$(IMAGE):$(shell cat hash) && \
|
|
docker push mobylinux/$(IMAGE):$(shell cat hash))
|
|
docker rmi $(IMAGE):build
|
|
rm -f hash
|
|
|
|
tag: hash
|
|
docker pull mobylinux/$(IMAGE):$(shell cat hash) || \
|
|
docker tag $(IMAGE):build mobylinux/$(IMAGE):$(shell cat hash)
|
|
docker rmi $(IMAGE):build
|
|
rm -f hash
|
|
|
|
clean:
|
|
rm -f hash
|
|
|
|
.DELETE_ON_ERROR:
|