diff options
author | Brent Baude <bbaude@redhat.com> | 2020-03-15 12:30:33 -0500 |
---|---|---|
committer | Brent Baude <bbaude@redhat.com> | 2020-03-15 12:49:42 -0500 |
commit | 9ca4b6c6f5105566b19c87f2ecd1bc1d54f791d3 (patch) | |
tree | 9f4739e4ec74d4a82107ca0d43a870fc8547a14e /cmd/podman/build.go | |
parent | 8b07ad1138bea8dfa71890c22e811bdd809b4e7e (diff) | |
download | podman-9ca4b6c6f5105566b19c87f2ecd1bc1d54f791d3.tar.gz podman-9ca4b6c6f5105566b19c87f2ecd1bc1d54f791d3.tar.bz2 podman-9ca4b6c6f5105566b19c87f2ecd1bc1d54f791d3.zip |
add os|arch attributes when building
when building images, we can now add the os and arch of the image using overrides from the commandline. the commandline options set sane defaults so we use those as well.
Fixes: #5503
Signed-off-by: Brent Baude <bbaude@redhat.com>
Diffstat (limited to 'cmd/podman/build.go')
-rw-r--r-- | cmd/podman/build.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/cmd/podman/build.go b/cmd/podman/build.go index b8b315c68..acd402fdd 100644 --- a/cmd/podman/build.go +++ b/cmd/podman/build.go @@ -342,6 +342,7 @@ func buildCmd(c *cliconfig.BuildValues) error { } options := imagebuildah.BuildOptions{ + Architecture: c.Arch, CommonBuildOpts: &buildOpts, AdditionalTags: tags, Annotations: c.Annotation, @@ -359,6 +360,7 @@ func buildCmd(c *cliconfig.BuildValues) error { Layers: layers, NamespaceOptions: nsValues, NoCache: c.NoCache, + OS: c.OS, Out: stdout, Output: output, OutputFormat: format, |