-
Notifications
You must be signed in to change notification settings - Fork 50
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
Draft of a "getting started" document for the OCI #76
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
@@ -0,0 +1,169 @@ | ||||||||||||||
# Getting Started | ||||||||||||||
|
||||||||||||||
While the [OCI Charter](./CHARTER.md) is our official governing document, many | ||||||||||||||
people have asked for a gentler introduction to the Open Container Initiative as | ||||||||||||||
well as general guidance on how to interact with the projects and specifications | ||||||||||||||
found under the OCI umbrella. This document attempts to be that starting point | ||||||||||||||
for those who may be new to the OCI, interested in participation, or who want to | ||||||||||||||
understand if a project is a fit for inclusion or contribution to the OCI. | ||||||||||||||
|
||||||||||||||
**Note:** If there are any perceived or real conflicts between this document | ||||||||||||||
and the OCI Charter, the OCI Charter takes precedence as the official governing | ||||||||||||||
document of the Open Container Initiative. | ||||||||||||||
|
||||||||||||||
## What is the OCI? | ||||||||||||||
|
||||||||||||||
The [OCI website](https://opencontainers.org) has since inception carried a | ||||||||||||||
mission statement that defined us as "an open governance structure for the | ||||||||||||||
express purpose of creating open industry standards around container formats | ||||||||||||||
and runtime." Created in 2015, the core initial purpose was to align Docker and | ||||||||||||||
other ecosystem players around a runtime and image specification that would | ||||||||||||||
become an industry baseline for how images are packaged and executed in OCI | ||||||||||||||
compliant runtimes. | ||||||||||||||
|
||||||||||||||
Since that initial work, finalized in 1.0 specs in the summer of 2017, a | ||||||||||||||
distribution specification is now underway, based on the HTTP API of the initial | ||||||||||||||
Docker distribution (registry) project. In 2019, an "artifacts" project was | ||||||||||||||
approved by the TOB and will be used to define other artifact types (in addition | ||||||||||||||
to OCI images) which may be defined and stored in registries conforming to the | ||||||||||||||
OCI distribution spec. | ||||||||||||||
|
||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
suggest: |
||||||||||||||
## Who uses the OCI? | ||||||||||||||
|
||||||||||||||
It makes the most sense to see consumers of OCI as fitting into a few specific | ||||||||||||||
categories: contributors/members, implementors, and end users. | ||||||||||||||
|
||||||||||||||
**Contributors**, including the project maintainers, and member companies have a | ||||||||||||||
vested interest in bringing forward the "state of the art" with respect to the | ||||||||||||||
scope of the OCI. Currently this is of course limited to specifications around | ||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. nit: remove "of course" |
||||||||||||||
runtime, image, and distribution of containers. The artifacts repository and | ||||||||||||||
project is related to both image and distribution and is a natural expansion | ||||||||||||||
of OCI into ongoing support of additional types within registries and related | ||||||||||||||
Comment on lines
+39
to
+41
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||||||||
cloud native tools. Specifically, [artifacts](https://github.com/opencontainers/artifacts) | ||||||||||||||
expands the concept around the **what** when discussing non-OCI image content | ||||||||||||||
(Helm charts, Singularity container images, SPDX, source bundles, etc.) and | ||||||||||||||
registries, and allows for further experimentation with arbitrary file types | ||||||||||||||
within the context of this stable andd well-defined capability. | ||||||||||||||
Comment on lines
+44
to
+46
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||||||||
|
||||||||||||||
**Implementors** own projects outside the OCI for which they have determined | ||||||||||||||
value in being "OCI compliant"; whether that's a registry, a unique container | ||||||||||||||
runtime, or an end-user tool that talks to registries. They take the OCI | ||||||||||||||
specifications and implement support for them in their project, and potentially | ||||||||||||||
will use the conformance suite within the OCI to validate their compliance to | ||||||||||||||
the specification(s). | ||||||||||||||
|
||||||||||||||
**End Users** tend to gain value from the OCI specifications in an indirect | ||||||||||||||
way: they will expect projects and products that claim OCI compliance to | ||||||||||||||
interoperate smoothly with other projects and products which are OCI compliant. | ||||||||||||||
They will look to the OCI to continue maturing conformance and specifications | ||||||||||||||
to best support the cloud native ecosystem's goal of interoperability for | ||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. nit: I'd avoid "cloud native" as I think it's important for us to consider OCI in the context of non-cloud use-cases.
Suggested change
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Not sure cloud native is really tied to the cloud, per se. Yes, literally the word is there. But, is someone using CNCF projects on-prem not "cloud native"? :) This is also the tension we're seeing around OCI being tightly coupled to containers, while the distribution-spec and artifacts enable us to store additional non-container artifacts in a cloud-native/container centric deployment model. |
||||||||||||||
runtimes, images, and distributing images and artifacts across clouds and | ||||||||||||||
platforms. | ||||||||||||||
|
||||||||||||||
## What Types of Projects Exist within the OCI? | ||||||||||||||
|
||||||||||||||
There has been some growth in the nature and use of the OCI since those | ||||||||||||||
initial meetings around the image and runtime specification in 2015. The | ||||||||||||||
following subsections define project categories which exist in the OCI today. | ||||||||||||||
|
||||||||||||||
### Specifications | ||||||||||||||
|
||||||||||||||
Clearly the image, runtime, and distribution specifications are the key | ||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. nit: remove "Clearly"; it doesn't really add anything to the sentence |
||||||||||||||
reason for the existence of the OCI today. These standards are meant to | ||||||||||||||
provide a baseline to follow for implementors of runtimes, registries, and | ||||||||||||||
tools which interact with container images and registries. | ||||||||||||||
- [Runtime spec](https://github.com/opencontainers/runtime-spec) | ||||||||||||||
- [Image spec](https://github.com/opencontainers/image-spec) | ||||||||||||||
- [Distribution spec](https://github.com/opencontainers/distribution-spec) | ||||||||||||||
|
||||||||||||||
Artifacts is not a standalone specification, but fits within this category | ||||||||||||||
as it is a repository which serves as the extension point for media types | ||||||||||||||
which include the core media types found within the image spec, as well as | ||||||||||||||
connecting those and additional media types with the distribution spec as | ||||||||||||||
the means for storage, query, and delivery of a growing list of well-defined | ||||||||||||||
artifact types defined within the project. | ||||||||||||||
Comment on lines
+79
to
+84
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm having a really hard time parsing this. Would something like this make sense?
|
||||||||||||||
- [Artifacts](https://github.com/opencontainers/artifacts) | ||||||||||||||
|
||||||||||||||
### Spec Conformance Test | ||||||||||||||
|
||||||||||||||
Conformance tests should provide a clear, end-user runnable test suite for | ||||||||||||||
implementors to use to determine and demonstrate that an implementing project | ||||||||||||||
or product meets the explicit definitions of the specification. | ||||||||||||||
- [OCI Conformance](https://github.com/opencontainers/oci-conformance) | ||||||||||||||
|
||||||||||||||
The most advanced conformance implementation to date is for the new distribution specification. Additional work on image and runtime conformance is ongoing. | ||||||||||||||
|
||||||||||||||
### Libraries | ||||||||||||||
|
||||||||||||||
While hosting library code is not a common goal of the OCI, there are a few | ||||||||||||||
specific cases where small, non-end user focused, and tightly scoped libraries | ||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Defining "small" here is kind of difficult. I would like to see language here specifying that these libraries should have no or minimal dependencies. If a library is depending on an even larger project or library, it can't really be "small". I think the two libraries below are good examples of "no or minimal dependencies". There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I somewhat agree with putting more text about what "small" means, but I don't think this needs to be a legal document in terms of specificity. After all, the TOB decides whether a project meets the criteria we outline here and in the charter text. I would also point out that in my view, what defines a library as small is its scope (though that is covered by "tightly scoped" so maybe this "small" does refer to size). As an obvious example, glibc doesn't have any dependencies, but it isn't a small library. |
||||||||||||||
have been accepted into the OCI. The common denominator for these libraries are | ||||||||||||||
that they help implementors properly use features of the specifications: | ||||||||||||||
- [go-digest](https://github.com/opencontainers/go-digest) | ||||||||||||||
- [selinux](https://github.com/opencontainers/selinux) | ||||||||||||||
|
||||||||||||||
Utilities and end-user UX-oriented code is most likely better targeted at other | ||||||||||||||
more broad communities like the [CNCF](https://cncf.io). While there are not | ||||||||||||||
explicit rules, a discussion with the TOB is warranted for projects looking to | ||||||||||||||
contribute a library to OCI. | ||||||||||||||
|
||||||||||||||
### Reference Implementations | ||||||||||||||
|
||||||||||||||
The OCI does not require that its specifications have reference | ||||||||||||||
implementations, and any project which aims to be adopted by the OCI as a | ||||||||||||||
reference implementation has to be judged on its own merits. Reference | ||||||||||||||
implementations should be generally usable as a building block for other | ||||||||||||||
programs (thus should not be *overly opinionated*) and should have their | ||||||||||||||
features limited to the set of features outlined by the relevant specification. | ||||||||||||||
In addition, the popularity of the project (especially in production use-cases) | ||||||||||||||
should be taken into consideration: reference implementations should be | ||||||||||||||
battle-tested, after all. | ||||||||||||||
|
||||||||||||||
The first (and currently only viable) reference implementation included in the | ||||||||||||||
OCI was runc, as a reference implementation of the OCI runtime specification. | ||||||||||||||
This project's inclusion is a slight oddity of history, having been a | ||||||||||||||
production-ready project predating the OCI's formation and was included in the | ||||||||||||||
OCI as part of the original draft runtime specification. However this strange | ||||||||||||||
history does not preclude the addition of any new reference implementations, | ||||||||||||||
merely that this is a process which is not well-established in the OCI and thus | ||||||||||||||
any proposed projects need to have significant justification for inclusion. | ||||||||||||||
|
||||||||||||||
- [runc](https://github.com/opencontainers/runc) | ||||||||||||||
|
||||||||||||||
## Should my Project be in the OCI? | ||||||||||||||
|
||||||||||||||
The OCI receives proposals suggesting additions to the current suite | ||||||||||||||
of project types listed above. We understand that a perfect framework | ||||||||||||||
for determining inclusion or rejection of these proposals is an | ||||||||||||||
intangible goal. However, the following considerations are provided | ||||||||||||||
to help guide potential submissions. | ||||||||||||||
|
||||||||||||||
* The OCI is not directly chartered for the advancement, marketing, and | ||||||||||||||
support of general cloud native software projects. As our charter states: *The | ||||||||||||||
Open Container Initiative does not seek to be a marketing organization, define | ||||||||||||||
a full stack or solution requirements, and will strive to avoid standardizing | ||||||||||||||
technical areas undergoing innovation and debate.* | ||||||||||||||
* The project should be a piece of "**boring core container infrastructure**". | ||||||||||||||
While this is partially subjective criterion, the key factors towards | ||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||||||||
fulfilling this requirement are: | ||||||||||||||
1. The project should be as un-opinionated and extensible as is reasonably | ||||||||||||||
possible. | ||||||||||||||
2. Rather than being a complete solution or framework, the project should be | ||||||||||||||
usable as a building-block for larger solutions and frameworks. | ||||||||||||||
3. Projects consumed via a UI and/or including a significant end user | ||||||||||||||
experience component may be one clear sign of a lack of fit with the OCI | ||||||||||||||
as one example. | ||||||||||||||
* Proposed projects should fit logically into the scope and mission of the | ||||||||||||||
OCI: a home for open standards and tools which underpin the wider container | ||||||||||||||
ecosystem. Proposed additions to the OCI should not conflict with existing OCI | ||||||||||||||
projects, nor should they be completely unrelated to existing OCI projects. | ||||||||||||||
The precise scope of the OCI is defined by the OCI Charter, but the TOB may | ||||||||||||||
choose to expand the scope if they feel it is within the mission of the OCI. | ||||||||||||||
|
||||||||||||||
In summary, the OCI has a small but active and vibrant group of participants | ||||||||||||||
today. However the OCI specifications and related OCI projects are but a small | ||||||||||||||
niche of the overall cloud native world, and seeking out the OCI to validate | ||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||||||||
or grow a community around an untested or experimental new project is highly | ||||||||||||||
unlikely to fit the more narrow scope and mission of the OCI. We recommend | ||||||||||||||
the CNCF as a much more suitable target for such projects given the maturity | ||||||||||||||
model and sandbox starting point within that community. |
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.
While you do say that the OCI Charter is our governing document, I would include an explicit comment along the lines of "if there are any conflicts between this document and the OCI Charter, the Charter takes precedence". Another question is whether changing this document means changing the guidelines for admission of new projects -- should that require a 2/3 TOB vote (as amending the OCI Charter does)? Note that a 2-LGTM "vote" is less than is required for a project to be admitted.
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.
Good question; let's discuss on the TOB call.