summaryrefslogtreecommitdiff
path: root/cmd/podman/images/buildx.go
diff options
context:
space:
mode:
authorDaniel J Walsh <dwalsh@redhat.com>2021-08-04 14:59:44 -0400
committerDaniel J Walsh <dwalsh@redhat.com>2021-08-09 13:05:49 -0400
commit170fb257295027aeb6410b86e06c38086299d2e3 (patch)
tree4f21e0320895a90cdb78df27beb97dcf16bfcb53 /cmd/podman/images/buildx.go
parent04ab2b16617fe2d3178eb0b461aacbcab609611e (diff)
downloadpodman-170fb257295027aeb6410b86e06c38086299d2e3.tar.gz
podman-170fb257295027aeb6410b86e06c38086299d2e3.tar.bz2
podman-170fb257295027aeb6410b86e06c38086299d2e3.zip
Alias build to buildx, so it won't fail
Add hidden --load and --progress flag as well. Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
Diffstat (limited to 'cmd/podman/images/buildx.go')
-rw-r--r--cmd/podman/images/buildx.go29
1 files changed, 29 insertions, 0 deletions
diff --git a/cmd/podman/images/buildx.go b/cmd/podman/images/buildx.go
new file mode 100644
index 000000000..5c8e5aaa0
--- /dev/null
+++ b/cmd/podman/images/buildx.go
@@ -0,0 +1,29 @@
+package images
+
+import (
+ "github.com/containers/podman/v3/cmd/podman/registry"
+ "github.com/containers/podman/v3/cmd/podman/validate"
+ "github.com/spf13/cobra"
+)
+
+var (
+ // Command: podman _buildx_
+ // This is a hidden command, which was added to make converting
+ // from Docker to Podman easier.
+ // For now podman buildx build just calls into podman build
+ // If we are adding new buildx features, we will add them by default
+ // to podman build.
+ buildxCmd = &cobra.Command{
+ Use: "buildx",
+ Short: "Build images",
+ Long: "Build images",
+ RunE: validate.SubCommandExists,
+ Hidden: true,
+ }
+)
+
+func init() {
+ registry.Commands = append(registry.Commands, registry.CliCommand{
+ Command: buildxCmd,
+ })
+}