summaryrefslogtreecommitdiff
path: root/pkg/api
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2020-12-09 14:58:28 -0500
committerGitHub <noreply@github.com>2020-12-09 14:58:28 -0500
commit6db3e9bfeb39e26bf6c211328c77bd847ff140f5 (patch)
tree2baa1845c8d5ebe92f0772ba3116e81b6ab03251 /pkg/api
parentda062b5bd03dd88060eb91c7d02936d5e7427cb9 (diff)
parent0154f9e9b3d158dce901c9f19261714660a2f27b (diff)
downloadpodman-6db3e9bfeb39e26bf6c211328c77bd847ff140f5.tar.gz
podman-6db3e9bfeb39e26bf6c211328c77bd847ff140f5.tar.bz2
podman-6db3e9bfeb39e26bf6c211328c77bd847ff140f5.zip
Merge pull request #8653 from rhatdan/buildah
Honor the --layers flag
Diffstat (limited to 'pkg/api')
-rw-r--r--pkg/api/handlers/compat/images_build.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/pkg/api/handlers/compat/images_build.go b/pkg/api/handlers/compat/images_build.go
index 43478c1d3..415ff85cd 100644
--- a/pkg/api/handlers/compat/images_build.go
+++ b/pkg/api/handlers/compat/images_build.go
@@ -71,6 +71,7 @@ func BuildImage(w http.ResponseWriter, r *http.Request) {
ForceRm bool `schema:"forcerm"`
HTTPProxy bool `schema:"httpproxy"`
Labels string `schema:"labels"`
+ Layers bool `schema:"layers"`
MemSwap int64 `schema:"memswap"`
Memory int64 `schema:"memory"`
NetworkMode string `schema:"networkmode"`
@@ -165,6 +166,7 @@ func BuildImage(w http.ResponseWriter, r *http.Request) {
Registry: query.Registry,
IgnoreUnrecognizedInstructions: true,
Quiet: query.Quiet,
+ Layers: query.Layers,
Isolation: buildah.IsolationChroot,
Compression: archive.Gzip,
Args: buildArgs,