mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-11-02 01:55:15 +00:00
These are not needed, but we are inconsistent. Been waiting for a quiet moment to fix this since I noticed while doing a presentation... Signed-off-by: Justin Cormack <justin.cormack@docker.com>
78 lines
2.7 KiB
YAML
78 lines
2.7 KiB
YAML
kernel:
|
|
image: linuxkit/kernel:4.9.36
|
|
cmdline: "console=ttyS0 page_poison=1"
|
|
init:
|
|
- linuxkit/init:14a38303ee9dcb4541c00e2b87404befc1ba2083
|
|
- linuxkit/runc:2310ad9d266cf5d9c4d07613bd2135ed7eb8a21f
|
|
- linuxkit/containerd:c977f27c234d55b85172813b8451f67ea86be4a3
|
|
- 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:b24bd97ae43397b469dbaadd80f17f291c817bdf
|
|
command: ["/mount.sh", "/var/lib/swarmd"]
|
|
- name: metadata
|
|
image: linuxkit/metadata:f122f1b4e873f1d08cd67bd9105385fd923af0cb
|
|
services:
|
|
- name: getty
|
|
image: linuxkit/getty:9f27c1272b6d128c9a09745e916f151d09cb0d27
|
|
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@sha256:05172329b6ff72099db7bb891ac311b89948a3064ca9b8641c6b4abe38548677 # 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:1cd4c061cc7327750d2a12c267db6d4d9e26b1d3
|
|
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
|