agent-ctl: Bump image-rs version

I notices that agent-ctl is including a 9 month old version of
image-rs and the libs crates haven't been update for potentially
many years, so bump all of these.

Signed-off-by: stevenhorsman <steven@uk.ibm.com>
This commit is contained in:
stevenhorsman
2025-06-25 16:30:58 +01:00
parent c7da62dd1e
commit 290fda9b97
3 changed files with 1492 additions and 544 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -43,7 +43,7 @@ serde = { version = "1.0.131", features = ["derive"] }
serde_json = "1.0.73"
# Image pull/unpack
image-rs = { git = "https://github.com/confidential-containers/guest-components", rev = "v0.10.0", features = [
image-rs = { git = "https://github.com/confidential-containers/guest-components", rev = "4cd62c3f8a6475a556eceb5f4538e523e9491400", features = [
"snapshot-overlayfs",
"oci-client-rustls",
"signature-cosign-rustls",

View File

@@ -5,12 +5,11 @@
// Description: Image client to manage container images for testing container creation
use anyhow::{anyhow, Context, Result};
use image_rs::image::ImageClient;
use image_rs::builder::ClientBuilder;
use nix::mount::umount;
use safe_path::scoped_join;
use slog::{debug, warn};
use std::fs;
use std::path::PathBuf;
const IMAGE_WORK_DIR: &str = "/run/kata-containers/test_image/";
const CONTAINER_BASE_TEST: &str = "/run/kata-containers/testing/";
@@ -28,9 +27,12 @@ pub fn pull_image(image: &str, cid: &str) -> Result<String> {
}
debug!(sl!(), "pull_image: creating image client");
let mut image_client = ImageClient::new(PathBuf::from(IMAGE_WORK_DIR));
image_client.config.auth = false;
image_client.config.security_validate = false;
let image_client_builder = ClientBuilder::default().work_dir(IMAGE_WORK_DIR.into());
let mut image_client = tokio::runtime::Builder::new_current_thread()
.enable_all()
.build()?
.block_on(image_client_builder.build())
.context("Build the image client")?;
// setup the container test base path
fs::create_dir_all(CONTAINER_BASE_TEST)?;