mirror of
https://github.com/linuxkit/linuxkit.git
synced 2026-04-05 01:43:51 +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:6b3755e47f00d6027321d3fca99a19af6504be75
|
|
- linuxkit/runc:52f92cb577879ce4cfe4e89be2d63af82523fc92
|
|
- linuxkit/containerd:ed8e8f92e24dd4b94260cf147594ae3fd13a2182
|
|
- linuxkit/ca-certificates:ea3c4c120f929f4f07ac8535d75933365b5e9582
|
|
onboot:
|
|
- name: sysctl
|
|
image: linuxkit/sysctl:1644bf07edbcaf5ce0bb764fa925b544183547f9
|
|
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:be811ded880af37a916f23bc9ddb274026ccc514
|
|
- name: mount
|
|
image: linuxkit/mount:ef2e2106212b2d333b548821191f04da984ef48f
|
|
command: ["/usr/bin/mountie", "/var/lib/swarmd"]
|
|
- name: metadata
|
|
image: linuxkit/metadata:c385bb2dce56acf8b831bbf7fca3c8fc836ded66
|
|
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:45ed7759dd927f4cce3863073ea2e0da1d52a427
|
|
- 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:668f9f78502d4069841552219845dc57dc846492
|
|
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
|