forked from tinkerbell/hook
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhook_debug.yaml
80 lines (80 loc) · 2.01 KB
/
hook_debug.yaml
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
kernel:
image: quay.io/tinkerbell/hook-kernel:5.10.57
cmdline: "console=tty0 console=ttyS0 console=ttyAMA0 console=ttysclp0"
init:
- linuxkit/init:v0.8
- linuxkit/runc:v0.8
- linuxkit/containerd:v0.8
- linuxkit/ca-certificates:v0.8
onboot:
- name: sysctl
image: linuxkit/sysctl:v0.8
- name: sysfs
image: linuxkit/sysfs:v0.8
- name: dhcpcd
image: linuxkit/dhcpcd:v0.8
command: ["/sbin/dhcpcd", "--nobackground", "-f", "/dhcpcd.conf", "-1"]
services:
- name: getty
image: linuxkit/getty:v0.8
env:
- INSECURE=true
- name: rngd
image: linuxkit/rngd:v0.8
- name: dhcpcd
image: linuxkit/dhcpcd:v0.8
- name: ntpd
image: linuxkit/openntpd:v0.8
- name: docker
image: quay.io/tinkerbell/hook-docker:0.0
capabilities:
- all
net: host
pid: host
mounts:
- type: cgroup
options: ["rw","nosuid","noexec","nodev","relatime"]
binds:
- /etc/resolv.conf:/etc/resolv.conf
- /lib/modules:/lib/modules
- /etc/docker/daemon.json:/etc/docker/daemon.json
- /var/run/docker:/var/run
- /var/run/worker:/worker
- /dev/console:/dev/console
- /dev:/dev
- /var/run/images:/var/lib/docker
runtime:
mkdir:
- /var/run/images
- /var/run/docker
- /var/run/worker
- name: bootkit
image: quay.io/tinkerbell/hook-bootkit:0.0
capabilities:
- all
net: host
mounts:
- type: cgroup
options: ["rw","nosuid","noexec","nodev","relatime"]
binds:
- /var/run/docker:/var/run
runtime:
mkdir:
- /var/run/docker
- name: sshd
image: linuxkit/sshd:666b4a1a323140aa1f332826164afba506abf597
files:
- path: etc/docker/daemon.json
contents: '{"debug": true}'
- path: root/.ssh/authorized_keys
source: ~/.ssh/id_rsa.pub
mode: "0600"
optional: true
- path: etc/profile.d/local.sh
contents: |
alias docker='ctr -n services.linuxkit tasks exec --tty --exec-id shell docker docker'
mode: "0644"
trust:
org:
- linuxkit
- library