Files
linuxkit/examples/logging.yml
Avi Deitcher a2c6ed4205 noop to force pkg rebuild
Signed-off-by: Avi Deitcher <avi@deitcher.net>
2023-11-20 12:05:52 +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:07d37c3ae7fad5ddcb54c8dc65774ae050851f04
- linuxkit/runc:2aabf16bc8a1b94e015ee53fa2e7a77ab1883a80
- linuxkit/containerd:95d5f0d2d8dc63bd87e96b7b39cf026cb86125c9
- linuxkit/ca-certificates:4de36e93dc87f7ccebd20db616ed10d381911d32
- linuxkit/memlogd:1a00c05fea660cf66b9f532c98f718ef63698cb5
onboot:
- name: sysctl
image: linuxkit/sysctl:c6f23919b8610c7645a89a89f863c6209bc84bee
- name: dhcpcd
image: linuxkit/dhcpcd:2a8ed08fea442909ba10f950d458191ed3647115
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:e74e6cad132403d1a6d6cd25b136a7c69c99f3f7
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:107c407b3443fb04eb0a6f69182653836c4e62f9
- name: kmsg
image: linuxkit/kmsg:ba81a0a3029b4bb7ee455f73892da9667397ca5b