Files
linuxkit/projects/miragesdk/examples/mirage-dhcp.yml
Avi Deitcher a2c6ed4205 noop to force pkg rebuild
Signed-off-by: Avi Deitcher <avi@deitcher.net>
2023-11-20 12:05:52 +02:00

41 lines
1.3 KiB
YAML

kernel:
image: linuxkit/kernel:5.10.104
cmdline: "console=ttyS0 page_poison=1"
init:
- linuxkit/init:07d37c3ae7fad5ddcb54c8dc65774ae050851f04
- linuxkit/runc:2aabf16bc8a1b94e015ee53fa2e7a77ab1883a80
- linuxkit/containerd:95d5f0d2d8dc63bd87e96b7b39cf026cb86125c9
onboot:
- name: sysctl
image: linuxkit/sysctl:c6f23919b8610c7645a89a89f863c6209bc84bee
- name: dhcp-client
image: miragesdk/dhcp-client:22aa9d527820534295a8cd59901c0c5197af6585
net: host
capabilities:
- CAP_NET_ADMIN # to bring eth0 up
- CAP_NET_RAW # to read /dev/eth0
- CAP_SYS_ADMIN # for runc (unshare)
- CAP_SETGID # for runc (setns)
mounts: # for runc
- type: cgroup
options: ["rw","nosuid","noexec","nodev","relatime"]
binds:
- /var/run/dhcp-client:/data
- /usr/bin/runc:/usr/bin/runc # for runc
- /run/runc:/run/runc # for runc
- /sbin:/sbin # for ifconfig
- /bin:/bin # for ifconfig
- /lib:/lib # for ifconfig
services:
- name: sshd
image: linuxkit/sshd:62036c2a279715d05e8298b9269a0659964f2619
- name: getty
image: linuxkit/getty:e74e6cad132403d1a6d6cd25b136a7c69c99f3f7
env:
- INSECURE=true
files:
- path: var/run/dhcp-client/README
contents: 'data for dhcp-client'
- path: root/.ssh/authorized_keys
contents: '#your SSH key here'