forked from kata-containers/documentation
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request kata-containers#264 from marcov/refactor-install
install: Refactor installation instructions
- Loading branch information
Showing
15 changed files
with
128 additions
and
168 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
# Installing with kata-doc-to-script | ||
|
||
* [Introduction](#introduction) | ||
* [Packages Installation](#packages-installation) | ||
* [Docker Installation and Setup](#docker-installation-and-setup) | ||
|
||
## Introduction | ||
Use [these installation instructions](README.md#supported-distributions) together with | ||
[`kata-doc-to-script`](https://github.com/kata-containers/tests/blob/master/.ci/kata-doc-to-script.sh) | ||
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`. | ||
|
||
## 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`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
# Installing with kata-manager | ||
|
||
* [Introduction](#Introduction) | ||
* [Full Installation](#full-installation) | ||
* [Install the Kata packages only](#install-the-kata-packages-only) | ||
* [Further Information](#further-information) | ||
|
||
## Introduction | ||
`kata-manager` automates the Kata Containers installation procedure documented for [these Linux distributions](README.md#supported-distributions). | ||
|
||
> Note: | ||
> - Full installation mode is only available for Docker container manager. For other setups, you | ||
> can still use `kata-manager` to [install Kata package](#install-kata-packages-only), and then setup your container manager manually. | ||
## Full Installation | ||
This command does the following: | ||
1. Installs Kata Containers packages | ||
2. Installs Docker | ||
3. Configure Docker to use the Kata OCI runtime by default | ||
|
||
``` | ||
$ bash -c "$(curl -fsSL \ | ||
$ https://raw.githubusercontent.com/kata-containers/tests/master/cmd/kata-manager/kata-manager.sh) \ | ||
install-docker-system" | ||
``` | ||
|
||
## Install the Kata packages only | ||
Use the following command to only install Kata Containers packages. | ||
|
||
``` | ||
$ bash -c "$(curl -fsSL \ | ||
$ https://raw.githubusercontent.com/kata-containers/tests/master/cmd/kata-manager/kata-manager.sh) \ | ||
install-packages" | ||
``` | ||
|
||
## Further Information | ||
For more information on what `kata-manager` can do, refer to the [`kata-manager` page](https://github.com/kata-containers/tests/blob/master/cmd/kata-manager). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.