2017-04-12 23:12:04 +00:00
# Open Container Initiative Runtime Specification
2017-02-01 00:45:59 +00:00
2017-04-12 23:12:04 +00:00
The [Open Container Initiative][oci] develops specifications for standards on Operating System process and application containers.
2017-02-01 00:45:59 +00:00
2017-04-12 23:12:04 +00:00
The specification can be found [here ](spec.md ).
2017-02-01 00:45:59 +00:00
2017-04-12 23:12:04 +00:00
## Table of Contents
2017-02-01 00:45:59 +00:00
2017-04-12 23:12:04 +00:00
Additional documentation about how this group operates:
2017-02-01 00:45:59 +00:00
2017-04-12 23:12:04 +00:00
- [Code of Conduct][code-of-conduct]
- [Style and Conventions ](style.md )
- [Implementations ](implementations.md )
- [Releases ](RELEASES.md )
- [project ](project.md )
- [charter][charter]
2017-02-01 00:45:59 +00:00
2017-04-12 23:12:04 +00:00
## Use Cases
2017-02-01 00:45:59 +00:00
To provide context for users the following section gives example use cases for each part of the spec.
2017-04-12 23:12:04 +00:00
### Application Bundle Builders
2017-02-01 00:45:59 +00:00
Application bundle builders can create a [bundle ](bundle.md ) directory that includes all of the files required for launching an application as a container.
2017-04-12 23:12:04 +00:00
The bundle contains an OCI [configuration file ](config.md ) where the builder can specify host-independent details such as [which executable to launch ](config.md#process ) and host-specific settings such as [mount ](config.md#mounts ) locations, [hook ](config.md#hooks ) paths, Linux [namespaces ](config-linux.md#namespaces ) and [cgroups ](config-linux.md#control-groups ).
2017-02-01 00:45:59 +00:00
Because the configuration includes host-specific settings, application bundle directories copied between two hosts may require configuration adjustments.
2017-04-12 23:12:04 +00:00
### Hook Developers
2017-02-01 00:45:59 +00:00
[Hook ](config.md#hooks ) developers can extend the functionality of an OCI-compliant runtime by hooking into a container's lifecycle with an external application.
Example use cases include sophisticated network configuration, volume garbage collection, etc.
2017-04-12 23:12:04 +00:00
### Runtime Developers
2017-02-01 00:45:59 +00:00
2017-07-20 04:07:01 +00:00
Runtime developers can build runtime implementations that run OCI-compliant bundles and container configuration, containing low-level OS and host-specific details, on a particular platform.
2017-02-01 00:45:59 +00:00
2017-04-12 23:12:04 +00:00
## Contributing
2017-02-01 00:45:59 +00:00
Development happens on GitHub for the spec.
Issues are used for bugs and actionable items and longer discussions can happen on the [mailing list ](#mailing-list ).
The specification and code is licensed under the Apache 2.0 license found in the [LICENSE ](./LICENSE ) file.
2017-04-12 23:12:04 +00:00
### Discuss your design
2017-02-01 00:45:59 +00:00
The project welcomes submissions, but please let everyone know what you are working on.
Before undertaking a nontrivial change to this specification, send mail to the [mailing list ](#mailing-list ) to discuss what you plan to do.
This gives everyone a chance to validate the design, helps prevent duplication of effort, and ensures that the idea fits.
It also guarantees that the design is sound before code is written; a GitHub pull-request is not the place for high-level discussions.
Typos and grammatical errors can go straight to a pull-request.
When in doubt, start on the [mailing-list ](#mailing-list ).
2017-04-12 23:12:04 +00:00
### Weekly Call
2017-02-01 00:45:59 +00:00
2017-07-20 04:07:01 +00:00
The contributors and maintainers of all OCI projects have a weekly meeting on Wednesdays at:
* 8:00 AM (USA Pacific), during [odd weeks][iso-week].
* 2:00 PM (USA Pacific), during [even weeks][iso-week].
There is an [iCalendar][rfc5545] format for the meetings [here ](meeting.ics ).
Everyone is welcome to participate via [UberConference web][uberconference] or audio-only: +1 415 968 0849 (no PIN needed).
2017-02-01 00:45:59 +00:00
An initial agenda will be posted to the [mailing list ](#mailing-list ) earlier in the week, and everyone is welcome to propose additional topics or suggest other agenda alterations there.
2017-07-20 04:07:01 +00:00
Minutes are posted to the [mailing list ](#mailing-list ) and minutes from past calls are archived [here][minutes], with minutes from especially old meetings (September 2015 and earlier) archived [here][runtime-wiki].
2017-02-01 00:45:59 +00:00
2017-04-12 23:12:04 +00:00
### Mailing List
2017-02-01 00:45:59 +00:00
2017-04-12 23:12:04 +00:00
You can subscribe and join the mailing list on [Google Groups][dev-list].
2017-02-01 00:45:59 +00:00
2017-04-12 23:12:04 +00:00
### IRC
2017-02-01 00:45:59 +00:00
OCI discussion happens on #opencontainers on Freenode ([logs][irc-logs]).
2017-04-12 23:12:04 +00:00
### Git commit
2017-02-01 00:45:59 +00:00
2017-04-12 23:12:04 +00:00
#### Sign your work
2017-02-01 00:45:59 +00:00
The sign-off is a simple line at the end of the explanation for the patch, which certifies that you wrote it or otherwise have the right to pass it on as an open-source patch.
2017-04-12 23:12:04 +00:00
The rules are pretty simple: if you can certify the below (from http://developercertificate.org):
2017-02-01 00:45:59 +00:00
```
Developer Certificate of Origin
Version 1.1
Copyright (C) 2004, 2006 The Linux Foundation and its contributors.
660 York Street, Suite 102,
San Francisco, CA 94110 USA
Everyone is permitted to copy and distribute verbatim copies of this
license document, but changing it is not allowed.
Developer's Certificate of Origin 1.1
By making a contribution to this project, I certify that:
(a) The contribution was created in whole or in part by me and I
have the right to submit it under the open source license
indicated in the file; or
(b) The contribution is based upon previous work that, to the best
of my knowledge, is covered under an appropriate open source
license and I have the right under that license to submit that
work with modifications, whether created in whole or in part
by me, under the same open source license (unless I am
permitted to submit under a different license), as indicated
in the file; or
(c) The contribution was provided directly to me by some other
person who certified (a), (b) or (c) and I have not modified
it.
(d) I understand and agree that this project and the contribution
are public and that a record of the contribution (including all
personal information I submit with it, including my sign-off) is
maintained indefinitely and may be redistributed consistent with
this project or the open source license(s) involved.
```
then you just add a line to every git commit message:
Signed-off-by: Joe Smith < joe @ gmail . com >
using your real name (sorry, no pseudonyms or anonymous contributions.)
You can add the sign off when creating the git commit via `git commit -s` .
2017-04-12 23:12:04 +00:00
#### Commit Style
2017-02-01 00:45:59 +00:00
Simple house-keeping for clean git history.
2017-04-12 23:12:04 +00:00
Read more on [How to Write a Git Commit Message][how-to-git-commit] or the Discussion section of [git-commit(1)][git-commit.1].
2017-02-01 00:45:59 +00:00
1. Separate the subject from body with a blank line
2. Limit the subject line to 50 characters
3. Capitalize the subject line
4. Do not end the subject line with a period
5. Use the imperative mood in the subject line
6. Wrap the body at 72 characters
7. Use the body to explain what and why vs. how
2017-07-20 04:07:01 +00:00
* If there was important/useful/essential conversation or information, copy or include a reference
2017-02-01 00:45:59 +00:00
8. When possible, one keyword to scope the change in the subject (i.e. "README: ...", "runtime: ...")
2017-04-12 23:12:04 +00:00
[charter]: https://www.opencontainers.org/about/governance
[code-of-conduct]: https://github.com/opencontainers/tob/blob/master/code-of-conduct.md
[dev-list]: https://groups.google.com/a/opencontainers.org/forum/#!forum/dev
[how-to-git-commit]: http://chris.beams.io/posts/git-commit
2017-02-01 00:45:59 +00:00
[irc-logs]: http://ircbot.wl.linuxfoundation.org/eavesdrop/%23opencontainers/
2017-07-20 04:07:01 +00:00
[iso-week]: https://en.wikipedia.org/wiki/ISO_week_date#Calculating_the_week_number_of_a_given_date
[minutes]: http://ircbot.wl.linuxfoundation.org/meetings/opencontainers/
2017-04-12 23:12:04 +00:00
[oci]: https://www.opencontainers.org
2017-07-20 04:07:01 +00:00
[rfc5545]: https://tools.ietf.org/html/rfc5545
2017-04-12 23:12:04 +00:00
[runtime-wiki]: https://github.com/opencontainers/runtime-spec/wiki
[uberconference]: https://www.uberconference.com/opencontainers
[git-commit.1]: http://git-scm.com/docs/git-commit