Move the --farm flag to farm build command

The option `farm` which is used to specify the farm to be used, is moved to farm build command from farm command.

closes #20752

Signed-off-by: Chetan Giradkar <cgiradka@redhat.com>
This commit is contained in:
Chetan Giradkar
2023-11-28 15:50:27 +00:00
parent 06c41b614d
commit 31df9c237e
5 changed files with 27 additions and 23 deletions

View File

@ -0,0 +1,7 @@
####> This option file is used in:
####> podman farm build
####> If file is edited, make sure the changes
####> are applicable to all of those.
#### **--farm**
This option specifies the name of the farm to be used in the build process.

View File

@ -89,6 +89,10 @@ It does not affect _/etc/resolv.conf_ in the final image.
@@option env.image
@@option farm
This option specifies the name of the farm to be used in the build process.
@@option file
@@option force-rm
@ -214,9 +218,9 @@ Build only on farm nodes that match the given platforms.
```
$ podman farm build --local -t name -f /path/to/containerfile .
$ podman farm --farm build myfarm -t name .
$ podman farm build --farm myfarm -t name .
$ podman farm --farm myfarm build --cleanup -t name .
$ podman farm build --farm myfarm --cleanup -t name .
$ podman farm build --platforms arm64,amd64 --cleanup -t name .
```