forked from linuxkit/linuxkit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
linuxkit-template.yml
38 lines (38 loc) · 918 Bytes
/
linuxkit-template.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
kernel:
image: linuxkit/kernel:6.6.13
cmdline: "console=tty0 console=ttyS0 console=ttyAMA0"
init:
- "@pkg:./pkg/init"
- "@pkg:./pkg/runc"
- "@pkg:./pkg/containerd"
- "@pkg:./pkg/ca-certificates"
onboot:
- name: sysctl
image: "@pkg:./pkg/sysctl"
- name: dhcpcd
image: "@pkg:./pkg/dhcpcd"
command: ["/sbin/dhcpcd", "--nobackground", "-f", "/dhcpcd.conf", "-1"]
onshutdown:
- name: shutdown
image: busybox:latest
command: ["/bin/echo", "so long and thanks for all the fish"]
services:
- name: getty
image: "@pkg:./pkg/getty"
env:
- INSECURE=true
- name: rngd
image: "@pkg:./pkg/rngd"
- name: nginx
image: nginx:1.19.5-alpine
capabilities:
- CAP_NET_BIND_SERVICE
- CAP_CHOWN
- CAP_SETUID
- CAP_SETGID
- CAP_DAC_OVERRIDE
binds:
- /etc/resolv.conf:/etc/resolv.conf
files:
- path: etc/linuxkit-config
metadata: yaml