mirror of
https://github.com/linuxkit/linuxkit.git
synced 2026-01-13 18:52:13 +00:00
78 lines
2.8 KiB
YAML
78 lines
2.8 KiB
YAML
kernel:
|
|
image: linuxkit/kernel:4.9.54
|
|
cmdline: "console=ttyS0 page_poison=1"
|
|
init:
|
|
- linuxkit/init:98e95fb67e8afcf02c09ba927e4b357fec42977a
|
|
- linuxkit/runc:991ef358ad8fc1111d64f4d8071f2009cc561f6a
|
|
- linuxkit/containerd:eaf0d615cfceb9d854408dd3c80429ee8ac4d051
|
|
- linuxkit/ca-certificates:ea3c4c120f929f4f07ac8535d75933365b5e9582
|
|
onboot:
|
|
- name: sysctl
|
|
image: linuxkit/sysctl:53f0c724919e8f76ea06c44ee703330290b22669
|
|
binds:
|
|
- /etc/sysctl.d/01-swarmd.conf:/etc/sysctl.d/01-swarmd.conf
|
|
- name: dhcpcd
|
|
image: linuxkit/dhcpcd:aa685261ceb2557990dcfe9dd8824c6b9ec416e2
|
|
command: ["/sbin/dhcpcd", "--nobackground", "-f", "/dhcpcd.conf", "-1"]
|
|
- name: format
|
|
image: linuxkit/format:e7f06bd9bb96b663f8aab7d648a5dfc3ed7785fc
|
|
- name: mount
|
|
image: linuxkit/mount:80c6aeef04260eaa7c74a93594ea7c5a4ab2808e
|
|
command: ["/usr/bin/mountie", "/var/lib/swarmd"]
|
|
- name: metadata
|
|
image: linuxkit/metadata:4920d2b7f987c4cf67c5472308b0badcdfac4b2b
|
|
services:
|
|
- name: getty
|
|
image: linuxkit/getty:7abaf7b276c59f80891d92e9279e3e3ee8e2f512
|
|
env:
|
|
- INSECURE=true
|
|
- name: qemu-ga
|
|
image: linuxkit/qemu-ga:2f002fffcb6f5f65bc034b5c0fef60545631ff93
|
|
binds:
|
|
- /dev/vport0p1:/dev/vport0p1
|
|
- name: rngd
|
|
image: linuxkit/rngd:719e087b06dd14c29acd23fa07cccd036bbab4db
|
|
- name: ntpd
|
|
image: linuxkit/openntpd:8d32daf90ecf70b7e185cb7a2db53b4c539d371c
|
|
- name: weave
|
|
image: weaveworks/weave:2.0.1@sha256:2d70caac7db33365482cc923d40ff8d3ec1238ae7fe06a00b3dde310d09f226e # Must match swarmd/Dockerfile
|
|
command: ["/bin/sh", "/home/weave/weaver-wrapper"]
|
|
capabilities:
|
|
- all
|
|
pid: host
|
|
binds:
|
|
- /usr/local/bin/weaver-wrapper:/home/weave/weaver-wrapper
|
|
- /var:/var
|
|
- /var/lib/swarmd:/weavedb
|
|
- name: swarmd
|
|
image: linuxkitprojects/swarmd:89144a08c30ff753c23b1dad1f8127e9c1ed32e0
|
|
command: ["/usr/bin/swarmd", "--containerd-addr=/run/containerd/containerd.sock", "--log-level=debug", "--state-dir=/var/lib/swarmd"]
|
|
capabilities:
|
|
- all
|
|
pid: host
|
|
binds:
|
|
- /tmp:/tmp
|
|
- /run/containerd/containerd.sock:/run/containerd/containerd.sock
|
|
- /var/lib/containerd:/var/lib/containerd
|
|
- /var/lib/swarmd:/var/lib/swarmd
|
|
- /etc/resolv.conf:/etc/resolv.conf
|
|
files:
|
|
- path: /etc/sysctl.d/01-swarmd.conf
|
|
contents: 'net.ipv4.ip_forward = 1'
|
|
- path: usr/local/bin/weaver-wrapper
|
|
contents: |
|
|
/home/weave/weaver \
|
|
--weave-bridge=weave \
|
|
--datapath=datapath \
|
|
--docker-api="" \
|
|
--ipalloc-range=192.168.106.0/24 \
|
|
--http-addr=127.0.0.1:6784 \
|
|
--status-addr=127.0.0.1:6782 &
|
|
|
|
while [ ! -e /sys/class/net/weave/ ] ; do
|
|
sleep 1s
|
|
done
|
|
|
|
/home/weave/weave --local expose net:default
|
|
wait %1
|