Expand description
Buildah command generation and execution
This module provides types and functions for converting Dockerfile instructions into buildah commands and executing them.
§Installation
The BuildahInstaller type can be used to find existing buildah installations
or provide helpful installation instructions when buildah is not found.
use zlayer_builder::buildah::{BuildahInstaller, BuildahExecutor};
// Ensure buildah is available
let installer = BuildahInstaller::new();
let installation = installer.ensure().await?;
// Create executor using found installation
let executor = BuildahExecutor::with_path(installation.path);Structs§
- Buildah
Command - A buildah command ready for execution
- Buildah
Executor - Executor for buildah commands
- Buildah
Installation - Information about a discovered buildah installation
- Buildah
Installer - Buildah installation manager
- Command
Output - Output from a buildah command execution
- Dockerfile
Translator - Stateful translator from
InstructiontoBuildahCommandsequences.
Enums§
- Install
Error - Errors that can occur during buildah installation/discovery
Functions§
- current_
platform - Get the current platform (OS and architecture)
- install_
instructions - Get installation instructions for the current platform
- is_
platform_ supported - Check if the current platform is supported for buildah