mirror of
https://github.com/edera-dev/krata.git
synced 2025-08-05 22:21:31 +00:00
hypha: add support for passing environment variables
This commit is contained in:
@ -288,6 +288,9 @@ impl ContainerInit {
|
||||
Some(value) => value.clone(),
|
||||
};
|
||||
env.push("HYPHA_CONTAINER=1".to_string());
|
||||
if let Some(extra_env) = &launch.env {
|
||||
env.extend_from_slice(extra_env.as_slice());
|
||||
}
|
||||
let path_cstr = CString::new(path)?;
|
||||
let cmd_cstr = ContainerInit::strings_as_cstrings(cmd)?;
|
||||
let env_cstr = ContainerInit::strings_as_cstrings(env)?;
|
||||
|
Reference in New Issue
Block a user