Files
linuxkit/pkg/containerd/cmd/service/skanky-vendor.sh
Ian Campbell 5833d1b6bc 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>
2017-06-16 11:48:53 +01:00

15 lines
468 B
Bash
Executable File

#!/bin/sh
#
# We only need the containerd client and its transitive dependencies
# and we conveniently have a checkout already. We actually prefer to
# reuse containerd's vendoring for consistency anyway.
set -eu
ctrd=$1
cp -r $ctrd/vendor/ vendor/
# We need containerd itself of course
mkdir -p vendor/github.com/containerd
cp -r $ctrd vendor/github.com/containerd/containerd
# Stop go finding nested vendorings
rm -rf vendor/github.com/containerd/containerd/vendor