Merge pull request #1913 from riyazdf/linuxkit-org-trust

trust: use org key in yml
This commit is contained in:
Riyaz Faizullabhoy 2017-05-27 11:52:42 -07:00 committed by GitHub
commit 2ac252a820
39 changed files with 83 additions and 202 deletions

View File

@ -17,7 +17,7 @@ endif
PREFIX?=/usr/local/
MOBY_COMMIT=1cb9fab3e13c8d3931c6f989c5d36087382e8710
MOBY_COMMIT=101fa30ef335b2fa70ef4fc322821a12bd368c26
bin/moby: Makefile | bin
docker run --rm --log-driver=none $(CROSS) $(GO_COMPILE) --clone-path github.com/moby/tool --clone https://github.com/moby/tool.git --commit $(MOBY_COMMIT) --package github.com/moby/tool/cmd/moby --ldflags "-X main.GitCommit=$(GIT_COMMIT) -X main.Version=$(VERSION)" -o $@ > tmp_moby_bin.tar
tar xf tmp_moby_bin.tar > $@

View File

@ -40,17 +40,5 @@ files:
- path: etc/docker/daemon.json
contents: '{"debug": true}'
trust:
image:
- linuxkit/kernel
- linuxkit/init
- linuxkit/runc
- linuxkit/containerd
- linuxkit/ca-certificates
- linuxkit/sysctl
- linuxkit/sysfs
- linuxkit/binfmt
- linuxkit/format
- linuxkit/mount
- linuxkit/rngd
- linuxkit/dhcpcd
- linuxkit/openntpd
org:
- linuxkit

View File

@ -38,12 +38,7 @@ services:
- CAP_DAC_OVERRIDE
net: host
trust:
org:
- linuxkit
image:
- linuxkit/kernel
- linuxkit/init
- linuxkit/runc
- linuxkit/containerd
- linuxkit/ca-certificates
- linuxkit/sysctl
- linuxkit/dhcpcd
- linuxkit/rngd
- nginx:alpine

View File

@ -10,9 +10,5 @@ onboot:
image: "linuxkit/dhcpcd:7d2f17a0e5d1ef9a75a527821a9ab0d753b22e7e"
command: ["/sbin/dhcpcd", "--nobackground", "-f", "/dhcpcd.conf", "-1"]
trust:
image:
- linuxkit/kernel
- linuxkit/init
- linuxkit/runc
- linuxkit/containerd
- linuxkit/dhcpcd
org:
- linuxkit

View File

@ -13,10 +13,5 @@ services:
- name: node_exporter
image: "linuxkit/node_exporter:29a85e9c5de1a1bd470a963878194303f6a7bd8c"
trust:
image:
- linuxkit/kernel
- linuxkit/init
- linuxkit/runc
- linuxkit/containerd
- linuxkit/rngd
- linuxkit/dhcpcd
org:
- linuxkit

View File

@ -20,14 +20,5 @@ files:
- path: root/.ssh/authorized_keys
contents: '#your ssh key here'
trust:
image:
- linuxkit/kernel
- linuxkit/init
- linuxkit/runc
- linuxkit/containerd
- linuxkit/ca-certificates
- linuxkit/sysctl
- linuxkit/rngd
- linuxkit/dhcpcd
- linuxkit/openntpd
- linuxkit/sshd
org:
- linuxkit

View File

@ -22,9 +22,7 @@ services:
- CAP_DAC_OVERRIDE
net: host
trust:
org:
- linuxkit
image:
- linuxkit/kernel
- linuxkit/init
- linuxkit/runc
- linuxkit/containerd
- linuxkit/dhcpcd
- redis:3.0.7-alpine

View File

@ -20,13 +20,5 @@ files:
- path: root/.ssh/authorized_keys
contents: '#your ssh key here'
trust:
image:
- linuxkit/kernel
- linuxkit/init
- linuxkit/runc
- linuxkit/containerd
- linuxkit/ca-certificates
- linuxkit/sysctl
- linuxkit/rngd
- linuxkit/dhcpcd
- linuxkit/sshd
org:
- linuxkit

