Signed-off-by: kjuulh <contact@kjuulh.io>
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
use std::sync::Arc;
|
||||
|
||||
use async_trait::async_trait;
|
||||
use dagger_sdk::{Container, ImageMediaTypes};
|
||||
use dagger_sdk::Container;
|
||||
|
||||
use crate::dagger_middleware::DaggerMiddleware;
|
||||
|
||||
@@ -35,7 +35,8 @@ impl DaggerMiddleware for DaggerBin {
|
||||
install_script,
|
||||
dagger_sdk::ContainerWithFileOpts {
|
||||
owner: None,
|
||||
permissions: Some(0755),
|
||||
permissions: Some(0o755),
|
||||
expand: None,
|
||||
},
|
||||
)
|
||||
.with_env_variable("DAGGER_VERSION", &self.version)
|
||||
@@ -48,7 +49,8 @@ impl DaggerMiddleware for DaggerBin {
|
||||
dagger_bin,
|
||||
dagger_sdk::ContainerWithFileOpts {
|
||||
owner: None,
|
||||
permissions: Some(0755),
|
||||
permissions: Some(0o755),
|
||||
expand: None,
|
||||
},
|
||||
)
|
||||
.with_exec(vec!["/usr/local/bin/dagger", "version"]))
|
||||
|
@@ -26,21 +26,17 @@ impl DaggerMiddleware for SshAgent {
|
||||
|
||||
let socket = self.client.host().unix_socket(&sock_var);
|
||||
|
||||
let home = container.env_variable("HOME").await.unwrap_or("".into());
|
||||
|
||||
let c = container
|
||||
.with_new_file_opts(
|
||||
".ssh/config".to_string(),
|
||||
ContainerWithNewFileOptsBuilder::default()
|
||||
.contents(
|
||||
r#"
|
||||
r#"
|
||||
Host *
|
||||
UserKnownHostsFile=/dev/null
|
||||
StrictHostKeyChecking no
|
||||
|
||||
"#,
|
||||
)
|
||||
.permissions(0700_isize)
|
||||
ContainerWithNewFileOptsBuilder::default()
|
||||
.permissions(0o700_isize)
|
||||
.build()?,
|
||||
)
|
||||
.with_unix_socket(&sock_var, socket)
|
||||
|
Reference in New Issue
Block a user