mirror of
https://github.com/linuxkit/linuxkit.git
synced 2026-01-13 17:28:39 +00:00
78 lines
2.8 KiB
YAML
78 lines
2.8 KiB
YAML
kernel:
|
|
image: linuxkit/kernel:4.9.44
|
|
cmdline: "console=ttyS0 page_poison=1"
|
|
init:
|
|
- linuxkit/init:2122f8b7202b383c1be0a91a02122b0c078ca6ac
|
|
- linuxkit/runc:a1b564248a0d0b118c11e61db9f84ecf41dd2d2a
|
|
- linuxkit/containerd:8e4aa6c09e9bceee8300a315c23e0333e187f5fa
|
|
- linuxkit/ca-certificates:e44b0a66df5a102c0e220f0066b0d904710dcb10
|
|
onboot:
|
|
- name: sysctl
|
|
image: linuxkit/sysctl:154913b72c6f1f33eb408609fca9963628e8c051
|
|
binds:
|
|
- /etc/sysctl.d/01-swarmd.conf:/etc/sysctl.d/01-swarmd.conf
|
|
- name: dhcpcd
|
|
image: linuxkit/dhcpcd:f3f5413abb78fae9020e35bd4788fa93df4530b7
|
|
command: ["/sbin/dhcpcd", "--nobackground", "-f", "/dhcpcd.conf", "-1"]
|
|
- name: format
|
|
image: linuxkit/format:158d992b7bf7ab984100c697d7e72161ea7d7382
|
|
- name: mount
|
|
image: linuxkit/mount:4fe245efb01384e42622c36302e13e386bbaeb08
|
|
command: ["/usr/bin/mountie", "/var/lib/swarmd"]
|
|
- name: metadata
|
|
image: linuxkit/metadata:da3138079c168e0c5608d8f3853366c113ed91d2
|
|
services:
|
|
- name: getty
|
|
image: linuxkit/getty:797cb79e0a229fcd16ebf44a0da74bcec03968ec
|
|
env:
|
|
- INSECURE=true
|
|
- name: qemu-ga
|
|
image: linuxkit/qemu-ga:7c845bfb09ec6807fc15bfd93ce5d5fcc591e999
|
|
binds:
|
|
- /dev/vport0p1:/dev/vport0p1
|
|
- name: rngd
|
|
image: linuxkit/rngd:558e86a36242bb74353bc9287b715ddb8567357e
|
|
- name: ntpd
|
|
image: linuxkit/openntpd:0d7befc79842849d0b88d6c3b64200e340d7cf67
|
|
- 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
|