OCI framework added. setup-ostree-test-env.sh added. Basic docs setup-ostree-test-env.md added. time to yolo

This commit is contained in:
robojerk 2025-07-18 23:47:06 +00:00
parent 97a9c40d7e
commit 941b46e9e0
8 changed files with 986 additions and 36 deletions

View file

@ -675,9 +675,21 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
}
},
ComposeSubcommand::BuildImage { source, output, format } => {
let _system = AptOstreeSystem::new("debian/stable/x86_64").await?;
// TODO: Implement compose build-image functionality
println!("Compose build-image functionality not yet implemented for source: {} -> {} ({})", source, output, format);
info!("Building OCI image from source: {} -> {} ({})", source, output, format);
// Create OCI image builder
let oci_builder = oci::OciImageBuilder::new().await?;
// Build the image
match oci_builder.build_image_from_commit(source, &output, &format).await {
Ok(image_path) => {
println!("OCI image created successfully: {}", image_path);
},
Err(e) => {
eprintln!("Failed to create OCI image: {}", e);
return Err(e.into());
}
}
},
ComposeSubcommand::List => {
let compose_manager = compose::ComposeManager::new("debian/stable/x86_64").await?;