diff options
author | Paul Holzinger <pholzing@redhat.com> | 2022-01-13 14:28:53 +0100 |
---|---|---|
committer | Paul Holzinger <pholzing@redhat.com> | 2022-01-13 15:01:28 +0100 |
commit | 92e7875210d3f6a52b3ef43e8a249022aba5a07c (patch) | |
tree | d5f7e1ad060c6fc2b53e9b040c5650e9b3ec3e5e /pkg/api/handlers/compat | |
parent | b24063582d425e40f68f8fc2a773cf19546e9f94 (diff) | |
download | podman-92e7875210d3f6a52b3ef43e8a249022aba5a07c.tar.gz podman-92e7875210d3f6a52b3ef43e8a249022aba5a07c.tar.bz2 podman-92e7875210d3f6a52b3ef43e8a249022aba5a07c.zip |
podman build enable --all-platforms and --unsetenv
Make sure we add support for allplatforms and unsetenv to both local and
remote podman.
Signed-off-by: Paul Holzinger <pholzing@redhat.com>
Diffstat (limited to 'pkg/api/handlers/compat')
-rw-r--r-- | pkg/api/handlers/compat/images_build.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/pkg/api/handlers/compat/images_build.go b/pkg/api/handlers/compat/images_build.go index 1a5665152..6d4fe5513 100644 --- a/pkg/api/handlers/compat/images_build.go +++ b/pkg/api/handlers/compat/images_build.go @@ -73,6 +73,7 @@ func BuildImage(w http.ResponseWriter, r *http.Request) { AdditionalCapabilities string `schema:"addcaps"` Annotations string `schema:"annotations"` AppArmor string `schema:"apparmor"` + AllPlatforms bool `schema:"allplatforms"` BuildArgs string `schema:"buildargs"` CacheFrom string `schema:"cachefrom"` Compression uint64 `schema:"compression"` @@ -121,6 +122,7 @@ func BuildImage(w http.ResponseWriter, r *http.Request) { Target string `schema:"target"` Timestamp int64 `schema:"timestamp"` Ulimits string `schema:"ulimits"` + UnsetEnvs []string `schema:"unsetenv"` Secrets string `schema:"secrets"` }{ Dockerfile: "Dockerfile", @@ -495,6 +497,7 @@ func BuildImage(w http.ResponseWriter, r *http.Request) { AdditionalTags: additionalTags, Annotations: annotations, Args: buildArgs, + AllPlatforms: query.AllPlatforms, CommonBuildOpts: &buildah.CommonBuildOptions{ AddHost: addhosts, ApparmorProfile: apparmor, @@ -548,6 +551,7 @@ func BuildImage(w http.ResponseWriter, r *http.Request) { Squash: query.Squash, Target: query.Target, SystemContext: systemContext, + UnsetEnvs: query.UnsetEnvs, } for _, platformSpec := range query.Platform { |