feat: image pull is now internally explicit

This commit is contained in:
Alex Zenla
2024-04-15 06:50:53 +00:00
parent 5511fb2fa1
commit fdc8f4d634
23 changed files with 532 additions and 386 deletions

View File

@ -38,9 +38,9 @@ async fn main() -> Result<()> {
}
});
let context = OciProgressContext::new(sender);
let service = OciPackerService::new(seed, &cache_dir, OciPlatform::current(), context)?;
let service = OciPackerService::new(seed, &cache_dir, OciPlatform::current())?;
let packed = service
.pack("cli", image.clone(), OciPackedFormat::Squashfs)
.request(image.clone(), OciPackedFormat::Squashfs, context)
.await?;
println!(
"generated squashfs of {} to {}",