View File

@ -35,14 +35,5 @@ services:
- CAP_DAC_OVERRIDE
net: host
trust:
image:
- linuxkit/kernel
- linuxkit/init
- linuxkit/runc
- linuxkit/containerd
- linuxkit/ca-certificates
- linuxkit/sysctl
- linuxkit/dhcpcd
- linuxkit/format
- linuxkit/mount
- linuxkit/rngd
org:
- linuxkit

View File

@ -24,12 +24,7 @@ services:
- CAP_DAC_OVERRIDE
net: host
trust:
org:
- linuxkit
image:
- linuxkit/kernel
- linuxkit/init
- linuxkit/runc
- linuxkit/containerd
- linuxkit/ca-certificates
- linuxkit/sysctl
- linuxkit/rngd
- linuxkit/dhcpcd
- nginx:alpine

View File

@ -30,13 +30,7 @@ files:
- path: etc/docker/daemon.json
contents: '{"debug": true}'
trust:
org:
- linuxkit
image:
- linuxkit/kernel
- linuxkit/init
- linuxkit/runc
- linuxkit/containerd
- linuxkit/ca-certificates
- linuxkit/sysctl
- linuxkit/binfmt
- linuxkit/dhcpcd
- linuxkit/rngd
- nginx:alpine

View File

@ -11,5 +11,5 @@ tag: $(DEPS)
docker build --squash --no-cache -t $(ORG)/$(IMAGE):$(HASH) .
push: tag
docker pull $(ORG)/$(IMAGE):$(HASH) || \
docker push $(ORG)/$(IMAGE):$(HASH)
DOCKER_CONTENT_TRUST=1 docker pull $(ORG)/$(IMAGE):$(HASH) || \
DOCKER_CONTENT_TRUST=1 docker push $(ORG)/$(IMAGE):$(HASH)

View File

@ -11,5 +11,5 @@ tag: $(DEPS)
docker build --no-cache --network=none -t $(ORG)/$(IMAGE):$(HASH) .
push: tag
docker pull $(ORG)/$(IMAGE):$(HASH) || \
docker push $(ORG)/$(IMAGE):$(HASH)
DOCKER_CONTENT_TRUST=1 docker pull $(ORG)/$(IMAGE):$(HASH) || \
DOCKER_CONTENT_TRUST=1 docker push $(ORG)/$(IMAGE):$(HASH)

View File

@ -11,5 +11,5 @@ tag: $(DEPS)
docker build --no-cache --network=none -t $(ORG)/$(IMAGE):$(HASH) .
push: tag
docker pull $(ORG)/$(IMAGE):$(HASH) || \
docker push $(ORG)/$(IMAGE):$(HASH)
DOCKER_CONTENT_TRUST=1 docker pull $(ORG)/$(IMAGE):$(HASH) || \
DOCKER_CONTENT_TRUST=1 docker push $(ORG)/$(IMAGE):$(HASH)

View File

@ -11,5 +11,5 @@ tag: $(DEPS)
docker build --squash --no-cache --network=none -t $(ORG)/$(IMAGE):$(HASH) .
push: tag
docker pull $(ORG)/$(IMAGE):$(HASH) || \
docker push $(ORG)/$(IMAGE):$(HASH)
DOCKER_CONTENT_TRUST=1 docker pull $(ORG)/$(IMAGE):$(HASH) || \
DOCKER_CONTENT_TRUST=1 docker push $(ORG)/$(IMAGE):$(HASH)

View File

@ -11,5 +11,5 @@ tag: $(DEPS)
docker build --squash --no-cache --network=none -t $(ORG)/$(IMAGE):$(HASH) .
push: tag
docker pull $(ORG)/$(IMAGE):$(HASH) || \
docker push $(ORG)/$(IMAGE):$(HASH)
DOCKER_CONTENT_TRUST=1 docker pull $(ORG)/$(IMAGE):$(HASH) || \
DOCKER_CONTENT_TRUST=1 docker push $(ORG)/$(IMAGE):$(HASH)

