Files
linuxkit/alpine/packages/test/etc/init.d/test
Justin Cormack 7f1e41eb37 Shift to development track containerd
Move to the development track of `containerd` not the legacy 0.2
branch. The commands have changed a bit.

This does increase the image size as we are bundling the Docker
copy and our copy, and the new one is larger as it is growing features.
Hopefully Docker will shrink eventually. Also we may replace `ctr`
with a library.

Fix #1029

Signed-off-by: Justin Cormack <justin.cormack@docker.com>
2017-01-24 15:39:44 +00:00

26 lines
319 B
Plaintext
Executable File

#!/sbin/openrc-run
depend()
{
need docker containerd
}
start()
{
[ -d /test ] || exit 0
ebegin "Running tests"
if ctr run --bundle /test test
then
printf "Moby test suite PASSED\n"
else
printf "Moby test suite FAILED\n"
fi
eend "Tests completed"
# now terminate with extreme prejudice
poweroff -f
}