mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-09-01 23:18:41 +00:00
Allow some files specified with source
to be optional
See discussion in https://github.com/linuxkit/linuxkit/pull/2027 Signed-off-by: Justin Cormack <justin.cormack@docker.com>
This commit is contained in:
@@ -58,12 +58,17 @@ files:
|
||||
source: "/some/path/on/local/filesystem"
|
||||
mode: "0666"
|
||||
- path: dir/name2
|
||||
source: "/some/path/that/it/is/ok/to/omit"
|
||||
optional: true
|
||||
mode: "0666"
|
||||
- path: dir/name3
|
||||
contents: "orange"
|
||||
mode: "0644"
|
||||
```
|
||||
|
||||
Specifying the `mode` is optional, and will default to `0600`. Leading directories will be
|
||||
created if not specified.
|
||||
created if not specified. You can use `~/path` in `source` to specify a path in the build
|
||||
user's home directory.
|
||||
|
||||
## `trust`
|
||||
|
||||
|
Reference in New Issue
Block a user