View File

@ -10,9 +10,5 @@ onboot:
image: "linuxkit/dhcpcd:7d2f17a0e5d1ef9a75a527821a9ab0d753b22e7e"
command: ["/sbin/dhcpcd", "--nobackground", "-f", "/dhcpcd.conf", "-1"]
trust:
image:
- linuxkit/kernel
- linuxkit/init
- linuxkit/runc
- linuxkit/containerd
- linuxkit/dhcpcd
org:
- linuxkit

View File

@ -10,9 +10,5 @@ onboot:
image: "linuxkit/poweroff:a8f1e4ad8d459f1fdaad9e4b007512cb3b504ae8"
command: ["/bin/sh", "/poweroff.sh", "10"]
trust:
image:
- linuxkit/kernel
- linuxkit/init
- linuxkit/runc
- linuxkit/containerd
org:
- linuxkit

View File

@ -10,9 +10,6 @@ onboot:
image: "linuxkit/poweroff:a8f1e4ad8d459f1fdaad9e4b007512cb3b504ae8"
command: ["/bin/sh", "/poweroff.sh", "10"]
trust:
image:
- linuxkit/kernel
- linuxkit/init
- linuxkit/runc
- linuxkit/containerd
org:
- linuxkit

View File

@ -10,8 +10,5 @@ onboot:
image: "linuxkit/poweroff:a8f1e4ad8d459f1fdaad9e4b007512cb3b504ae8"
command: ["/bin/sh", "/poweroff.sh", "10"]
trust:
image:
- linuxkit/kernel
- linuxkit/init
- linuxkit/runc
- linuxkit/containerd
org:
- linuxkit

View File

@ -10,8 +10,5 @@ onboot:
image: "linuxkit/poweroff:a8f1e4ad8d459f1fdaad9e4b007512cb3b504ae8"
command: ["/bin/sh", "/poweroff.sh", "10"]
trust:
image:
- linuxkit/kernel
- linuxkit/init
- linuxkit/runc
- linuxkit/containerd
org:
- linuxkit

View File

@ -10,8 +10,5 @@ onboot:
image: "linuxkit/poweroff:a8f1e4ad8d459f1fdaad9e4b007512cb3b504ae8"
command: ["/bin/sh", "/poweroff.sh", "3"]
trust:
image:
- linuxkit/kernel
- linuxkit/init
- linuxkit/runc
- linuxkit/containerd
org:
- linuxkit

View File

@ -10,8 +10,5 @@ onboot:
image: "linuxkit/poweroff:a8f1e4ad8d459f1fdaad9e4b007512cb3b504ae8"
command: ["/bin/sh", "/poweroff.sh", "10"]
trust:
image:
- linuxkit/kernel
- linuxkit/init
- linuxkit/runc
- linuxkit/containerd
org:
- linuxkit

View File

@ -13,8 +13,5 @@ onboot:
image: "linuxkit/poweroff:a8f1e4ad8d459f1fdaad9e4b007512cb3b504ae8"
command: ["/bin/sh", "/poweroff.sh", "3"]
trust:
image:
- linuxkit/kernel
- linuxkit/init
- linuxkit/runc
- linuxkit/containerd
org:
- linuxkit

View File

@ -13,8 +13,5 @@ onboot:
image: "linuxkit/poweroff:a8f1e4ad8d459f1fdaad9e4b007512cb3b504ae8"
command: ["/bin/sh", "/poweroff.sh", "3"]
trust:
image:
- linuxkit/kernel
- linuxkit/init
- linuxkit/runc
- linuxkit/containerd
org:
- linuxkit

View File

@ -13,8 +13,5 @@ onboot:
image: "linuxkit/poweroff:a8f1e4ad8d459f1fdaad9e4b007512cb3b504ae8"
command: ["/bin/sh", "/poweroff.sh", "3"]
trust:
image:
- linuxkit/kernel
- linuxkit/init
- linuxkit/runc
- linuxkit/containerd
org:
- linuxkit

