Commit Graph

412 Commits

Author SHA1 Message Date
Antonio Murdaca e9d3ac025d runtime: config: linux: Edit BlockIO struct
`WeightDevice`, `ThrottleReadBpsDevice`, `ThrottleWriteBpsDevice`,
`ThrottleReadIOpsDevice`, `ThrottleWriteIOpsDevice` are now slices to
well defined structs to allow setting multiple devices in their respective
blkio file. By using a string to represents those values it wasn't possible
to set correct values when multiple devices were passed in the config
(either newline separated or comma separated).

Signed-off-by: Antonio Murdaca <runcom@linux.com>
2015-09-17 20:56:45 +02:00
Mrunal Patel 8e00c3f76c Merge pull request #196 from runcom/fix-typo-namespaces
runtime: config: linux: Remove trailing comma in namespaces json example
2015-09-17 10:56:19 -07:00
Antonio Murdaca 75cb11ce4a runtime: config: linux: Fix typo and trailing commas in json example
Signed-off-by: Antonio Murdaca <runcom@linux.com>
2015-09-17 12:27:08 +02:00
Gao feng e7746b12af move the description of Rlimits before example
Signed-off-by: Gao feng <omarapazanadi@gmail.com>
2015-09-17 17:03:07 +08:00
W. Trevor King 990f7dbf7d implementations: Link to kunalkushwaha/octool
Kunal mentioned this tool in this thread [1].  There's some discussion
with David Liang of OCT in that thread where Kunal and David seem to
be trying to find common ground and avoid duplicating effort, but both
projects seem to be moving along on their own now.  I think we should
link to both, and we can always remove a link later if/when the two
projects get together to provide a common validator framework.

Entries in this list (the first in implementations.md with two entries
in a category) are alphabetical by whatever the first text is in the
enter.

[1]: https://groups.google.com/a/opencontainers.org/forum/#!topic/dev/B2qQ9itIsgI
     Message-Id: <b8554ca7-bc0a-480c-9603-8c4ab3f4fdd6@opencontainers.org>

Signed-off-by: W. Trevor King <wking@tremily.us>
2015-09-16 20:52:14 -07:00
W. Trevor King 944067f764 implementations: Link to mrunalp/ocitools
Mrunal mentioned this during today's meeting, and linking to it will
hopefully reduce the amount of duplicated effort in this area.

Signed-off-by: W. Trevor King <wking@tremily.us>
2015-09-16 20:47:14 -07:00
Mrunal Patel 7a05004e60 Merge pull request #192 from runcom/fix-typo-runtime-config-linux
Fix typo in BlockIO struct comment
2015-09-16 08:07:49 -07:00
Mrunal Patel 6e45831753 Merge pull request #190 from laijs/remove-unneeded-build-tag
Remove the unneeded build tag from the config_linux.go
2015-09-16 08:03:18 -07:00
Antonio Murdaca 8a97e3774a Fix typo in BlockIO struct comment
Signed-off-by: Antonio Murdaca <runcom@linux.com>
2015-09-16 13:00:56 +02:00
Lai Jiangshan b592de9399 Remove the unneeded build tag from the config_linux.go
config_linux.go already has the "_linux" for the go build,
so the build tag in the file is redundant.

