-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add driver selection args (#153)
There are 2 new args available that allow the user to specify which program to use for building and inspecting images. If the user doesn't provide an argument, the tool will determine which program to use like it has been. Help text: ``` Build an image from a recipe Usage: bluebuild build [OPTIONS] [RECIPE] Arguments: [RECIPE] The recipe file to build an image Options: -p, --push Push the image with all the tags. Requires `--registry`, `--username`, and `--password` if not building in CI. -c, --compression-format <COMPRESSION_FORMAT> The compression format the images will be pushed in [default: gzip] [possible values: gzip, zstd] -n, --no-retry-push Block `bluebuild` from retrying to push the image --retry-count <RETRY_COUNT> The number of times to retry pushing the image [default: 1] -f, --force Allow `bluebuild` to overwrite an existing Containerfile without confirmation. This is not needed if the Containerfile is in .gitignore or has already been built by `bluebuild`. -a, --archive <ARCHIVE> Archives the built image into a tarfile in the specified directory --registry <REGISTRY> The registry's domain name -v, --verbose... Increase logging verbosity -q, --quiet... Decrease logging verbosity --registry-namespace <REGISTRY_NAMESPACE> The url path to your base project images [aliases: registry-path] -U, --username <USERNAME> The username to login to the container registry -P, --password <PASSWORD> The password to login to the container registry -B, --build-driver <BUILD_DRIVER> Select which driver to use to build your image [possible values: buildah, podman, docker] -I, --inspect-driver <INSPECT_DRIVER> Select which driver to use to inspect images [possible values: skopeo, podman, docker] -h, --help Print help (see a summary with '-h') ```
- Loading branch information
Showing
5 changed files
with
138 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
use clap::ValueEnum; | ||
|
||
#[derive(Debug, Clone, Copy, ValueEnum)] | ||
pub enum InspectDriverType { | ||
Skopeo, | ||
Podman, | ||
Docker, | ||
} | ||
|
||
#[derive(Debug, Clone, Copy, ValueEnum)] | ||
pub enum BuildDriverType { | ||
Buildah, | ||
Podman, | ||
Docker, | ||
} |