Skip to content

Commit 11c7427

Browse files
committedApr 27, 2024
Merge branch 'main' of github.com:queil/rooz
2 parents 883ddc8 + f9cbd2c commit 11c7427

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed
 

‎src/api/sidecar.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ impl<'a> WorkspaceApi<'a> {
8383
.container
8484
.create(RunSpec {
8585
container_name: &container_name,
86-
uid: constants::ROOT_UID,
86+
uid: &s.user.as_deref().unwrap_or(&constants::ROOT_UID),
8787
image: &s.image,
8888
force_recreate: force,
8989
workspace_key: &workspace_key,

‎src/model/config.rs

+2
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,8 @@ pub struct RoozSidecar {
7171
pub mount_work: Option<bool>,
7272
#[serde(skip_serializing_if = "Option::is_none")]
7373
pub work_dir: Option<String>,
74+
#[serde(skip_serializing_if = "Option::is_none")]
75+
pub user: Option<String>,
7476
}
7577

7678
#[derive(Debug, Serialize, Deserialize, Clone)]

0 commit comments

Comments
 (0)