mirror of
https://github.com/linuxkit/linuxkit.git
synced 2026-05-11 11:44:24 +00:00
36 lines
977 B
YAML
36 lines
977 B
YAML
kernel:
|
|
image: linuxkit/kernel:4.14.56
|
|
cmdline: "console=ttyS0 console=ttyAMA0"
|
|
init:
|
|
- linuxkit/init:598439400c1e4bf8c25c63c98b2d3e83b1382be9
|
|
- linuxkit/runc:v0.5
|
|
- linuxkit/containerd:0784cc754edb296b996c3510abbdf69686ef0f24
|
|
- linuxkit/ca-certificates:v0.5
|
|
- linuxkit/memlogd:v0.5
|
|
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:d9778c0d538094d398cf0cbfc89277aeca67f1be
|
|
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
|