feature(oci): use local index as resolution cache when appropriate, fixes #289 (#294)

This commit is contained in:
alex authored and GitHub committed 2024-07-31 23:05:15 +00:00
1 parent 902fffe207
commit 8216ab3602
9 files changed
+72 -5

No files matched your search

+1
View File
@@ -38,6 +38,7 @@ impl ImagePullCommand {
ImagePullImageFormat::Tar => OciImageFormat::Tar.into(),
},
overwrite_cache: self.overwrite_cache,
update: true,
})
.await?;
let reply = pull_interactive_progress(response.into_inner()).await?;
+3
View File
@@ -34,6 +34,8 @@ pub struct ZoneLaunchCommand {
image_format: LaunchImageFormat,
#[arg(long, help = "Overwrite image cache on pull")]
pull_overwrite_cache: bool,
#[arg(long, help = "Update image on pull")]
pull_update: bool,
#[arg(short, long, help = "Name of the zone")]
name: Option<String>,
#[arg(short, long, default_value_t = 1, help = "vCPUs available to the zone")]
@@ -181,6 +183,7 @@ impl ZoneLaunchCommand {
image: image.to_string(),
format: format.into(),
overwrite_cache: self.pull_overwrite_cache,
update: self.pull_update,
})
.await?;
let reply = pull_interactive_progress(response.into_inner()).await?;