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

Rewrite README based on image spec #233

Merged
merged 3 commits into from
Feb 17, 2021

Conversation

jdolitsky
Copy link
Member

@jdolitsky jdolitsky added this to the v1.0.0-rc2 milestone Feb 3, 2021
README.md Outdated
Comment on lines 19 to 39
## Distributing OCI Images and other content

The OCI Distribution Spec is closely related to the [OCI Image Format Spec project](https://github.com/opencontainers/image-spec),
the [OCI Runtime Spec project](https://github.com/opencontainers/runtime-spec),
and the [OCI Artifacts project](https://github.com/opencontainers/artifacts).

The Image Format Specification strictly defines the requirements for an OCI Image (container image), which consists of
a manifest, an optional image index, a set of filesystem layers, and a configuration.
The schema for OCI Image components is fully supported by the APIs defined in the Distribution Spec.

The OCI Runtime Specification defines how to properly run a container "[filesystem bundle](https://github.com/opencontainers/runtime-spec/blob/master/bundle.md)"
which fully adheres to the OCI Image Format. The Runtime Spec is relevant to the Distribution Spec in that they both support OCI Images,
and that container runtimes use the APIs defined in the Distribution Spec to fetch pre-built container images and run them.

The Distribution Spec is also designed generically enough to be leveraged as a distribution mechanism for
any type of content. The format of uploaded manifests, for example, need not necessarily adhere to the OCI Image Format
so long as it references the blobs which comprise a given artifact.

The OCI Artifacts project is an effort to provide guidance on how to
properly define and distribute content using the Distribution Spec for artifacts which are not container filesystem bundles,
in a way that is mostly compatible with the existing schemas defined in the Image Format Spec.
Copy link
Member Author

Choose a reason for hiding this comment

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

This is all new content. Tried to give the bigger picture

Copy link
Member

@jzelinskie jzelinskie Feb 3, 2021

Choose a reason for hiding this comment

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

For each paragraph in this section, I'd make the the specification being reference links, too.

The [OCI Image Format Specification] ...

The [OCI Runtime Specification] ...

The [OCI Distribution Spec] ...

The [OCI Artifacts] ...

[OCI Image Format Specification]: https://github.com/opencontainers/image-spec
[OCI Image Runtime Specification]: https://github.com/opencontainers/runtime-spec
[OCI Image Distribution Specification]: https://github.com/opencontainers/distribution-spec
[OCI Image Artifacts Specification]: https://github.com/opencontainers/artifacts

If we could get this section across all projects, that would be great.

Copy link
Member

Choose a reason for hiding this comment

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

Also notice that I tried to be consistent with usage of "OCI" when formally naming things.

@jzelinskie
Copy link
Member

Looks really good to me, only a basic nitpick on the net-new content.

@jdolitsky
Copy link
Member Author

@jzelinskie ty for review, back at ya

@jdolitsky
Copy link
Member Author

CI passing now, ping @opencontainers/distribution-spec-maintainers

Copy link
Member

@vbatts vbatts left a comment

Choose a reason for hiding this comment

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

👍

@jdolitsky jdolitsky requested a review from jzelinskie February 17, 2021 16:59
@jzelinskie
Copy link
Member

jzelinskie commented Feb 17, 2021

LGTM

Approved with PullApprove

@jdolitsky jdolitsky merged commit e734841 into opencontainers:master Feb 17, 2021
@jdolitsky jdolitsky mentioned this pull request Mar 24, 2021
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.

Friendly README
3 participants