Files
linuxkit/examples/logging.yml
Avi Deitcher 1b3e13c880 Update package tags
Signed-off-by: Avi Deitcher <avi@deitcher.net>
2024-01-25 23:24:06 +02:00

31 lines
1.3 KiB
YAML

# Simple example of using an external logging service
kernel:
image: linuxkit/kernel:5.10.104
cmdline: "console=tty0 console=ttyS0 console=ttyAMA0"
init:
- linuxkit/init:817099ace2d56ea2d20c7702ab8e1a8abc7d89fd
- linuxkit/runc:59c40661f2174ca6752d73086b91d63eeb98d021
- linuxkit/containerd:0dab9a4e2b9aa7f034873881a08890fd40b2755d
- linuxkit/ca-certificates:6003d7e78387f1fbb35bf1d1af300120be97f94b
- linuxkit/memlogd:50df5373d77ee7a7f121a0a83e7b20eee96a2492
onboot:
- name: sysctl
image: linuxkit/sysctl:f8a06fea01bfcb322e913213e22d35790168ed01
- name: dhcpcd
image: linuxkit/dhcpcd:a58543e8b40a29b3cd0c5d1e42ce21b71a8abcef
command: ["/sbin/dhcpcd", "--nobackground", "-f", "/dhcpcd.conf", "-1"]
services:
# Inside the getty type `/proc/1/root/usr/bin/logread -F` to follow the log
- name: getty
image: linuxkit/getty:9b8e6b510b49da196a1e412aa95f364e3dd16576
env:
- INSECURE=true
# A service which generates log messages for testing
- name: write-to-the-logs
image: alpine:3.13
command: ["/bin/sh", "-c", "while /bin/true; do echo hello $(date); sleep 1; done" ]
- name: write-and-rotate-logs
image: linuxkit/logwrite:de7ed802f84a3640e930a4a2fccf0b1ca2e25a00
- name: kmsg
image: linuxkit/kmsg:114cd10aba9f28530410f09cebee5777522b2f9e