mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-10-30 14:45:28 +00:00
This commit removes Notary and Content Trust. Notary v1 is due to be replaced with Notary v2 soon. There is no clean migration path from one to the other. For now, this removes all signing from LinuxKit. We will look to add this back once a new Notary alternative becomes available. Signed-off-by: Dave Tucker <dave@dtucker.co.uk>
53 lines
1.7 KiB
Makefile
53 lines
1.7 KiB
Makefile
CONTAINERD_IMAGE=mobylinux/containerd:c9c8a069da6dccd2803ab476ee0d57a8768f0dcb@sha256:ff5aa0b1086e8c600d6e1508cfae4da31e4935d36ec40f0128aa73113b664e7f
|
|
CONTAINERD_BINARIES=usr/bin/containerd usr/bin/containerd-shim usr/bin/ctr usr/bin/dist
|
|
|
|
RUNC_IMAGE=mobylinux/runc:f1cee12a65e7b7de06a01aec24609dc3175e1542@sha256:ff1ead6aa4388418ee07f8e93304e5b2fa9b975fe2399474d408654a1411a44a
|
|
RUNC_BINARY=usr/bin/runc
|
|
|
|
C_COMPILE=linuxkit/c-compile:63b085bbaec1aa7c42a7bd22a4b1c350d900617d@sha256:286e3a729c7a0b1a605ae150235416190f9f430c29b00e65fa50ff73158998e5
|
|
START_STOP_DAEMON=sbin/start-stop-daemon
|
|
|
|
default: push
|
|
|
|
$(RUNC_BINARY):
|
|
mkdir -p $(dir $@)
|
|
docker run --rm --net=none $(RUNC_IMAGE) tar cf - $@ | tar xf -
|
|
|
|
$(CONTAINERD_BINARIES):
|
|
mkdir -p $(dir $@)
|
|
docker run --rm --net=none $(CONTAINERD_IMAGE) tar cf - $@ | tar xf -
|
|
|
|
$(START_STOP_DAEMON): start-stop-daemon.c
|
|
mkdir -p $(dir $@)
|
|
tar cf - $^ | docker run --rm --net=none --log-driver=none -i $(C_COMPILE) -o $@ | tar xf -
|
|
|
|
.PHONY: tag push
|
|
|
|
BASE=alpine:3.5
|
|
IMAGE=init
|
|
|
|
ETC=$(shell find etc -type f)
|
|
|
|
hash: Dockerfile $(ETC) init $(RUNC_BINARY) $(CONTAINERD_BINARIES) $(START_STOP_DAEMON) repositories
|
|
docker pull $(BASE)
|
|
tar cf - $^ | docker build --no-cache -t $(IMAGE):build -
|
|
docker run --rm $(IMAGE):build sh -c 'cat $^ /lib/apk/db/installed | sha1sum' | sed 's/ .*//' > $@
|
|
|
|
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 -rf hash sbin usr
|
|
|
|
.DELETE_ON_ERROR:
|