init: replace ctr with a custom client using the containerd client library

Currently it supports only `service start <SERVICE>`, but it could grow e.g.
`stop`, `exec` etc in the future (although you can still use `ctr` for those).

In order to be able to use go-compile.sh the containerd build needs to move
from /root/go to /go as the GOPATH.

The vendoring situation is not ideal, but since this tool wants to be an exact
match for the containerd it seems tollerable to reuse its vendoring.

Signed-off-by: Ian Campbell <ian.campbell@docker.com>
This commit is contained in:
Ian Campbell
2017-06-13 16:27:54 +01:00
parent f7b2a739ee
commit 5833d1b6bc
50 changed files with 293 additions and 89 deletions

View File

@@ -2,9 +2,9 @@ kernel:
image: "linuxkit/kernel:4.9.x"
cmdline: "console=ttyS0"
init:
- linuxkit/init:781cec2360313a6d4aca25f5e90623294f8432f7
- linuxkit/init:d04cb1ef203f3d3b320e2a7d0ded127d21cabd74
- linuxkit/runc:3a4e6cbf15470f62501b019b55e1caac5ee7689f
- linuxkit/containerd:b50181bc6e0084e5fcd6b6ad3cf433c4f66cae5a
- linuxkit/containerd:7858fceb91c26c1e2ae9d84ac1ea0c63bbe61e26
onboot:
- name: ltp
image: "linuxkit/test-ltp:6df23ac196332cafb9c0f8e32f328e22d612267d"

View File

@@ -4,9 +4,9 @@ kernel:
image: "linuxkit/kernel:4.9.x"
cmdline: "console=ttyS0"
init:
- linuxkit/init:781cec2360313a6d4aca25f5e90623294f8432f7
- linuxkit/init:d04cb1ef203f3d3b320e2a7d0ded127d21cabd74
- linuxkit/runc:2649198589ef0020d99f613adaeda45ce0093a38
- linuxkit/containerd:b50181bc6e0084e5fcd6b6ad3cf433c4f66cae5a
- linuxkit/containerd:7858fceb91c26c1e2ae9d84ac1ea0c63bbe61e26
onboot:
- name: dhcpcd
image: "linuxkit/dhcpcd:7d2b8aaaf20c24ad7d11a5ea2ea5b4a80dc966f1"