Files
kata-containers/install/installing-with-kata-doc-to-script.md
James O. D. Hunt 7dba230a1c docs: Add instructions to run the kata-doc-to-script generated scripts
Update the `kata-doc-to-script` install document to actually execute the
generated scripts, allowing the entire installation to be tested by the CI.

Signed-off-by: James O. D. Hunt <james.o.hunt@intel.com>
2018-10-25 16:28:19 +01:00

1.7 KiB

Installing with kata-doc-to-script

Introduction

Use these installation instructions together with kata-doc-to-script to generate installation bash scripts.

Note:

  • Only the Docker container manager installation can be scripted. For other setups you must install and configure the container manager manually.

Packages Installation

$ source /etc/os-release
$ curl -fsSL -O https://raw.githubusercontent.com/kata-containers/documentation/master/install/${ID}-installation-guide.md
$ bash -c "$(curl -fsSL https://raw.githubusercontent.com/kata-containers/tests/master/.ci/kata-doc-to-script.sh) ${ID}-installation-guide.md ${ID}-install.sh"

For example, if your distribution is CentOS, the previous example will generate a runnable shell script called centos-install.sh. To proceed with the installation, run:

$ source /etc/os-release
$ bash "./${ID}-install.sh"

Docker Installation and Setup

$ source /etc/os-release
$ curl -fsSL -O https://raw.githubusercontent.com/kata-containers/documentation/master/install/docker/${ID}-docker-install.md
$ bash -c "$(curl -fsSL https://raw.githubusercontent.com/kata-containers/tests/master/.ci/kata-doc-to-script.sh) ${ID}-docker-install.md ${ID}-docker-install.sh"

For example, if your distribution is CentOS, this will generate a runnable shell script called centos-docker-install.sh.

To proceed with the Docker installation, run:

$ source /etc/os-release
$ bash "./${ID}-docker-install.sh"