mirror of
https://github.com/linuxkit/linuxkit.git
synced 2026-02-22 12:35:39 +00:00
31 lines
1.3 KiB
YAML
31 lines
1.3 KiB
YAML
# Simple example of using an external logging service
|
|
kernel:
|
|
image: linuxkit/kernel:6.12.52
|
|
cmdline: "console=tty0 console=ttyS0 console=ttyAMA0"
|
|
init:
|
|
- linuxkit/init:b5506cc74a6812dc40982cacfd2f4328f8a4b12a
|
|
- linuxkit/runc:3c079dfa25a05653db203c2abfb329c4e08ba6f9
|
|
- linuxkit/containerd:ba19f64efd3331a8fd0a33e00eabd14f6ee1780e
|
|
- linuxkit/ca-certificates:256f1950df59f2f209e9f0b81374177409eb11de
|
|
- linuxkit/memlogd:19b0fdec83dded95e0a2f97a8ca6868f5e83c401
|
|
onboot:
|
|
- name: sysctl
|
|
image: linuxkit/sysctl:43ac1d39da329c3567fcb9689e5ca99de6d169b6
|
|
- name: dhcpcd
|
|
image: linuxkit/dhcpcd:b87e9ececac55a65eaa592f4dd8b4e0c3009afdb
|
|
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:a86d74c8f89be8956330c3b115b0b1f2e09ef6e0
|
|
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:24e6a76c2d45a7679d4f53db9ea377373b543dc7
|
|
- name: kmsg
|
|
image: linuxkit/kmsg:c4d8d509cf496faa21c184ae7fdff6fddc6e186d
|