mirror of
https://github.com/linuxkit/linuxkit.git
synced 2026-04-11 18:21:47 +00:00
Don't rely on systctl test package. Instead, add the check shell script to the image and execute it with a standard Alpine image. While at it, make the test more verbose. Signed-off-by: Rolf Neugebauer <rolf.neugebauer@docker.com>
31 lines
781 B
YAML
31 lines
781 B
YAML
kernel:
|
|
image: "linuxkit/kernel:4.9.x"
|
|
cmdline: "console=ttyS0 page_poison=1"
|
|
init:
|
|
- linuxkit/init:4fc8aa82ab34d62d510575c8fbe0c58b7ba9c480
|
|
- linuxkit/runc:3a4e6cbf15470f62501b019b55e1caac5ee7689f
|
|
- linuxkit/containerd:b1766e4c4c09f63ac4925a6e4612852a93f7e73b
|
|
onboot:
|
|
- name: sysctl
|
|
image: "linuxkit/sysctl:b16a483897dd5f71be7e0c04cd090b05f52682e1"
|
|
- name: test
|
|
image: "alpine:3.6"
|
|
net: host
|
|
pid: host
|
|
ipc: host
|
|
readonly: true
|
|
binds:
|
|
- /check.sh:/check.sh
|
|
command: ["sh", "./check.sh"]
|
|
- name: poweroff
|
|
image: "linuxkit/poweroff:a8f1e4ad8d459f1fdaad9e4b007512cb3b504ae8"
|
|
command: ["/bin/sh", "/poweroff.sh", "10"]
|
|
files:
|
|
- path: check.sh
|
|
source: ./check.sh
|
|
trust:
|
|
org:
|
|
- linuxkit
|
|
image:
|
|
- alpine:3.6
|