Signed-off-by: Lai Jiangshan <jiangshanlai@gmail.com>
2015-09-16 16:45:20 +08:00
Vincent Batts dca1dfdd92 Merge pull request #181 from jonboulle/master
.tools: make GetFetchHeadCommit do what it says
2015-09-12 11:25:29 -04:00
Jonathan Boulle bbb0f00ea8 .tools: make GetFetchHeadCommit do what it says
Signed-off-by: Jonathan Boulle <jonathanboulle@gmail.com>
2015-09-11 14:52:42 -07:00
Mrunal Patel b97324550d Merge pull request #180 from vbatts/fix-initial-maintainers
MAINTAINERS: add tianon per the charter
2015-09-11 14:08:31 -07:00
Vincent Batts f96bab34d0 MAINTAINERS: add tianon per the charter
Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
2015-09-11 17:00:00 -04:00
Mrunal Patel f6ec7a75c6 Merge pull request #168 from vbatts/git-style-guide
README.md: adding a git style guide
2015-09-11 13:26:32 -07:00
Vincent Batts 82835aa2a4 README.md: Add a git commit style guide
Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
2015-09-11 16:23:54 -04:00
Michael Crosby b8bbd289c6 Merge pull request #173 from vbatts/versioning
version: more explicit version for comparison
2015-09-11 12:14:03 -07:00
W. Trevor King d282a32cd8 config: Require the runtime to mount Spec.Mounts in order
If we don't specify this, some bundle-authors or runtime-implementers
might expect the runtime to intelligently order mounts to get the
"right" order [1].  But that's not possible because:

  $ mkdir -p a/b/c d/e/f h
  # mount --bind a/b h
  # mount --bind d a/b
  $ tree --charset=ascii h
  h
  `-- c

But in the other order:

  # umount a/b
  # umount h
  # mount --bind d a/b
  # mount --bind a/b h
  $ tree --charset=ascii h
  h
  `-- e
      `-- f

So there's no "right" order.  Allowing the bundle-author to specify
their intended order is both easy to implement and unambiguous.

[1]: https://github.com/opencontainers/specs/pull/136#issuecomment-137275876

Suggested-by: Lai Jiangshan <jiangshanlai@gmail.com>
Signed-off-by: W. Trevor King <wking@tremily.us>
2015-09-10 20:56:31 -07:00
Michael Crosby cbda521647 Merge pull request #158 from mrunalp/ns_path
Clarify behavior around namespaces paths
2015-09-10 14:25:23 -07:00
Vincent Batts 51c9265b29 Merge pull request #157 from liangchenye/master
Update runtime.md
2015-09-10 17:19:17 -04:00
Vincent Batts 88b0fc5cae Merge pull request #137 from vishh/cgroups-path
Adding cgroups path to the Spec.
2015-09-10 16:41:19 -04:00
Vincent Batts d335ecd6df README: releases section
As we ready for a draft release, verbiage is needed on what this
pre-release means.

Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
2015-09-10 16:18:09 -04:00
Vincent Batts 580701c6f8 version: more explicit version for comparison
For deterministic comparison and still providing a Version string for
representation and reuse.

Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
2015-09-10 16:18:06 -04:00
Vincent Batts a600f41b8b Merge pull request #175 from jonboulle/master
*: remove superfluous comma in code-of-conduct
2015-09-10 15:16:04 -04:00
Jonathan Boulle cf76bd97ff *: remove superfluous comma in code-of-conduct
Signed-off-by: Jonathan Boulle <jonathanboulle@gmail.com>
2015-09-10 12:07:30 -07:00
Mrunal Patel c00555c6ad Merge pull request #170 from vbatts/fix-dco-validate-on-merges
travis: fix DCO validation for merges
2015-09-10 12:00:43 -07:00
Vishnu Kannan 429f936ff9 Adding cgroups path to the Spec.
Signed-off-by: Vishnu Kannan <vishnuk@google.com>
2015-09-10 11:22:29 -07:00
Vincent Batts 5a654b9492 .tools: cleanup the commit entry
Accomplishing the same access to the commit entry, with more readable
code.

Reported-by: Lai Jiangshan <jiangshanlai@gmail.com>
Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
2015-09-10 10:47:05 -04:00
Vincent Batts 041eb73d2e travis: fix DCO validation for merges
merged PRs do not have DCO, so do not check for them

Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
2015-09-10 10:45:34 -04:00
Vincent Batts 3f62423765 Merge remote-tracking branch 'origin/pr/159' 2015-09-10 10:10:18 -04:00
Vincent Batts 712a7467d1 Merge remote-tracking branch 'origin/pr/163' 2015-09-10 10:07:40 -04:00
Vincent Batts b1510a7872 Merge pull request #172 from laijs/committer
Change commiter to committer
2015-09-10 09:31:30 -04:00
Lai Jiangshan 92a7451023 Change commiter to committer
"commiter" is typo.

:%s/Commiter/Committer/g
:%s/commiter/committer/g

And do gofmt

Signed-off-by: Lai Jiangshan <jiangshanlai@gmail.com>
2015-09-10 20:42:51 +08:00
梁辰晔 (Liang Chenye) 8efcfad4b1 Update runtime.md
Add an explicit explanation of the hooks order.
 
Signed-off-by: Liang Chenye <liangchenye@huawei.com>
2015-09-10 14:24:28 +08:00
Vincent Batts 2d9842b0f5 Merge pull request #167 from vbatts/validate-dco
.tools: repo validation tool
2015-09-09 23:17:28 -04:00
Vincent Batts 9a8748cad4 Merge pull request #160 from mrunalp/cap_fix
Modify the capabilities constants to match header files like other constants
2015-09-09 18:59:48 -04:00
Vincent Batts 6c4b37ec96 Merge pull request #165 from wking/remove-mounts-destination-docs
runtime-config: Remove 'destination' docs from mounts
2015-09-09 18:57:48 -04:00
Mrunal Patel 02b456e91d Clarify behavior around namespaces paths.
Signed-off-by: Mrunal Patel <mrunalp@gmail.com>
2015-09-09 18:26:03 -04:00
Vincent Batts 8b55acffb6 .tools: repo validation tool
Initially only a DCO validation for travis, but is set up for further
validation on commits as well.

https://github.com/opencontainers/specs/issues/90

Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
2015-09-09 18:17:01 -04:00
Mrunal Patel fbac038b38 Merge pull request #164 from philips/add-devices-to-linux-spec
config-linux: specify the default devices/filesystems available
2015-09-09 10:16:48 -07:00
Mrunal Patel d3a6069dc0 Change the rlimit type to string instead of int
Signed-off-by: Mrunal Patel <mrunalp@gmail.com>
2015-09-09 12:46:23 -04:00
W. Trevor King 713d98102c runtime-config: Remove 'destination' docs from mounts
c18c283 (Change layout of mountpoints and mounts, 2015-09-02, #136)
removed the destination field from the Go type and examples, but
forgot to remove it from the documentation [1].  Fix that with this
commit.

[1]: https://github.com/opencontainers/specs/issues/109#issuecomment-138531616

Reported-by: 梁辰晔 (Liang Chenye) <liangchenye@huawei.com>
Signed-off-by: W. Trevor King <wking@tremily.us>
2015-09-09 09:45:11 -07:00
Mrunal Patel 663be9d677 Modify the capabilities constants to match header files like other constants
Signed-off-by: Mrunal Patel <mrunalp@gmail.com>
2015-09-09 12:43:17 -04:00
Brandon Philips 3848a23819 config-linux: specify the default devices/filesystems available
Fixes #95

Signed-off-by: Brandon Philips <brandon.philips@coreos.com>
2015-09-09 09:36:59 -07:00
Lai Jiangshan 339e038400 Deduplicate the field of RootfsPropagation
There are two RootfsPropagation fields, one is Linux.RootfsPropagation,
the other one is LinuxRuntime.RootfsPropagation. They are duplicated,
one of them should be removed.

The RootfsPropagation is definitely a runtime specific configuration,
so we remove the one of Linux.RootfsPropagation.

And the description of it is moved from config-linux.md to
runtime-config-linux.md.

Signed-off-by: Lai Jiangshan <jiangshanlai@gmail.com>
2015-09-09 23:27:37 +08:00
Mrunal Patel 6cc6798b87 Merge pull request #162 from vbatts/formatting
*.md: markdown formatting
2015-09-09 08:17:02 -07:00
Vincent Batts 6cab2747d9 *.md: markdown formatting
Closes https://github.com/opencontainers/specs/issues/83

Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
2015-09-09 10:17:06 -04:00
Mrunal Patel 26b9be27a9 Merge pull request #150 from vbatts/code-of-conduct
*: adding a code of conduct
2015-09-08 11:50:12 -07:00
Mrunal Patel 9d59c53bbf Merge pull request #154 from vbatts/golint
runtime_config: comments for golint
2015-09-04 14:16:52 -07:00
Michael Crosby 0bb0ff7656 Merge pull request #152 from cloudfoundry-incubator/namespace-names
Make namespace names match runc
2015-09-04 12:51:20 -07:00