mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-09-20 08:12:30 +00:00
Merge pull request #2571 from ijc/linuxkit-pkg
Implement package build, push and show-tag in linuxkit tool
This commit is contained in:
@@ -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
|
||||
|
||||
|
@@ -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
2
pkg/auditd/build.yml
Normal file
@@ -0,0 +1,2 @@
|
||||
image: auditd
|
||||
network: true
|
@@ -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
3
pkg/binfmt/build.yml
Normal file
@@ -0,0 +1,3 @@
|
||||
image: binfmt
|
||||
arches:
|
||||
- amd64
|
@@ -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
1
pkg/init/build.yml
Normal file
@@ -0,0 +1 @@
|
||||
image: init
|
@@ -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
|
||||
|
Reference in New Issue
Block a user