From 42de1bc996a9534a591166f2d60bfeadc5735d60 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Franti=C5=A1ek=20Dvo=C5=99=C3=A1k?= <valtri@civ.zcu.cz> Date: Fri, 2 Aug 2024 12:23:46 +0000 Subject: [PATCH] Disable news and updates - cleanups --- cesnet-central/deployments/fullhub.yaml | 20 +++++++++++++++++++- common/deployments/hub-staging.yaml | 1 - testing/deployments/hub.yaml | 20 +++++++++++++++++++- 3 files changed, 38 insertions(+), 3 deletions(-) diff --git a/cesnet-central/deployments/fullhub.yaml b/cesnet-central/deployments/fullhub.yaml index 5e0e969..056ea6f 100644 --- a/cesnet-central/deployments/fullhub.yaml +++ b/cesnet-central/deployments/fullhub.yaml @@ -104,9 +104,27 @@ singleuser: exec jupyterhub-singleuser \ --FileCheckpoints.checkpoint_dir='/home/jovyan/.notebookCheckpoints' \ - --LabApp.news_url=None \ --NotebookNotary.db_file=':memory:' \ "$@" + disable-labnews: + mode: 0644 + mountPath: /opt/conda/share/jupyter/lab/settings/overrides.json + stringData: |- + { + "@jupyterlab/apputils-extension:notification": { + "checkForUpdates": "false", + "fetchNews": "false" + }, + "@jupyterlab/application-extension:context-menu": { + "contextMenu": [ + { + "command": "filebrowser:share-main", + "selector": ".jp-DirListing-item[data-isdir]", + "disabled": true + } + ] + } + } hub: services: diff --git a/common/deployments/hub-staging.yaml b/common/deployments/hub-staging.yaml index 29ec602..d56488d 100644 --- a/common/deployments/hub-staging.yaml +++ b/common/deployments/hub-staging.yaml @@ -122,7 +122,6 @@ singleuser: exec jupyterhub-singleuser \ --FileCheckpoints.checkpoint_dir='/home/jovyan/.notebookCheckpoints' \ - --LabApp.news_url=None \ --NotebookNotary.db_file=':memory:' \ "$@" disable-labnews: diff --git a/testing/deployments/hub.yaml b/testing/deployments/hub.yaml index 611c633..76934d3 100644 --- a/testing/deployments/hub.yaml +++ b/testing/deployments/hub.yaml @@ -123,9 +123,27 @@ singleuser: exec jupyterhub-singleuser \ --FileCheckpoints.checkpoint_dir='/home/jovyan/.notebookCheckpoints' \ - --LabApp.news_url=None \ --NotebookNotary.db_file=':memory:' \ "$@" + disable-labnews: + mode: 0644 + mountPath: /opt/conda/share/jupyter/lab/settings/overrides.json + stringData: |- + { + "@jupyterlab/apputils-extension:notification": { + "checkForUpdates": "false", + "fetchNews": "false" + }, + "@jupyterlab/application-extension:context-menu": { + "contextMenu": [ + { + "command": "filebrowser:share-main", + "selector": ".jp-DirListing-item[data-isdir]", + "disabled": true + } + ] + } + } hub: services: -- GitLab