Files
linuxkit/examples/logging.yml
Avi Deitcher 0b677673b5 Update package tags
Signed-off-by: Avi Deitcher <avi@deitcher.net>
2025-01-10 10:56:54 +02:00

31 lines
1.3 KiB
YAML

# Simple example of using an external logging service
kernel:
image: linuxkit/kernel:6.6.13
cmdline: "console=tty0 console=ttyS0 console=ttyAMA0"
init:
- linuxkit/init:7135424f6836ee166d1199e88cfb95ee88efaf91
- linuxkit/runc:efcece75889aec4e2de0d95ba27ccc46438522b3
- linuxkit/containerd:ce79d5d4ab9c46f4763735c6e4ab5c51c3feb5d8
- linuxkit/ca-certificates:d4cc1b82c73d272e94d0e71ea375fe56b0c0626a
- linuxkit/memlogd:b4adfc82dcb986c0a7d44589de17846c398783fd
onboot:
- name: sysctl
image: linuxkit/sysctl:c5f4b4895844b993dce4e8b35fd8263a6b557807
- name: dhcpcd
image: linuxkit/dhcpcd:330839488cd122db3c44738e265c035c9729a963
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:bae9e3d4861173bacf78f14a4fe44997a430d13b
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:f936b4e3d5a32dba5520c384741f922230640777
- name: kmsg
image: linuxkit/kmsg:01c6c16292986971d913aad77a90dfee4f5a06f2