mirror of
https://github.com/linuxkit/linuxkit.git
synced 2026-01-15 16:23:49 +00:00
36 lines
978 B
YAML
36 lines
978 B
YAML
kernel:
|
|
image: linuxkit/kernel:5.4.30
|
|
cmdline: "console=ttyS0 console=ttyAMA0"
|
|
init:
|
|
- linuxkit/init:a0246dd478a24abbee0a4cede99662ffc4931691
|
|
- linuxkit/runc:69b4a35eaa22eba4990ee52cccc8f48f6c08ed03
|
|
- linuxkit/containerd:09553963ed9da626c25cf8acdf6d62ec37645412
|
|
- linuxkit/ca-certificates:v0.7
|
|
- linuxkit/memlogd:v0.7
|
|
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.7
|
|
command: ["/usr/bin/logwrite", "-max-log-size", "1024"]
|
|
- name: check-the-logs
|
|
image: alpine:3.11
|
|
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.11
|