mirror of
https://github.com/containers/buildah.git
synced 2025-07-30 04:23:09 +03:00
commit: add a --add-file flag
Add a flag to `buildah commit` which allows adding arbitrary files to the image while we're committing it. When not squashing, they'll take the form of a second new layer. Signed-off-by: Nalin Dahyabhai <nalin@redhat.com>
This commit is contained in:
@ -118,6 +118,12 @@ type CommitOptions struct {
|
||||
// to the configuration of the image that is being committed, after
|
||||
// OverrideConfig is applied.
|
||||
OverrideChanges []string
|
||||
// ExtraImageContent is a map which describes additional content to add
|
||||
// to the committted image. The map's keys are filesystem paths in the
|
||||
// image and the corresponding values are the paths of files whose
|
||||
// contents will be used in their place. The contents will be owned by
|
||||
// 0:0 and have mode 0644. Currently only accepts regular files.
|
||||
ExtraImageContent map[string]string
|
||||
}
|
||||
|
||||
var (
|
||||
|
Reference in New Issue
Block a user