-
Notifications
You must be signed in to change notification settings - Fork 801
cmd/oci-image-tool/man: clarify unpack and create-runtime-bundle description #241
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
| more details on this process. | ||
|
|
||
| Also translates the referenced config from application/vnd.oci.image.serialization.config.v1+json to a | ||
| runtime-spec-compatible `DEST/config.json`. |
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 is a lot to put in NAME. Can we put the new stuff under DESCRIPTION?
|
@wking PTAL fixed your comments (fat fingers) |
| **oci-image-tool create-runtime-bundle** [src] [dest] [flags] | ||
|
|
||
| # DESCRIPTION | ||
| `oci-image-tool create-runtime-bundle` generates an [OCI bundle](https://github.com/opencontainers/runtime-spec/blob/master/bundle.md) from an [OCI image layout](https://github.com/opencontainers/image-spec/blob/master/image-layout.md). |
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'm not sure how we intend to compile these to troff, but ocitools uses go-md2man, which currently handles links poorly:
$ go-md2man -in oci-image-tool-create-runtime-bundle.1.md -out oci-image-tool-create-runtime-bundle.1
$ grep -A4 DESCRIPTION oci-image-tool-create-runtime-bundle.1
.SH DESCRIPTION
.PP
\fB\fCoci\-image\-tool create\-runtime\-bundle\fR generates an
\[la]https://github.com/opencontainers/runtime-spec/blob/master/bundle.md\[ra] from an
\[la]https://github.com/opencontainers/image-spec/blob/master/image-layout.md\[ra]\&.
So I recommend we drop this line now that we're adding the additional detail below. Just start with:
`oci-image-tool create-runtime-bundle` validates an application/vnd.oci.image.manifest.v1+json…
|
@wking took care of your comments |
| # DESCRIPTION | ||
| `oci-image-tool unpack` unpacks a given OCI image into a directory suitable to be used with `runc`. | ||
|
|
||
| `oci-image-tool unpack` it validates an application/vnd.oci.image.manifest.v1+json and unpacks its layered filesystem to `DEST`. |
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.
“it validates” → “validates”
|
@wking fixed again |
|
1ff9da5 looks good to me. Sorry about waffling on DEST / dest :p.
|
|
@philips PTAL |
|
|
||
| # DESCRIPTION | ||
| `oci-image-tool create-runtime-bundle` generates an [OCI bundle](https://github.com/opencontainers/runtime-spec/blob/master/bundle.md) from an [OCI image layout](https://github.com/opencontainers/image-spec/blob/master/image-layout.md). | ||
| `oci-image-tool create-runtime-bundle` validates an application/vnd.oci.image.manifest.v1+json and unpacks |
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.
wrapping is weird/inconsistent
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 might just put everything on a single line (or wrap at 80?)
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.
moved on a single line
…ription Signed-off-by: Antonio Murdaca <[email protected]>
|
1ec6417 looks good to me too.
|
|
cc @opencontainers/image-spec-maintainers |
Taking care of https://github.com/opencontainers/image-spec/pull/180/files#r71914328
/cc @wking @philips
Signed-off-by: Antonio Murdaca [email protected]