From f8256058d6e8fd660365561bc862bbbe7a92e9aa Mon Sep 17 00:00:00 2001 From: EduardDurech <39579228+EduardDurech@users.noreply.github.com> Date: Tue, 23 Jul 2024 20:31:26 +0200 Subject: [PATCH 1/3] Set HOME to working_dir --- csub.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/csub.py b/csub.py index c80685b..d539628 100644 --- a/csub.py +++ b/csub.py @@ -209,7 +209,7 @@ environment: items: HOME: - value: "/home/{user_cfg['user']}" + value: "{working_dir}" NB_USER: value: {user_cfg['user']} NB_UID: From fc20282e0b15bf5d1be784a841a8867426d89bc7 Mon Sep 17 00:00:00 2001 From: EduardDurech <39579228+EduardDurech@users.noreply.github.com> Date: Tue, 23 Jul 2024 22:06:56 +0200 Subject: [PATCH 2/3] Update Kube YAML workingDir --- csub.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/csub.py b/csub.py index d539628..3fa5fbe 100644 --- a/csub.py +++ b/csub.py @@ -206,6 +206,8 @@ value: {args.name} arguments: value: "/bin/zsh -c 'source ~/.zshrc && {args.command}'" # zshrc is just loaded to have some env variables ready + workingDir: + value: {working_dir} environment: items: HOME: From 59565240935d76832b65fc0c8e44545fe6a18111 Mon Sep 17 00:00:00 2001 From: EduardDurech <39579228+EduardDurech@users.noreply.github.com> Date: Thu, 10 Oct 2024 18:47:32 +0200 Subject: [PATCH 3/3] Update gid --- template/user_template.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/template/user_template.yaml b/template/user_template.yaml index 47a4835..419f9be 100644 --- a/template/user_template.yaml +++ b/template/user_template.yaml @@ -2,7 +2,7 @@ user: uid: group: MLO-unit -gid: 75545 +gid: 83070 wandb_api_key: working_dir: /mloscratch/homes/ symlinks: # list of symlinks to create (enter 'dir' or 'file' and the path)')