mirror of
https://github.com/linuxkit/linuxkit.git
synced 2026-04-05 02:14:57 +00:00
37 lines
1.1 KiB
YAML
37 lines
1.1 KiB
YAML
kernel:
|
|
image: linuxkit/kernel:6.6.71
|
|
cmdline: "console=ttyS0 console=ttyAMA0"
|
|
init:
|
|
- linuxkit/init:680da6e6f79bb8236a095147d532cd2160e23c9f
|
|
- linuxkit/runc:2dfee46421e963d6c0d946137e46fe36fa606d29
|
|
- linuxkit/containerd:838b745e38e43309393675ce3cf04bee9047eb91
|
|
- linuxkit/ca-certificates:a4f15fe71bb0ad7560ff78f48504dd2af500a442
|
|
- linuxkit/memlogd:c5521cc1bb602f8b6343c071e05da596523a4196
|
|
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:8a0a9aa499adcd30fd6729a29e0567b14a4d468f
|
|
command: ["/usr/bin/logwrite", "-max-log-size", "1024"]
|
|
- name: check-the-logs
|
|
image: alpine:3.21
|
|
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
|