mirror of
https://github.com/linuxkit/linuxkit.git
synced 2026-04-05 12:52:32 +00:00
36 lines
977 B
YAML
36 lines
977 B
YAML
kernel:
|
|
image: linuxkit/kernel:4.14.82
|
|
cmdline: "console=ttyS0 console=ttyAMA0"
|
|
init:
|
|
- linuxkit/init:c563953a2277eb73a89d89f70e4b6dcdcfebc2d1
|
|
- linuxkit/runc:83d0edb4552b1a5df1f0976f05f442829eac38fe
|
|
- linuxkit/containerd:326b096cd5fbab0f864e52721d036cade67599d6
|
|
- 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
|