mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-07-21 10:09:07 +00:00
Merge pull request #1914 from tych0/build-ima-kernels
Add ima kernel images
This commit is contained in:
commit
1a8e5a09a0
@ -3,7 +3,7 @@ run: ima-namespace-kernel
|
|||||||
../../bin/linuxkit run ima-namespace
|
../../bin/linuxkit run ima-namespace
|
||||||
|
|
||||||
ima-namespace-kernel: ima-namespace.yml
|
ima-namespace-kernel: ima-namespace.yml
|
||||||
../../bin/moby build ima-namespace
|
../../bin/moby build -output kernel+initrd ima-namespace
|
||||||
|
|
||||||
.PHONY: clean
|
.PHONY: clean
|
||||||
clean:
|
clean:
|
||||||
|
@ -1,12 +1,12 @@
|
|||||||
kernel:
|
kernel:
|
||||||
image: "linuxkit/kernel-ima:4.11.1-"
|
image: "linuxkit/kernel-ima:4.11.1-186dd3605ee7b23214850142f8f02b4679dbd148"
|
||||||
cmdline: "console=ttyS0 console=tty0 page_poison=1 ima_appraise=enforce_ns"
|
cmdline: "console=ttyS0 console=tty0 page_poison=1 ima_appraise=enforce_ns"
|
||||||
init:
|
init:
|
||||||
- linuxkit/init:b3740303f3d1e5689a84c87b7dfb48fd2a40a192
|
- linuxkit/init:b3740303f3d1e5689a84c87b7dfb48fd2a40a192
|
||||||
- linuxkit/runc:3a4e6cbf15470f62501b019b55e1caac5ee7689f
|
- linuxkit/runc:3a4e6cbf15470f62501b019b55e1caac5ee7689f
|
||||||
- linuxkit/containerd:b1766e4c4c09f63ac4925a6e4612852a93f7e73b
|
- linuxkit/containerd:b1766e4c4c09f63ac4925a6e4612852a93f7e73b
|
||||||
- linuxkit/ca-certificates:75cf419fb58770884c3464eb687ec8dfc704169d
|
- linuxkit/ca-certificates:75cf419fb58770884c3464eb687ec8dfc704169d
|
||||||
- linuxkit/ima-utils:fe119c7dac08884f4144cd106dc279ddd8b37517
|
- linuxkit/ima-utils:dfeb3896fd29308b80ff9ba7fe5b8b767e40ca29
|
||||||
onboot:
|
onboot:
|
||||||
- name: sysctl
|
- name: sysctl
|
||||||
image: "linuxkit/sysctl:b16a483897dd5f71be7e0c04cd090b05f52682e1"
|
image: "linuxkit/sysctl:b16a483897dd5f71be7e0c04cd090b05f52682e1"
|
||||||
|
@ -3,12 +3,14 @@ default: push
|
|||||||
|
|
||||||
IMAGE=ima-utils
|
IMAGE=ima-utils
|
||||||
DEPS=Dockerfile
|
DEPS=Dockerfile
|
||||||
|
ORG?=linuxkit
|
||||||
|
|
||||||
HASH?=$(shell git ls-tree HEAD -- ../$(notdir $(CURDIR)) | awk '{print $$3}')
|
HASH?=$(shell git ls-tree HEAD -- ../$(notdir $(CURDIR)) | awk '{print $$3}')
|
||||||
|
|
||||||
tag: $(DEPS)
|
tag: $(DEPS)
|
||||||
docker build --no-cache -t linuxkit/$(IMAGE):$(HASH) .
|
docker pull $(ORG)/$(IMAGE):$(HASH) || \
|
||||||
|
docker build --no-cache -t $(ORG)/$(IMAGE):$(HASH) .
|
||||||
|
|
||||||
push: tag
|
push: tag
|
||||||
docker pull linuxkit/$(IMAGE):$(HASH) || \
|
docker pull $(ORG)/$(IMAGE):$(HASH) || \
|
||||||
docker push linuxkit/$(IMAGE):$(HASH)
|
docker push $(ORG)/$(IMAGE):$(HASH)
|
||||||
|
Loading…
Reference in New Issue
Block a user