View File

@ -13,8 +13,5 @@ onboot:
image: "linuxkit/poweroff:a8f1e4ad8d459f1fdaad9e4b007512cb3b504ae8"
command: ["/bin/sh", "/poweroff.sh", "3"]
trust:
image:
- linuxkit/kernel
- linuxkit/init
- linuxkit/runc
- linuxkit/containerd
org:
- linuxkit

View File

@ -17,8 +17,5 @@ onboot:
image: "linuxkit/poweroff:a8f1e4ad8d459f1fdaad9e4b007512cb3b504ae8"
command: ["/bin/sh", "/poweroff.sh", "3"]
trust:
image:
- linuxkit/kernel
- linuxkit/init
- linuxkit/runc
- linuxkit/containerd
org:
- linuxkit

View File

@ -45,16 +45,5 @@ services:
capabilities:
- all
trust:
image:
- linuxkit/kernel
- linuxkit/init
- linuxkit/runc
- linuxkit/containerd
- linuxkit/ca-certificates
- linuxkit/sysctl
- linuxkit/sysfs
- linuxkit/binfmt
- linuxkit/format
- linuxkit/mount
- linuxkit/rngd
- linuxkit/dhcpcd
org:
- linuxkit

View File

@ -13,9 +13,5 @@ onboot:
- name: poweroff
image: "linuxkit/poweroff:a8f1e4ad8d459f1fdaad9e4b007512cb3b504ae8"
trust:
image:
- linuxkit/kernel
- linuxkit/init
- linuxkit/runc
- linuxkit/containerd
- linuxkit/sysctl
org:
- linuxkit

View File

@ -18,8 +18,5 @@ files:
- path: data/cmdline
source: run-cmdline
trust:
image:
- linuxkit/kernel
- linuxkit/init
- linuxkit/runc
- linuxkit/containerd
org:
- linuxkit

View File

@ -9,5 +9,5 @@ onboot:
- name: poweroff
image: "linuxkit/poweroff:a8f1e4ad8d459f1fdaad9e4b007512cb3b504ae8"
trust:
image:
- linuxkit/kernel
org:
- linuxkit

View File

@ -7,7 +7,7 @@ init:
- linuxkit/containerd:b1766e4c4c09f63ac4925a6e4612852a93f7e73b
onboot:
- name: ltp
image: "linuxkit/test-ltp-20170116:81229df2d25065b06f0a3071faaace8d66c87e67"
image: "linuxkit/test-ltp:20170116"
net: host
pid: host
binds:

View File

@ -11,9 +11,9 @@ hash: Dockerfile bench_runner.sh
docker run --rm --entrypoint=/bin/sh $(IMAGE):build -c "cat $^ /lib/apk/db/installed | sha1sum" | sed 's/ .*//' > hash
push: hash
docker pull linuxkit/$(IMAGE):$(shell cat hash) || \
DOCKER_CONTENT_TRUST=1 docker pull linuxkit/$(IMAGE):$(shell cat hash) || \
(docker tag $(IMAGE):build linuxkit/$(IMAGE):$(shell cat hash) && \
docker push linuxkit/$(IMAGE):$(shell cat hash))
DOCKER_CONTENT_TRUST=1 docker push linuxkit/$(IMAGE):$(shell cat hash))
docker rmi $(IMAGE):build
rm -f hash

View File

@ -11,9 +11,9 @@ hash: Dockerfile check.sh check-kernel-config.sh etc/linuxkit
docker run --rm --entrypoint=/bin/sh $(IMAGE):build -c "cat $^ /lib/apk/db/installed | sha1sum" | sed 's/ .*//' > hash
push: hash
docker pull linuxkit/$(IMAGE):$(shell cat hash) || \
DOCKER_CONTENT_TRUST=1 docker pull linuxkit/$(IMAGE):$(shell cat hash) || \
(docker tag $(IMAGE):build linuxkit/$(IMAGE):$(shell cat hash) && \
docker push linuxkit/$(IMAGE):$(shell cat hash))
DOCKER_CONTENT_TRUST=1 docker push linuxkit/$(IMAGE):$(shell cat hash))
docker rmi $(IMAGE):build
rm -f hash

