mirror of
https://github.com/linuxkit/linuxkit.git
synced 2026-04-03 04:32:40 +00:00
35 lines
1.3 KiB
YAML
35 lines
1.3 KiB
YAML
# Simple example of using an external logging service
|
|
kernel:
|
|
image: linuxkit/kernel:4.14.54
|
|
cmdline: "console=tty0 console=ttyS0 console=ttyAMA0"
|
|
init:
|
|
- linuxkit/init:317b039710f39b0263981cff25cf873043baf561
|
|
- linuxkit/runc:01b4f0706d999f9065ef44492689e43d0bcd83c5
|
|
- linuxkit/containerd:9924cc405996bc43a61e050e70284372d2cb09b8
|
|
- linuxkit/ca-certificates:ce2692e89d2be341b0d3caa0b0aa01b37d5d0694
|
|
- linuxkit/memlogd:19e58ab6ae2c6be1751260aa60e91c441eda1294
|
|
onboot:
|
|
- name: sysctl
|
|
image: linuxkit/sysctl:6f96e509c7383b31dfdd2c3e9fa01c6ab3e4c586
|
|
- name: dhcpcd
|
|
image: linuxkit/dhcpcd:0aa201ad1a4c134f0ed6ab2cec23602d5ee73d7f
|
|
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:3763a7fc3fddedc185bbd6f7f583f729e57fbeda
|
|
env:
|
|
- INSECURE=true
|
|
# A service which generates log messages for testing
|
|
- name: write-to-the-logs
|
|
image: alpine
|
|
command: ["/bin/sh", "-c", "while /bin/true; do echo hello $(date); sleep 1; done" ]
|
|
- name: write-and-rotate-logs
|
|
image: linuxkit/logwrite:7859c102a963828fd9c5aa3837db9600483220c7
|
|
- name: kmsg
|
|
image: linuxkit/kmsg:3dfa0d5b4027ecc16089f27fbcffa15d6aa5438e
|
|
trust:
|
|
org:
|
|
- linuxkit
|
|
- library
|