mirror of
https://github.com/linuxkit/linuxkit.git
synced 2026-01-05 13:48:49 +00:00
78 lines
2.7 KiB
YAML
78 lines
2.7 KiB
YAML
kernel:
|
|
image: linuxkit/kernel:4.9.39
|
|
cmdline: "console=ttyS0 page_poison=1"
|
|
init:
|
|
- linuxkit/init:d049e7b2074da5cd699a27defb47eb101142455d
|
|
- linuxkit/runc:d5cbeb95bdafedb82ad2cf11cff1a5da7fcae630
|
|
- linuxkit/containerd:e33e0534d6fca88e1eb86897a1ea410b4a5d722e
|
|
- linuxkit/ca-certificates:67acf038c44bb191ebb704ec7bb39a1524052cdf
|
|
onboot:
|
|
- name: sysctl
|
|
image: linuxkit/sysctl:d1a43c7c91e92374766f962dc8534cf9508756b0
|
|
binds:
|
|
- /etc/sysctl.d/01-swarmd.conf:/etc/sysctl.d/01-swarmd.conf
|
|
- name: dhcpcd
|
|
image: linuxkit/dhcpcd:4b7b8bb024cebb1bbb9c8026d44d7cbc8e202c41
|
|
command: ["/sbin/dhcpcd", "--nobackground", "-f", "/dhcpcd.conf", "-1"]
|
|
- name: format
|
|
image: linuxkit/format:84a997e69051a1bf05b7c1926ab785bb07932954
|
|
- name: mount
|
|
image: linuxkit/mount:ac8939c4102f97c084d9ddfd445c1908fce6d768
|
|
command: ["/mount.sh", "/var/lib/swarmd"]
|
|
- name: metadata
|
|
image: linuxkit/metadata:428093dd1c4178e8ba1952af44b46c0fd16f8e79
|
|
services:
|
|
- name: getty
|
|
image: linuxkit/getty:08b704915af0ce90f8f40df5d41d4c1aa14ef83a
|
|
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:19370f5d9bec84eb91073b7196b732f1301d9c90
|
|
- 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
|