mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-09-25 10:43:15 +00:00
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:
2022
src/tools/agent-ctl/Cargo.lock
generated
2022
src/tools/agent-ctl/Cargo.lock
generated
File diff suppressed because it is too large
Load Diff
@@ -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",
|
||||
|
@@ -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)?;
|
||||
|
Reference in New Issue
Block a user