Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set gh-scoped-creds vars in RStudio env. #5558

Merged
merged 1 commit into from
Feb 22, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion deployments/dlab/config/common.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,19 @@ jupyterhub:
singleuser:
extraEnv:
# Unset NotebookApp from hub/values. Necessary for recent lab versions.
JUPYTERHUB_SINGLEUSER_APP: "jupyter_server.serverapp.ServerApp"
# Set gh-scoped-creds vars for R and Jupyter
GH_SCOPED_CREDS_CLIENT_ID: Iv1.9b3b48abeb673056
GH_SCOPED_CREDS_APP_URL: https://github.com/apps/dlab-berkeley-datahub-access
JUPYTERHUB_SINGLEUSER_APP: "jupyter_server.serverapp.ServerApp"
extraFiles:
# Set gh-scoped-creds vars for RStudio too. RStudio drops most vars
# including those we set in extraEnv.
gh-scoped-creds:
mountPath: /etc/R/Rprofile.site.d/gh-scoped-creds.r
stringData: |
Sys.setenv(GH_SCOPED_CREDS_APP_URL = "Iv1.9b3b48abeb673056")
Sys.setenv(GH_SCOPED_CREDS_CLIENT_ID = "https://github.com/apps/dlab-berkeley-datahub-access")
mode: 0644
nodeSelector:
hub.jupyter.org/pool-name: dlab-pool
storage:
Expand Down
Loading