mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-12-24 12:35:58 +00:00
86 lines
3.7 KiB
YAML
86 lines
3.7 KiB
YAML
# This is a blueprint for building the open source components of Docker for Mac
|
|
kernel:
|
|
image: linuxkit/kernel:4.9.76
|
|
cmdline: "console=ttyS0 page_poison=1"
|
|
init:
|
|
- linuxkit/vpnkit-expose-port:728e5fe9e6b818d9825b28826b929ae75a386e9e # install vpnkit-expose-port and vpnkit-iptables-wrapper on host
|
|
- linuxkit/init:81fc00e879cf56fa6f058f6c891b012bc867de7f
|
|
- linuxkit/runc:abc3f292653e64a2fd488e9675ace19a55ec7023
|
|
- linuxkit/containerd:e58a382c33bb509ba3e0e8170dfaa5a100504c5b
|
|
- linuxkit/ca-certificates:de21b84d9b055ad9dcecc57965b654a7a24ef8e0
|
|
onboot:
|
|
# support metadata for optional config in /var/config
|
|
- name: metadata
|
|
image: linuxkit/metadata:2af15c9f4b0e73515c219b7cc14e6e65e1d4fd6d
|
|
- name: sysctl
|
|
image: linuxkit/sysctl:4c1ef93bb5eb1a877318db4b2daa6768ed002e21
|
|
- name: sysfs
|
|
image: linuxkit/sysfs:1284b4a7061a5cc426425f0fb00748192505a05f
|
|
- name: binfmt
|
|
image: linuxkit/binfmt:4b1d7a8dab03c09855fb4b6060a42b2294674b47
|
|
# Format and mount the disk image in /var/lib/docker
|
|
- name: format
|
|
image: linuxkit/format:e945016ec780a788a71dcddc81497d54d3b14bc7
|
|
- name: mount
|
|
image: linuxkit/mount:b346ec277b7074e5c9986128a879c10a1d18742b
|
|
command: ["/usr/bin/mountie", "/var/lib"]
|
|
# make a swap file on the mounted disk
|
|
- name: swap
|
|
image: linuxkit/swap:b3d5db11b14168874a01b5ea4398186321be836f
|
|
command: ["/swap.sh", "--path", "/var/lib/swap", "--size", "1024M"]
|
|
# mount-vpnkit mounts the 9p share used by vpnkit to coordinate port forwarding
|
|
- name: mount-vpnkit
|
|
image: alpine:3.7
|
|
binds:
|
|
- /var/:/host_var:rbind,rshared
|
|
capabilities:
|
|
- CAP_SYS_ADMIN
|
|
rootfsPropagation: shared
|
|
command: ["sh", "-c", "mkdir -p /host_var/vpnkit/port && mount -v -t 9p -o trans=virtio,dfltuid=1001,dfltgid=50,version=9p2000 port /host_var/vpnkit"]
|
|
# move logs to the mounted disk (this is a temporary fix until we can limit the log sizes)
|
|
- name: move-logs
|
|
image: alpine:3.7
|
|
binds:
|
|
- /var:/host_var
|
|
command: ["sh", "-c", "mv -v /host_var/log /host_var/lib && ln -vs /var/lib/log /host_var/log"]
|
|
- name: dhcpcd
|
|
image: linuxkit/dhcpcd:0d59a6cc03412289ef4313f2491ec666c1715cc9
|
|
command: ["/sbin/dhcpcd", "--nobackground", "-f", "/dhcpcd.conf", "-1"]
|
|
services:
|
|
# Enable acpi to shutdown on power events
|
|
- name: acpid
|
|
image: linuxkit/acpid:fa37afe931844fb834e1906ec244d13b031741b9
|
|
# Enable getty for easier debugging
|
|
- name: getty
|
|
image: linuxkit/getty:22e27189b6b354e1d5d38fc0536a5af3f2adb79f
|
|
env:
|
|
- INSECURE=true
|
|
# Run ntpd to keep time synchronised in the VM
|
|
- name: ntpd
|
|
image: linuxkit/openntpd:536e5947607c9e6a6771957c2ff817230cba0d3c
|
|
# VSOCK to unix domain socket forwarding. Forwards guest /var/run/docker.sock
|
|
# to a socket on the host.
|
|
- name: vsudd
|
|
image: linuxkit/vsudd:e4e8de4d4fae94e851fbf3d5a0455d766747ac2b
|
|
binds:
|
|
- /var/run:/var/run
|
|
command: ["/vsudd", "-inport", "2376:unix:/var/run/docker.sock"]
|
|
# vpnkit-forwarder forwards network traffic to/from the host via VSOCK port 62373.
|
|
# It needs access to the vpnkit 9P coordination share
|
|
- name: vpnkit-forwarder
|
|
image: linuxkit/vpnkit-forwarder:89b97912eb8eb14acbf9f6304a92aa366e59d49e
|
|
binds:
|
|
- /var/vpnkit:/port
|
|
net: host
|
|
command: ["/vpnkit-forwarder", "-vsockPort", "62373"]
|
|
# Monitor for image deletes and invoke a TRIM on the container filesystem
|
|
- name: trim-after-delete
|
|
image: linuxkit/trim-after-delete:5dad8b705f9c0ab2bb7e43a8cada06f3422feb54
|
|
# When the host resumes from sleep, force a clock resync
|
|
- name: host-timesync-daemon
|
|
image: linuxkit/host-timesync-daemon:085e1910de6f311f96a823eaa10ffd6d92ec9679
|
|
|
|
trust:
|
|
org:
|
|
- linuxkit
|