mirror of
https://github.com/containers/podman.git
synced 2025-10-17 03:04:21 +08:00
Add --compat-volumes option to build and farm build
Add the `--compat-volumes option from Buildah v1.37 into Podman in preparation of Podman v5.2 Signed-off-by: tomsweeneyredhat <tsweeney@redhat.com>
This commit is contained in:
@ -97,6 +97,7 @@ func BuildImage(w http.ResponseWriter, r *http.Request) {
|
||||
CacheTo string `schema:"cacheto"`
|
||||
CacheTTL string `schema:"cachettl"`
|
||||
CgroupParent string `schema:"cgroupparent"`
|
||||
CompatVolumes bool `schema:"compatvolumes"`
|
||||
Compression uint64 `schema:"compression"`
|
||||
ConfigureNetwork string `schema:"networkmode"`
|
||||
CPPFlags string `schema:"cppflags"`
|
||||
@ -702,6 +703,7 @@ func BuildImage(w http.ResponseWriter, r *http.Request) {
|
||||
Secrets: secrets,
|
||||
Volumes: query.Volumes,
|
||||
},
|
||||
CompatVolumes: types.NewOptionalBool(query.CompatVolumes),
|
||||
Compression: compression,
|
||||
ConfigureNetwork: parseNetworkConfigurationPolicy(query.ConfigureNetwork),
|
||||
ContextDirectory: contextDirectory,
|
||||
|
@ -540,6 +540,13 @@ func (s *APIServer) registerImagesHandlers(r *mux.Router) error {
|
||||
// description: |
|
||||
// Suppress verbose build output
|
||||
// - in: query
|
||||
// name: compatvolumes
|
||||
// type: boolean
|
||||
// default: false
|
||||
// description: |
|
||||
// Contents of base images to be modified on ADD or COPY only
|
||||
// (As of version 1.37)
|
||||
// - in: query
|
||||
// name: nocache
|
||||
// type: boolean
|
||||
// default: false
|
||||
@ -1494,6 +1501,13 @@ func (s *APIServer) registerImagesHandlers(r *mux.Router) error {
|
||||
// description: |
|
||||
// Suppress verbose build output
|
||||
// - in: query
|
||||
// name: compatvolumes
|
||||
// type: boolean
|
||||
// default: false
|
||||
// description: |
|
||||
// Contents of base images to be modified on ADD or COPY only
|
||||
// (As of version 1.37)
|
||||
// - in: query
|
||||
// name: nocache
|
||||
// type: boolean
|
||||
// default: false
|
||||
|
Reference in New Issue
Block a user