Files
linuxkit/examples/logging.yml
Avi Deitcher 6b5be65a33 Update package tags
Signed-off-by: Avi Deitcher <avi@deitcher.net>
2024-01-27 22:28:11 +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:31dcd928602e39ee752843ebcf6c35cbae73c883
- linuxkit/runc:7ecf2e5253905855fb554b072d42903f7829c8b6
- linuxkit/containerd:f645aa2f8aa58023149d7766725039572a2ebeb5
- linuxkit/ca-certificates:4ed09a382de2b3ba2143f4270375b3bd6e973fb5
- linuxkit/memlogd:d6659705676114da65ba67cf006958564c2dc797
onboot:
- name: sysctl
image: linuxkit/sysctl:2f575c3d127824eb8d059673c538c440d22f19f5
- name: dhcpcd
image: linuxkit/dhcpcd:0cca76e71466fc6128fad585549b70538855f254
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:ccac1189f78ff466b76d097a0b7b7236ea54de84
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:f6a34e9d8a584926a2aa50907c9ace387e9987a7
- name: kmsg
image: linuxkit/kmsg:e103cf6b6d478ed7118af34beac49cf0d90cd439