Files
linuxkit/projects/swarmd/swarmd.yml
Justin Cormack ded8ebd280 add init hashes
Signed-off-by: Justin Cormack <justin.cormack@docker.com>
2017-07-31 21:11:33 +01:00

78 lines
2.8 KiB
YAML

kernel:
image: linuxkit/kernel:4.9.40
cmdline: "console=ttyS0 page_poison=1"
init:
- linuxkit/init:e3e376881faced5a890b6ceb3e8e899cbfd04ecd
- linuxkit/runc:842318b6ab524783554428c89a27d95af7bd2844
- linuxkit/containerd:1ff17c0908bed91a7bff252fba2e3d360d05a3de
- linuxkit/ca-certificates:67acf038c44bb191ebb704ec7bb39a1524052cdf
onboot:
- name: sysctl
image: linuxkit/sysctl:3f7a3f6f9e7e1d3f245c766fcf5c2b9e97382cfb
binds:
- /etc/sysctl.d/01-swarmd.conf:/etc/sysctl.d/01-swarmd.conf
- name: dhcpcd
image: linuxkit/dhcpcd:17423c1ccced74e3c005fd80486e8177841fe02b
command: ["/sbin/dhcpcd", "--nobackground", "-f", "/dhcpcd.conf", "-1"]
- name: format
image: linuxkit/format:efafddf9bc6165b5efaf09c532c15a1100a10e61
- name: mount
image: linuxkit/mount:a738ccad4e3e009b7c5f541226e9232a6287fa5d
command: ["/usr/bin/mountie", "/var/lib/swarmd"]
- name: metadata
image: linuxkit/metadata:f5d4299909b159db35f72547e4ae70bd76c42c6c
services:
- name: getty
image: linuxkit/getty:58620cff1b0bf8b5d144d087602115e996f18a02
env:
- INSECURE=true
- name: qemu-ga
image: linuxkit/qemu-ga:585e4f0161a4df7583d5e0479d7621040c1ee140
binds:
- /dev/vport0p1:/dev/vport0p1
- name: rngd
image: linuxkit/rngd:1516d5d70683a5d925fe475eb1b6164a2f67ac3b
- name: ntpd
image: linuxkit/openntpd:2874b66c9fa51fa5b4d11c8b50441eb94ee22a5a
- 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:cce587b5e67b7d3e088a2e527dafc5ad3edb6502
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