mirror of
https://github.com/linuxkit/linuxkit.git
synced 2026-01-15 15:52:49 +00:00
36 lines
977 B
YAML
36 lines
977 B
YAML
kernel:
|
|
image: linuxkit/kernel:4.19.25
|
|
cmdline: "console=ttyS0 console=ttyAMA0"
|
|
init:
|
|
- linuxkit/init:a2166a6048ce041eebe005ab99454cfdeaa5c848
|
|
- linuxkit/runc:069d5cd3cc4f0aec70e4af53aed5d27a21c79c35
|
|
- linuxkit/containerd:2aff4d486220667364b2971b5fc6225bf165a069
|
|
- linuxkit/ca-certificates:v0.6
|
|
- linuxkit/memlogd:v0.6
|
|
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:v0.6
|
|
command: ["/usr/bin/logwrite", "-max-log-size", "1024"]
|
|
- name: check-the-logs
|
|
image: alpine:3.8
|
|
binds:
|
|
- /check.sh:/check.sh
|
|
- /dev/console:/dev/console
|
|
- /var/log:/var/log
|
|
command: ["sh", "./check.sh"]
|
|
pid: host
|
|
capabilities:
|
|
- CAP_SYS_BOOT
|
|
files:
|
|
- path: check.sh
|
|
source: ./check.sh
|
|
trust:
|
|
org:
|
|
- linuxkit
|
|
image:
|
|
- alpine:3.8
|