Files
linuxkit/test/cases/040_packages/012_logwrite/test.yml
David Scott 341c4a4f5e Update shas for linuxkit/runc
./scripts/update-component-sha.sh linuxkit/runc:21dbbda709ae138de0af6b0c7e4ae49525db5e88  linuxkit/runc:9f7aad4eb5e4360cc9ed8778a5c501cce6e21601

Signed-off-by: David Scott <dave@recoil.org>
2021-12-16 19:10:58 +01:00

37 lines
1.1 KiB
YAML

kernel:
image: linuxkit/kernel:5.10.76
cmdline: "console=ttyS0 console=ttyAMA0"
init:
- linuxkit/init:eb597ef74d808b5320ad1060b1620a6ac31e7ced
- linuxkit/runc:9f7aad4eb5e4360cc9ed8778a5c501cce6e21601
- linuxkit/containerd:2f0907913dd54ab5186006034eb224a0da12443e
- linuxkit/ca-certificates:c1c73ef590dffb6a0138cf758fe4a4305c9864f4
- linuxkit/memlogd:fe4a123b619a7dfffc2ba1297dd03b4ac90e3dd7
services:
# A service which generates logs of log messages
- name: fill-the-logs
image: alpine
command: ["/bin/sh", "-c", "while /bin/true; do echo hello $(date); done" ]
- name: write-and-rotate-logs
image: linuxkit/logwrite:568325cf294338b37446943c2b86a8cd8dc703db
command: ["/usr/bin/logwrite", "-max-log-size", "1024"]
- name: check-the-logs
image: alpine:3.13
binds:
- /check.sh:/check.sh
- /dev/console:/dev/console
- /var/log:/var/log
devices:
- path: "/dev/console"
type: c
major: 5
minor: 1
mode: "0666"
command: ["sh", "./check.sh"]
pid: host
capabilities:
- CAP_SYS_BOOT
files:
- path: check.sh
source: ./check.sh