Commit 7a733e6
committed
ccon-oci: Stub in initial support for hooks
ccon doesn't believe in container IDs, so this still needs some work
before it will feed OCI-specified state JSON into the hook's stdin.
The hook syntax (with argv[0] in args) doesn't quite match the v0.1.0
docs [1,2], but it does match the phrasing from
opencontainers/runtime-spec#255 which was claimed to "clarify, but not
change" the semantics [3,4]. I think that the v0.1.0 phrasing wasn't
clear enough to decide if #255 was a change or not, but since it
wasn't clear, there's no more harm in just going with Qiang and
Mrunal's interpretation.
[1]: https://github.com/opencontainers/specs/blob/v0.1.1/runtime.md#post-stop
[2]: https://groups.google.com/a/opencontainers.org/forum/#!topic/dev/luaaorsya10
Subject: Explicit args[0] for hooks?
Date: Sat, 15 Aug 2015 12:15:23 -0700
Message-ID: <[email protected]>
[3]: opencontainers/runtime-spec#255 (comment)
[4]: opencontainers/runtime-spec#255 (comment)1 parent ff8d159 commit 7a733e6
2 files changed
Lines changed: 48 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
153 | 153 | | |
154 | 154 | | |
155 | 155 | | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
156 | 167 | | |
157 | 168 | | |
158 | 169 | | |
| |||
217 | 228 | | |
218 | 229 | | |
219 | 230 | | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
220 | 246 | | |
221 | 247 | | |
222 | 248 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
9 | 31 | | |
10 | 32 | | |
11 | 33 | | |
| |||
0 commit comments