From 3ba28cc018ed5a12989dd29b262b904cf93d9a08 Mon Sep 17 00:00:00 2001 From: Jonathan Felder Date: Fri, 30 Aug 2024 15:17:57 -0700 Subject: [PATCH] [DH-361] adding gh-scoped-creds for nature hub --- deployments/nature/config/common.yaml | 2 ++ deployments/nature/image/environment.yml | 11 +++++++---- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/deployments/nature/config/common.yaml b/deployments/nature/config/common.yaml index 4ffa072de..a92e96c05 100644 --- a/deployments/nature/config/common.yaml +++ b/deployments/nature/config/common.yaml @@ -43,6 +43,8 @@ jupyterhub: c.WebPDFExporter.embed_images = True extraEnv: # Unset NotebookApp from hub/values. Necessary for recent lab versions. + GH_SCOPED_CREDS_CLIENT_ID: Iv23liGBW8jtMBP0inyw + GH_SCOPED_CREDS_APP_URL: https://github.com/apps/uc-berkeley-nature-hub-git-access JUPYTERHUB_SINGLEUSER_APP: "jupyter_server.serverapp.ServerApp" nodeSelector: hub.jupyter.org/pool-name: nature-pool diff --git a/deployments/nature/image/environment.yml b/deployments/nature/image/environment.yml index 7947296da..7e657a279 100644 --- a/deployments/nature/image/environment.yml +++ b/deployments/nature/image/environment.yml @@ -6,26 +6,29 @@ channels: dependencies: # Items required for basic level functionality -- python==3.11.* - git==2.46.0 - jupyter-resource-usage=1.1.0 - jupyterhub==4.1.6 - jupyterlab==4.2.5 - jupyter_server==2.14.2 -- notebook==7.2.2 - nbgitpuller==1.2.1 +- notebook==7.2.2 +- python==3.11.* # vscode - code-server==4.23.1 - jupyter-vscode-proxy==0.6 # other packages -- seaborn==0.13.2 - altair==5.4.1 +- gh-scoped-creds==4.1 - ibis-framework[pandas,duckdb]==9.3.0 -- leafmap==0.36.10 - jupyterlab-myst==2.4.2 +- leafmap==0.36.10 +- seaborn==0.13.2 +- streamlit==1.38.0 +# pip installed packages, conda is prefered - pip==24.2 - pip: - nbconvert[webpdf]==7.16.4