From b4f8146410fec7cc256950bfda88683496f3c8b4 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Franti=C5=A1ek=20Dvo=C5=99=C3=A1k?= <valtri@civ.zcu.cz>
Date: Mon, 22 Jul 2024 20:08:50 +0000
Subject: [PATCH] Tune jupyterlab parametrers - annotations, checkpoints, conda
 env

---
 cesnet-central/deployments/fullhub.yaml | 8 ++++++--
 staging1/deployments/hub.yaml           | 8 ++++++--
 testing/deployments/hub.yaml            | 8 ++++++--
 3 files changed, 18 insertions(+), 6 deletions(-)

diff --git a/cesnet-central/deployments/fullhub.yaml b/cesnet-central/deployments/fullhub.yaml
index 4c933fc..0d1c88e 100644
--- a/cesnet-central/deployments/fullhub.yaml
+++ b/cesnet-central/deployments/fullhub.yaml
@@ -102,7 +102,10 @@ singleuser:
 
         cd .
 
-        exec jupyterhub-singleuser "$@"
+        exec jupyterhub-singleuser \
+          --FileCheckpoints.checkpoint_dir='/home/jovyan/.notebookCheckpoints' \
+          --LabApp.news_url=None \
+          "$@"
 
 hub:
   services:
@@ -144,6 +147,8 @@ hub:
       authenticate_prometheus: false
       authenticator_class: egi_notebooks_hub.egiauthenticator.EOSCNodeAuthenticator
       # spawner_class: (in egi-notebooks-b2drop)
+    LabApp:
+      check_for_updates_class: jupyterlab.NeverCheckForUpdate
   extraConfig:
     egi-notebooks-welcome: |-
       from egi_notebooks_hub.welcome import WelcomeHandler
@@ -326,7 +331,6 @@ hub:
 
       c.JupyterHub.spawner_class = WebDavOIDCSpawner
       c.B2DropSpawner.http_timeout = 90
-      c.B2DropSpawner.args = ["--FileCheckpoints.checkpoint_dir='/home/jovyan/.notebookCheckpoints'"]
       c.B2DropSpawner.profile_form_template = """
         <style>
             /*
diff --git a/staging1/deployments/hub.yaml b/staging1/deployments/hub.yaml
index 8a3a9d5..2b751ea 100644
--- a/staging1/deployments/hub.yaml
+++ b/staging1/deployments/hub.yaml
@@ -120,7 +120,10 @@ singleuser:
 
         cd .
 
-        exec jupyterhub-singleuser "$@"
+        exec jupyterhub-singleuser \
+          --FileCheckpoints.checkpoint_dir='/home/jovyan/.notebookCheckpoints' \
+          --LabApp.news_url=None \
+          "$@"
 
 hub:
   services:
@@ -162,6 +165,8 @@ hub:
       authenticate_prometheus: false
       authenticator_class: egi_notebooks_hub.egiauthenticator.EOSCNodeAuthenticator
       # spawner_class: (in egi-notebooks-b2drop)
+    LabApp:
+      check_for_updates_class: jupyterlab.NeverCheckForUpdate
   extraConfig:
     egi-notebooks-welcome: |-
       from egi_notebooks_hub.welcome import WelcomeHandler
@@ -345,7 +350,6 @@ hub:
       # c.JupyterHub.spawner_class = WebDavOIDCSpawner
       c.JupyterHub.spawner_class = B2DropSpawner
       c.B2DropSpawner.http_timeout = 90
-      c.B2DropSpawner.args = ["--FileCheckpoints.checkpoint_dir='/home/jovyan/.notebookCheckpoints'"]
       c.B2DropSpawner.profile_form_template = """
         <style>
             /*
diff --git a/testing/deployments/hub.yaml b/testing/deployments/hub.yaml
index 3601118..03ebecd 100644
--- a/testing/deployments/hub.yaml
+++ b/testing/deployments/hub.yaml
@@ -121,7 +121,10 @@ singleuser:
 
         cd .
 
-        exec jupyterhub-singleuser "$@"
+        exec jupyterhub-singleuser \
+          --FileCheckpoints.checkpoint_dir='/home/jovyan/.notebookCheckpoints' \
+          --LabApp.news_url=None \
+          "$@"
 
 hub:
   services:
@@ -163,6 +166,8 @@ hub:
       authenticate_prometheus: false
       authenticator_class: egi_notebooks_hub.egiauthenticator.EOSCNodeAuthenticator
       # spawner_class: (in egi-notebooks-b2drop)
+    LabApp:
+      check_for_updates_class: jupyterlab.NeverCheckForUpdate
   extraConfig:
     egi-notebooks-welcome: |-
       from egi_notebooks_hub.welcome import WelcomeHandler
@@ -345,7 +350,6 @@ hub:
 
       c.JupyterHub.spawner_class = WebDavOIDCSpawner
       c.B2DropSpawner.http_timeout = 90
-      c.B2DropSpawner.args = ["--FileCheckpoints.checkpoint_dir='/home/jovyan/.notebookCheckpoints'"]
       c.B2DropSpawner.profile_form_template = """
         <style>
             /*
-- 
GitLab