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:
parent
97a9c40d7e
commit
941b46e9e0
8 changed files with 986 additions and 36 deletions
18
src/main.rs
18
src/main.rs
|
|
@ -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?;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue