Skip to content
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

spec.md: add some description about manifest list #455

Merged
merged 1 commit into from
Jan 19, 2017

Conversation

coolljt0725
Copy link
Member

Signed-off-by: Lei Jitang leijitang@huawei.com

@coolljt0725 coolljt0725 changed the title README.md: add the some description about manifest list README.md: add some description about manifest list Nov 10, 2016
Copy link
Contributor

@wking wking left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm in favor of talking about manifest lists here. @jonboulle suggested avoiding a direct reference to to manifest lists down in the “Understanding the Specification” section. I'm not sure if he has the same concerns about these lines.

Stepping back, there is a lot of overlap between this “Overview” section and the following “Understanding the Specification” section. It seems like structure here could use a more thorough review.

The image configuration includes information such as application arguments, environments, etc.
The combination of the image manifest, image configuration, and one or more filesystem layers is called the "OCI Image".
The combination of the image manifest list, image manifest, image configuration, and one or more filesystem layers is called the "OCI Image".
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's called an “OCI Image” with or without the manifest list. Maybe:

A manifest list (optional), manifest, configuration, and set of filesystem layers constitutes an "OCI Image".

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've also consolidated this with the earlier OCI Image sentence in #465. I'm happy to rebase that consoliation if this PR lands first.

This specification defines how to create an OCI Image, which will generally be done by a build system, and output an [image manifest](manifest.md), a set of [filesystem layers](layer.md), and an [image configuration](config.md).
At a high level the image manifest contains metadata about the contents and dependencies of the image including the content-addressable identity of one or more [filesystem layer changeset](layer.md) archives that will be unpacked to make up the final runnable filesystem.
This specification defines how to create an OCI Image, which will generally be done by a build system, and output an [image manifest](manifest.md) and may with a [manifest list](manifest-list.md), a set of [filesystem layers](layer.md), and an [image configuration](config.md).
At a high level the manifest list points to specific image manifests for one or more platform and the image manifest contains metadata about the contents and dependencies of the image including the content-addressable identity of one or more [filesystem layer changeset](layer.md) archives that will be unpacked to make up the final runnable filesystem.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's no need to wedge both manifest lists and manifests into the same sentence. Can we have an “At a high level, …” one-liner just for manifest lists followed by a separate line for manifests and layers?

I'm also tempted to move the manifest-list line below the manifest line, since fat, multi-platform images are easier to understand if you already know what a manifest is. Manifests rely on filesystems and configurations, but the reader is more likely to be able to guess at those than they are to guess the meaning of “manifest”.

@coolljt0725
Copy link
Member Author

@wking updated

At a high level the image manifest contains metadata about the contents and dependencies of the image including the content-addressable identity of one or more [filesystem layer changeset](layer.md) archives that will be unpacked to make up the final runnable filesystem.
The image configuration includes information such as application arguments, environments, etc.
The combination of the image manifest, image configuration, and one or more filesystem layers is called the "OCI Image".
The manifest list is a higher-level manifest which points to specific image manifest for one or more platform.
The combination of the image manifest list(optional), image manifest, image configuration, and one or more filesystem layers is called the "OCI Image".
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing a space in “list(optional)” (should be “list (optional)”).

@@ -19,10 +19,11 @@ The goal of this specification is to enable the creation of interoperable tools

## Overview

This specification defines how to create an OCI Image, which will generally be done by a build system, and output an [image manifest](manifest.md), a set of [filesystem layers](layer.md), and an [image configuration](config.md).
This specification defines how to create an OCI Image, which will generally be done by a build system, and output an [image manifest](manifest.md) and may with a [manifest list](manifest-list.md), a set of [filesystem layers](layer.md), and an [image configuration](config.md).
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

“and may with” reads awkwardly to me. I'd rather leave this line alone, land your new “The manifest list” line, and then land a rerolled #456 mentioning manifest lists.

@philips
Copy link
Contributor

philips commented Nov 16, 2016

LGTM

Approved with PullApprove

@coolljt0725 coolljt0725 force-pushed the readme_manifest_list branch 2 times, most recently from 3338eef to 32e07c4 Compare November 18, 2016 01:35
@coolljt0725
Copy link
Member Author

rebased after landing #456

@wking
Copy link
Contributor

wking commented Nov 18, 2016

On Thu, Nov 17, 2016 at 05:37:04PM -0800, Lei Jitang wrote:

rebased after landing #456

6128dcd looks good to me, with the only additions being two instances
of “a manifest list (optional)” and one copy of the existing manifest
list introductory sentence 1.

At a high level the image manifest contains metadata about the contents and dependencies of the image including the content-addressable identity of one or more [filesystem layer changeset](layer.md) archives that will be unpacked to make up the final runnable filesystem.
The image configuration includes information such as application arguments, environments, etc.
The manifest list is a higher-level manifest which points to specific image manifest for one or more platform.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

manifest(s) for one or more platforms.

@coolljt0725
Copy link
Member Author

@jonboulle updated

@jonboulle
Copy link
Contributor

@coolljt0725 sorry, not quite there: platforms plural

@coolljt0725
Copy link
Member Author

@jonboulle updated, thanks :)

@coolljt0725 coolljt0725 force-pushed the readme_manifest_list branch 2 times, most recently from fc1d451 to 94a29f4 Compare December 7, 2016 09:27
@coolljt0725 coolljt0725 changed the title README.md: add some description about manifest list spec.md: add some description about manifest list Dec 7, 2016
@coolljt0725
Copy link
Member Author

rebased

@vbatts
Copy link
Member

vbatts commented Dec 7, 2016

LGTM

Approved with PullApprove

@@ -29,6 +29,7 @@ The key words "unspecified", "undefined", and "implementation-defined" are to be

At a high level the image manifest contains metadata about the contents and dependencies of the image including the content-addressable identity of one or more [filesystem layer changeset](layer.md) archives that will be unpacked to make up the final runnable filesystem.
The image configuration includes information such as application arguments, environments, etc.
The manifest list is a higher-level manifest which points to specific image manifest(s) for one or more platforms
Copy link
Contributor

@wking wking Dec 7, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This line is from manifest-list.md, which uses "manifests". I'm fine with that or "manifest(s)", but I think we should use the same form in both places. So either use "manifests" here, or update image-manifest.md to use "manifest(s)".

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The manifest list is a higher-level manifest which points to one or more manifests. Typically, these manifests may provide different implementations of the image, possibly varying by platform or other attributes.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@stevvooe's phrasing looks good to me, but I'd put it at the top of manifest-list.md. Here in spec.md, I'd only include the first line, but I'd make “manifest list” a link to manifest-list.md.

@coolljt0725
Copy link
Member Author

@stevvooe updated

Signed-off-by: Lei Jitang <leijitang@huawei.com>
@philips
Copy link
Contributor

philips commented Jan 18, 2017

LGTM

Approved with PullApprove

1 similar comment
@stevvooe
Copy link
Contributor

stevvooe commented Jan 19, 2017

LGTM

Approved with PullApprove

@stevvooe stevvooe merged commit 7ccc18a into opencontainers:master Jan 19, 2017
@coolljt0725 coolljt0725 deleted the readme_manifest_list branch January 19, 2017 01:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants