The kata-manager
is a tool that can be used to perform
common tasks such as installing the packaged version of Kata
Containers, installing a container
manager and configuring the runtime.
Unlike normal scripts which specify the steps to run, for installation tasks
kata-manager
calling the kata-doc-to-script
tool which parses well-formed GitHub Flavored
Markdown format documents that contain bash
code blocks and converts them into a script. This allows kata-manager
for
example to convert a Kata installation guide into a script and execute it. Not
only is this useful for users, since the kata-manager
is run from the CI
system, the installation guides are assured of being correct.
Run:
$ ./kata-manager -h
Note: Since in some cases
kata-manager
is consuming documents and converting their contents, there is some risk associated with running the script. We recommend that if you choose to usekata-manager
that you only do so on non-critical system. Further, you are encouraged to runkata-manager
using the-n
option which will generate the scripts, but will not execute them. This allows you to review the scripts before running them.
$ repo="github.com/kata-containers/tests"
$ go get -d "$repo"
$ PATH=$PATH:$GOPATH/src/${repo}/cmd/kata-manager
This will add the kata-manager.sh
to your $PATH
.
$ kata-manager.sh install-packages