fix deployment path
This commit is contained in:
parent
577a39fe1f
commit
91180f90b7
@ -110,17 +110,15 @@ async fn deploy_enclave(
|
|||||||
) -> Result<(), Box<dyn std::error::Error>> {
|
) -> Result<(), Box<dyn std::error::Error>> {
|
||||||
println!("Deploying enclave: {:?}", enclave_path);
|
println!("Deploying enclave: {:?}", enclave_path);
|
||||||
let docker_deploy_str = format!(
|
let docker_deploy_str = format!(
|
||||||
"docker run --rm -v {enclave_path}:/enclave_packager --device /dev/sgx/enclave --device /dev/sgx/provision -p 34500:34500 -p 8080-8099:8080-8099 noormohammedb/occlum-enclave:v1");
|
"docker run -v {enclave_path}/enclave_packager:/enclave_packager --device /dev/sgx/enclave --device /dev/sgx/provision -p 34500:34500 noormohammedb/occlum-enclave:v1");
|
||||||
|
|
||||||
println!("{}", &docker_deploy_str);
|
println!("{}", &docker_deploy_str);
|
||||||
|
|
||||||
let mut child = Command::new("sh")
|
let child = Command::new("sh")
|
||||||
.arg("-c")
|
.arg("-c")
|
||||||
.arg(docker_deploy_str)
|
.arg(docker_deploy_str)
|
||||||
.spawn()?;
|
.spawn()?;
|
||||||
|
|
||||||
child.wait()?;
|
|
||||||
|
|
||||||
dbg!(child);
|
dbg!(child);
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user