Files
linuxkit/examples/logging.yml
Avi Deitcher 7fa10ce83a Update package tags
Signed-off-by: Avi Deitcher <avi@deitcher.net>
2024-01-27 21:09:58 +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:5251073a3d3e52881bf2697f7dfabac6eedfd569
- linuxkit/runc:49628804b3a39b0a0cfab046dd80b76a4fd87b5a
- linuxkit/containerd:c35f10fb8127841b4eb82ddfcebd5d5a54bad0e7
- linuxkit/ca-certificates:945ac3f0c1a31535d37ff77003fc30dbd71da6bb
- linuxkit/memlogd:56c1b1f1abb0d10721e9303ac81b7819d4cd4a68
onboot:
- name: sysctl
image: linuxkit/sysctl:7c0059d1ad7d86127d990474b6e5f17297c07bf5
- name: dhcpcd
image: linuxkit/dhcpcd:fc2b5bf40b13df746ee66f354672bf687a540ce8
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:d421b06d0a1ae118e2af025cb7a3637f808a755b
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:d4eb7b4f0ae7fa9139aa018a771e633c21370917
- name: kmsg
image: linuxkit/kmsg:ea3719e815703998984569719046f583d3bff2ba