Merge pull request #2571 from ijc/linuxkit-pkg

Implement package build, push and show-tag in linuxkit tool
This commit is contained in:
Justin Cormack
2017-10-09 13:59:02 +01:00
committed by GitHub
67 changed files with 16522 additions and 27 deletions

View File

@@ -1,6 +1,10 @@
DIRS = $(shell find . -maxdepth 1 -mindepth 1 -type d)
.PHONY: clean dirs $(DIRS)
# TODO(ijc) once all switch to `linuxkit pkg` update this to:
# linuxkit pkg <build|push> [--force] $$d
# linuxkit pkg show-tag $$d
push:
@set -e; for d in $(DIRS); do make -C "$$d"; done

View File

@@ -1,4 +1,16 @@
IMAGE?=auditd
NETWORK=1
.PHONY: push forcepush tag forcetag show-tag
include ../package.mk
push:
linuxkit pkg push .
forcepush:
linuxkit pkg push --force .
tag:
linuxkit pkg build .
forcetag:
linuxkit pkg build --force .
show-tag:
linuxkit pkg show-tag .

2
pkg/auditd/build.yml Normal file
View File

@@ -0,0 +1,2 @@
image: auditd
network: true

View File

@@ -1,5 +1,16 @@
IMAGE=binfmt
DEPS=main.go $(wildcard etc/binmft.d/*)
ARCHES=x86_64
.PHONY: push forcepush tag forcetag show-tag
include ../package.mk
push:
linuxkit pkg push .
forcepush:
linuxkit pkg push --force .
tag:
linuxkit pkg build .
forcetag:
linuxkit pkg build --force .
show-tag:
linuxkit pkg show-tag .

3
pkg/binfmt/build.yml Normal file
View File

@@ -0,0 +1,3 @@
image: binfmt
arches:
- amd64

View File

@@ -1,4 +1,16 @@
IMAGE=init
DEPS=usermode-helper.c $(wildcard etc/*) $(wildcard etc/init.d/*) $(shell find cmd -type f)
.PHONY: push forcepush tag forcetag show-tag
include ../package.mk
push:
linuxkit pkg push .
forcepush:
linuxkit pkg push --force .
tag:
linuxkit pkg build .
forcetag:
linuxkit pkg build --force .
show-tag:
linuxkit pkg show-tag .

1
pkg/init/build.yml Normal file
View File

@@ -0,0 +1 @@
image: init

View File

@@ -107,7 +107,7 @@ forcepush-y: forcetag-y check-dirty
docker push $(TAG)$(SUFFIX)
$(PUSH_MANIFEST) $(TAG) $(DOCKER_CONTENT_TRUST)
ifneq ($(RELEASE),)
docker tag $(TAG)$(SUFFIX) $(ORG)/$(IMAGE):$(RELEASE)
docker tag $(TAG)$(SUFFIX) $(ORG)/$(IMAGE):$(RELEASE)$(SUFFIX)
docker push $(ORG)/$(IMAGE):$(RELEASE)$(SUFFIX)
$(PUSH_MANIFEST) $(ORG)/$(IMAGE):$(RELEASE) $(DOCKER_CONTENT_TRUST)
endif