Commit 8d697e8
committed
validate: Test config.json and rootfs sibling-hood
Test the spec's [1]:
While these artifacts MUST all be present in a single directory on
the local filesystem, ...
which is a condition it imposes on config.json and the directory
referenced by root.path.
I think we should drop that restriction from the spec, but my attempt
to remove the restriction was rejected [2]. If a future spec drops
the restriction, we can revert this commit.
Using path/filepath for the path manipulation will break when
validating cross-platform configs (e.g. trying to validate a Windows
bundle on a Linux machine). But that's a bigger issue than this
commit, so I've left it alone for now.
[1]: https://github.com/opencontainers/runtime-spec/blob/v1.0.0-rc5/bundle.md#container-format
[2]: opencontainers/runtime-spec#469
Signed-off-by: W. Trevor King <[email protected]>1 parent 21af41d commit 8d697e8
1 file changed
+19
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
115 | 115 | | |
116 | 116 | | |
117 | 117 | | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
118 | 124 | | |
| 125 | + | |
119 | 126 | | |
120 | 127 | | |
| 128 | + | |
121 | 129 | | |
| 130 | + | |
122 | 131 | | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
123 | 136 | | |
| 137 | + | |
124 | 138 | | |
125 | 139 | | |
126 | 140 | | |
127 | 141 | | |
128 | 142 | | |
129 | 143 | | |
130 | 144 | | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
131 | 150 | | |
132 | 151 | | |
133 | 152 | | |
| |||
0 commit comments