mirror of
https://github.com/linuxkit/linuxkit.git
synced 2026-04-05 10:33:00 +00:00
36 lines
977 B
YAML
36 lines
977 B
YAML
kernel:
|
|
image: linuxkit/kernel:4.14.71
|
|
cmdline: "console=ttyS0 console=ttyAMA0"
|
|
init:
|
|
- linuxkit/init:6eb0158059b056a1567236280880cb87f03ff008
|
|
- linuxkit/runc:6cf26a0403376de3b5396cb676b88eea4f37aff8
|
|
- linuxkit/containerd:d955db7cd28dbd7be8a17d7063cc6b7f1bf91f0a
|
|
- 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
|