linuxkit/projects/miragesdk/examples/mirage-dhcp.yml
Avi Deitcher 14c29db5c2
Containerd v2.0.3 (#4112)
* containerd to semver v2.0.3

Signed-off-by: Avi Deitcher <avi@deitcher.net>

* containerd v2.0.3 plus commits to fix blkdiscard

Signed-off-by: Avi Deitcher <avi@deitcher.net>

* update containerd-dev dependencies

Signed-off-by: Avi Deitcher <avi@deitcher.net>

* updated pkg/init and pkg/containerd deps

Signed-off-by: Avi Deitcher <avi@deitcher.net>

---------

Signed-off-by: Avi Deitcher <avi@deitcher.net>
2025-03-06 17:12:07 +02:00

41 lines
1.3 KiB
YAML

kernel:
image: linuxkit/kernel:6.6.71
cmdline: "console=ttyS0 page_poison=1"
init:
- linuxkit/init:8eea386739975a43af558eec757a7dcb3a3d2e7b
- linuxkit/runc:667e7ea2c426a2460ca21e3da065a57dbb3369c9
- linuxkit/containerd:a988a1a8bcbacc2c0390ca0c08f949e2b4b5915d
onboot:
- name: sysctl
image: linuxkit/sysctl:5f56434b81004b50b47ed629b222619168c2bcdf
- 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:9bdd85427ef99640276d97a32a7a3cc31bb017b3
- name: getty
image: linuxkit/getty:05eca453695984a69617f1f1f0bcdae7f7032967
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'