Skip to main content

Module buildah

Module buildah 

Source
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§

BuildahCommand
A buildah command ready for execution
BuildahExecutor
Executor for buildah commands
BuildahInstallation
Information about a discovered buildah installation
BuildahInstaller
Buildah installation manager
CommandOutput
Output from a buildah command execution

Enums§

InstallError
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