View File

@ -11,7 +11,7 @@ ltp.tar: ltp.tag
docker run --rm --net=none --log-driver=none $(shell cat ltp.tag) tar cf - opt/ltp > $@
SHASUM=alpine:3.5
IMAGE=test-ltp-$(LTP_VERSION)
IMAGE=test-ltp
# Note: We do not compute the hash from all the dependencies here
# because the ltp binaries will change everytime we build. Ideally, we
@ -23,9 +23,11 @@ hash: Dockerfile.pkg ltp.tar check.sh $(DEPS)
cat Dockerfile.pkg check.sh $(DEPS) | DOCKER_CONTENT_TRUST=1 docker run --rm -i $(SHASUM) sha1sum | sed 's/ .*//' > $@
push: hash
docker pull linuxkit/$(IMAGE):$(shell cat hash) || \
DOCKER_CONTENT_TRUST=1 docker pull linuxkit/$(IMAGE):$(shell cat hash) || \
(docker tag $(IMAGE):build linuxkit/$(IMAGE):$(shell cat hash) && \
docker push linuxkit/$(IMAGE):$(shell cat hash))
docker tag $(IMAGE):build linuxkit/$(IMAGE):$(LTP_VERSION) && \
DOCKER_CONTENT_TRUST=1 docker push linuxkit/$(IMAGE):$(shell cat hash) && \
DOCKER_CONTENT_TRUST=1 docker push linuxkit/$(IMAGE):$(LTP_VERSION))
docker rmi $(IMAGE):build
rm -f hash

View File

@ -11,9 +11,9 @@ hash: Dockerfile poweroff.sh
docker run --rm --entrypoint=/bin/sh $(IMAGE):build -c "cat $^ /lib/apk/db/installed | sha1sum" | sed 's/ .*//' > hash
push: hash
docker pull linuxkit/$(IMAGE):$(shell cat hash) || \
DOCKER_CONTENT_TRUST=1 docker pull linuxkit/$(IMAGE):$(shell cat hash) || \
(docker tag $(IMAGE):build linuxkit/$(IMAGE):$(shell cat hash) && \
docker push linuxkit/$(IMAGE):$(shell cat hash))
DOCKER_CONTENT_TRUST=1 docker push linuxkit/$(IMAGE):$(shell cat hash))
docker rmi $(IMAGE):build
rm -f hash

View File

@ -11,9 +11,9 @@ hash: Dockerfile check.sh
docker run --rm --entrypoint=/bin/sh $(IMAGE):build -c "cat $^ /lib/apk/db/installed | sha1sum" | sed 's/ .*//' > hash
push: hash
docker pull linuxkit/$(IMAGE):$(shell cat hash) || \
DOCKER_CONTENT_TRUST=1 docker pull linuxkit/$(IMAGE):$(shell cat hash) || \
(docker tag $(IMAGE):build linuxkit/$(IMAGE):$(shell cat hash) && \
docker push linuxkit/$(IMAGE):$(shell cat hash))
DOCKER_CONTENT_TRUST=1 docker push linuxkit/$(IMAGE):$(shell cat hash))
docker rmi $(IMAGE):build
rm -f hash

View File

@ -11,5 +11,5 @@ tag: $(DEPS)
docker build --squash --no-cache -t $(ORG)/$(IMAGE):$(HASH) .
push: tag
docker pull $(ORG)/$(IMAGE):$(HASH) || \
docker push $(ORG)/$(IMAGE):$(HASH)
DOCKER_CONTENT_TRUST=1 docker pull $(ORG)/$(IMAGE):$(HASH) || \
DOCKER_CONTENT_TRUST=1 docker push $(ORG)/$(IMAGE):$(HASH)