From 32bd81536cae6819e421cc8a18fd7794a56a5577 Mon Sep 17 00:00:00 2001 From: YuviPanda Date: Mon, 9 Oct 2023 14:08:12 -0700 Subject: [PATCH] Mount homedir for rocker profile under /home/rstudio Fixes https://github.com/2i2c-org/infrastructure/issues/3242 --- config/clusters/openscapes/prod.values.yaml | 14 ++++++++++++++ config/clusters/openscapes/staging.values.yaml | 15 +++++++++++++++ 2 files changed, 29 insertions(+) diff --git a/config/clusters/openscapes/prod.values.yaml b/config/clusters/openscapes/prod.values.yaml index 7e1c6f3b82..389abe61bb 100644 --- a/config/clusters/openscapes/prod.values.yaml +++ b/config/clusters/openscapes/prod.values.yaml @@ -89,6 +89,20 @@ basehub: description: R (with RStudio) + Python environment kubespawner_override: image: openscapes/rocker:a7596b5 + # Ensures container working dir is homedir + # https://github.com/2i2c-org/infrastructure/issues/2559 + working_dir: /home/rstudio + # Because this is a list, it will override our default volume mounts + volume_mounts: + # Mount the user home directory + - name: home + mountPath: /home/rstudio + subPath: "{username}" + # Mount the shared readonly directory + - name: home + mountPath: /home/rstudio/shared + subPath: _shared + readOnly: true profile_options: *profile_options - display_name: Matlab description: Matlab environment diff --git a/config/clusters/openscapes/staging.values.yaml b/config/clusters/openscapes/staging.values.yaml index 2cc1f4930e..dd5f125302 100644 --- a/config/clusters/openscapes/staging.values.yaml +++ b/config/clusters/openscapes/staging.values.yaml @@ -110,6 +110,21 @@ basehub: default: true kubespawner_override: image: openscapes/rocker:a7596b5 + # Ensures container working dir is homedir + # https://github.com/2i2c-org/infrastructure/issues/2559 + working_dir: /home/rstudio + # Because this is a list, it will override our default volume mounts + volume_mounts: + # Mount the user home directory + - name: home + mountPath: /home/rstudio + subPath: "{username}" + # Mount the shared readonly directory + - name: home + mountPath: /home/rstudio/shared + subPath: _shared + readOnly: true + requests: *requests_profile_options - display_name: Matlab description: Matlab environment