-
Notifications
You must be signed in to change notification settings - Fork 295
docs: Add developer guide #30
Conversation
|
@annabellebertooch - fyi 😄 |
|
I think it looks good, though we'll want review from @klynnrif |
|
Hi @klynnrif - could you take a look please? It's a biggie I'm afraid :) |
| - `make`. | ||
| - `gcc` (required for building the shim and runtime). | ||
|
|
||
| - You have installed the Clear Containers `linux-container` and `qemu-lite` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This part is a bit more error prone since we're referring to another install guide, but only a segment of it. This is definitely a short term problem (ie, until we have packages available for these for Kata project), but I think it may be worth explicitly adding these in the meantime. WDYT, @jodh-intel ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep - we really need kata-containers/packaging#1 to be resolved.
I understand the general view but I'm not clear what you want me to add?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd consider adding the steps for installing qemu-lite and linux-containers.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I actually left it purposely slightly vague since otherwise we need to be fully prescriptive (apt-get, dnf, yum, etc).
Once we have kata packages we can then start putting together install guides for the different distros as we did for Clear Containers.
FWIW, the same applies to installing docker, golang, etc.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @egernst - How about we keep this as-is for now since:
- it's what we already have in the wiki.
- it's temporary: we'll replace the vagueness with pointers to install guides once bootstrap repo by importing Clear Containers packaging scripts packaging#1 is resolved?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Works for me.
|
LGTM. Thanks for moving this over! |
klynnrif
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Scrubbed for grammar, sentence structure, and flow : a few suggestions. Thanks!
Developer-Guide.md
Outdated
| * [Install guest kernel images](#install-guest-kernel-images) | ||
| * [Update Docker configuration](#update-docker-configuration) | ||
| * [Create a Kata Container](#create-a-kata-container) | ||
| * [Problem determination](#problem-determination) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I suggest titling this section "Troubleshoot" to keep the list parallel.
Developer-Guide.md
Outdated
|
|
||
| - You have installed the Clear Containers `linux-container` and `qemu-lite` | ||
| packages containing the guest kernel images and hypervisor. These packages | ||
| are automatically installed when you install Clear Containers, but can be |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Suggested rewrite to make this sentence active: "These packages automatically install when you install Clear Containers, but can be installed separately:"
Developer-Guide.md
Outdated
| $ make && sudo -E PATH=$PATH make install | ||
| ``` | ||
|
|
||
| The build will create: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The build will create the following:
Developer-Guide.md
Outdated
|
|
||
| # Check hardware requirements | ||
|
|
||
| You can now check if your system is capable of creating a Kata Container by running: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can check if your system is capable of creating a Kata Container by running the following:
Developer-Guide.md
Outdated
| $ sudo kata-runtime kata-check | ||
| ``` | ||
|
|
||
| If your system is *not* able to run Kata Containers, this command will error and explain why. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If your system is not able to run Kata Containers, the previous command will error and explain why.
Developer-Guide.md
Outdated
|
|
||
| > **Note:** | ||
| > | ||
| > - You must ensure that the *default Docker runtime* is `runc` to make use of the `USE_DOCKER` variable. If that is not the case, simply remove the variable from the command above. See [Checking Docker default runtime](#checking-docker-default-runtime). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
...If that is not the case, remove the variable from the previous command...
Developer-Guide.md
Outdated
|
|
||
| > **Note:** | ||
| > | ||
| > - You only do this step if you wish to test with the latest version of the agent. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- You only do this step if you test with the latest version of the agent.
Developer-Guide.md
Outdated
|
|
||
| > **Notes:** | ||
| > | ||
| > - You must ensure that the *default Docker runtime* is `runc` to make use of the `USE_DOCKER` variable. If that is not the case, simply remove the variable from the command above. See [Checking Docker default runtime](#checking-docker-default-runtime). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
...If that is not the case, remove the variable from the previous command...
Developer-Guide.md
Outdated
| > **Notes:** | ||
| > | ||
| > - You must ensure that the *default Docker runtime* is `runc` to make use of the `USE_DOCKER` variable. If that is not the case, simply remove the variable from the command above. See [Checking Docker default runtime](#checking-docker-default-runtime). | ||
| > - If you do *not* wish to build under Docker, remove the `USE_DOCKER` variable above and ensure the `qemu-img` command is available on your system. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- If you do not wish to build under Docker, remove the
USE_DOCKERvariable in the previous command and ensure theqemu-imgcommand is available on your system.
Developer-Guide.md
Outdated
|
|
||
| # Problem determination | ||
|
|
||
| If you are unable to create a Kata Container, please run the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you are unable to create a Kata Container, run the...
43583e5 to
ea4c5df
Compare
|
Thanks for reviewing @klynnrif! Branch updated. |
|
Technically, this PR is also blocked on kata-containers/runtime#80. If I can't get that into a PR today, I'll remove the mention of the |
klynnrif
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm!
Move the developer guide from the wiki "in-tree". Fixes kata-containers#29. Signed-off-by: James O. D. Hunt <james.o.hunt@intel.com>
ea4c5df to
2ab1a3f
Compare
|
Hi @egernst - I've remove mention of the data collection script as kata-containers/runtime#80 is unlikely to land today. I'll raise a follow-on PR for this doc once that PR has landed. |
|
Issue to remove mention of Clear Containers packages once we have Kata packages: #33. |
scripts: Add an "auto-size" feature
Move the developer guide from the wiki "in-tree".
Fixes #29.
Signed-off-by: James O. D. Hunt james.o.hunt@intel.com