-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* testing adding nccasc workshop github usernames to hub * deploy climate hub * missed a value * add secrets for login * add the setup auth to main doc Co-authored-by: lherwehe <lauren.herwehe@colorado.edu> Co-authored-by: leah wasser <leahwasser@leahs-MacBook-Pro.local>
- Loading branch information
1 parent
12f60b9
commit bad16ad
Showing
11 changed files
with
163 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
apiVersion: v1 | ||
description: A Helm chart for the climate 101 workshop hub | ||
name: climate-hub | ||
version: 0.1.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
dependencies: | ||
- name: jupyterhub | ||
version: "v0.9.0" | ||
repository: "https://jupyterhub.github.io/helm-chart" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
jupyterhub: | ||
hub: | ||
nodeSelector: | ||
cloud.google.com/gke-nodepool: core-pool | ||
baseUrl: /climate-hub/ | ||
annotations: | ||
prometheus.io/scrape: "true" | ||
# this needs to start with the value of `hub.baseUrl` | ||
prometheus.io/path: /climate-hub/hub/metrics | ||
resources: | ||
requests: | ||
cpu: 200m | ||
memory: 256Mi | ||
limits: | ||
cpu: 200m | ||
memory: 256Mi | ||
singleuser: | ||
image: | ||
# tag will be set by travis on deployment | ||
name: earthlabhubops/ea-k8s-user-climate-hub | ||
tag: set-on-deployment | ||
startTimeout: 600 | ||
cpu: | ||
guarantee: 1. | ||
limit: 2. | ||
memory: | ||
guarantee: 1G | ||
limit: 2G | ||
lifecycleHooks: | ||
postStart: | ||
exec: | ||
command: | ||
- "sh" | ||
- "-c" | ||
- > | ||
gitpuller https://github.com/earthlab/climate-data-101; | ||
proxy: | ||
nodeSelector: | ||
cloud.google.com/gke-nodepool: core-pool | ||
service: | ||
type: ClusterIP | ||
chp: | ||
resources: | ||
requests: | ||
cpu: 200m | ||
memory: 128Mi | ||
limits: | ||
cpu: 200m | ||
memory: 128Mi | ||
ingress: | ||
enabled: true | ||
hosts: | ||
- hub.earthdatascience.org | ||
annotations: | ||
ingress.kubernetes.io/proxy-body-size: 64m | ||
kubernetes.io/ingress.class: nginx | ||
kubernetes.io/tls-acme: "true" | ||
tls: | ||
- secretName: kubelego-tls-jupyterhub | ||
hosts: | ||
- hub.earthdatascience.org | ||
auth: | ||
admin: | ||
access: true | ||
users: | ||
- lherwehe | ||
- nkorinek | ||
- lwasser | ||
- kcranston | ||
whitelist: | ||
users: | ||
- earth-lab | ||
- lwasser | ||
type: github | ||
github: | ||
callbackUrl: "https://hub.earthdatascience.org/climate-hub/hub/oauth_callback" |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
FROM earthlab/earth-analytics-python-env:214f803 | ||
|
||
# Install nbgrader server extensions - we only want the students to see the | ||
# validate extension, but you can't just install one. You need to install | ||
# them all and then disable the ones you don't want. Hmmm, ok. | ||
|
||
# Setup nbgitpuller to sync files from course repo to hub | ||
RUN conda install -c conda-forge nbgitpuller \ | ||
&& jupyter serverextension enable --py nbgitpuller --sys-prefix | ||
|
||
# Setup nbzip - this allows students to download files from the hub | ||
RUN pip install git+https://github.com/ryanlovett/jupyter-tree-download.git | ||
|
||
# Setup nbgrader + extensions | ||
RUN jupyter nbextension install --sys-prefix --py nbgrader --overwrite \ | ||
&& jupyter nbextension enable --sys-prefix --py nbgrader \ | ||
&& jupyter serverextension enable --sys-prefix --py nbgrader | ||
|
||
# Disable create_assignment & formgrader | ||
RUN jupyter nbextension disable --sys-prefix create_assignment/main \ | ||
# disable formgrader | ||
&& jupyter nbextension disable --sys-prefix formgrader/main --section=tree \ | ||
&& jupyter serverextension disable --sys-prefix \ | ||
nbgrader.server_extensions.formgrader \ | ||
# Disable assignment_list | ||
&& jupyter nbextension disable --sys-prefix assignment_list/main --section=tree \ | ||
&& jupyter serverextension disable --sys-prefix \ | ||
nbgrader.server_extensions.assignment_list | ||
|
||
# Install zip to support the download tool | ||
USER root | ||
RUN apt-get update && apt-get -y install zip |