mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-11-12 15:25:23 +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.19.26
|
|
cmdline: "console=tty0 console=ttyS0 console=ttyAMA0"
|
|
init:
|
|
- linuxkit/init:005807f5c6a74e23f485a6d1657818bdccb70cd0
|
|
- linuxkit/runc:606971451ea29b4238029804ca638f9f85caf5af
|
|
- linuxkit/containerd:6e6841be5ad15c30752d81d121b247fa3ae08c97
|
|
- linuxkit/ca-certificates:906c46a26fd2df271bf64c0259bf2267f7593213
|
|
- linuxkit/memlogd:3d74c1153f99948d92c0fa9c759f816ab48d9855
|
|
onboot:
|
|
- name: sysctl
|
|
image: linuxkit/sysctl:713e535f2d4e4c74aba50cc7f73e3826b2dd3857
|
|
- name: dhcpcd
|
|
image: linuxkit/dhcpcd:85738d3d2f152a7879e17a61444f7714b858c2ee
|
|
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:01993189b8c583dc91cbbc7d4be131832c0fc205
|
|
env:
|
|
- INSECURE=true
|
|
# A service which generates log messages for testing
|
|
- name: write-to-the-logs
|
|
image: alpine:3.9
|
|
command: ["/bin/sh", "-c", "while /bin/true; do echo hello $(date); sleep 1; done" ]
|
|
- name: write-and-rotate-logs
|
|
image: linuxkit/logwrite:62cbf48ee2fcd374f26de7b901adc287ff6f4696
|
|
- name: kmsg
|
|
image: linuxkit/kmsg:9329a7bb25b27974d74b765fe15d5f1b76609198
|
|
trust:
|
|
org:
|
|
- linuxkit
|
|
- library
|