Skip to content
Snippets Groups Projects
Commit e42d4dfa authored by František Dvořák's avatar František Dvořák
Browse files

Update JupyterHub with new AAI, remove GUI templating (testing, devel)

parent 16fd8a28
Branches token-exchange
No related tags found
No related merge requests found
...@@ -110,9 +110,8 @@ hub: ...@@ -110,9 +110,8 @@ hub:
url: "http://jwt/" url: "http://jwt/"
display: false display: false
image: image:
name: valtri/hub name: eginotebooks/hub
tag: "eosc2-exchange" tag: "sha-323c75e"
# tag: "eosc-authorize1"
config: config:
Authenticator: Authenticator:
enable_auth_state: true enable_auth_state: true
...@@ -130,14 +129,12 @@ hub: ...@@ -130,14 +129,12 @@ hub:
userdata_url: "https://{{ secret['checkin_host'] }}/OIDC/userinfo" userdata_url: "https://{{ secret['checkin_host'] }}/OIDC/userinfo"
client_id: "{{ secret['client_id'] }}" client_id: "{{ secret['client_id'] }}"
client_secret: "{{ secret['client_secret'] }}" client_secret: "{{ secret['client_secret'] }}"
oauth_callback_url: "https://fullhub.eosc.zcu.cz/hub/oauth_callback" oauth_callback_url: "https://{{ notebooks_hostname }}/hub/oauth_callback"
openid_configuration_url: "https://proxy.testing.eosc-federation.eu/.well-known/openid-configuration" openid_configuration_url: "https://proxy.testing.eosc-federation.eu/.well-known/openid-configuration"
scope: ["openid", "profile", "email", "offline_access", "entitlements"] scope: ["openid", "profile", "email", "offline_access", "entitlements"]
username_claim: "sub" username_claim: "sub"
extra_authorize_params: extra_authorize_params:
prompt: consent prompt: consent
EOSCNodeAuthenticator:
personal_project_re: "^urn:geant:eosc-federation.eu:group:(pp-.*)$"
JupyterHub: JupyterHub:
admin_access: true admin_access: true
authenticate_prometheus: false authenticate_prometheus: false
......
...@@ -14,6 +14,7 @@ all: ...@@ -14,6 +14,7 @@ all:
site_name: cesnet-central site_name: cesnet-central
vault_mount_point: secrets/users/e1662e20-e34b-468c-b0ce-d899bc878364@egi.eu/eosc-dev vault_mount_point: secrets/users/e1662e20-e34b-468c-b0ce-d899bc878364@egi.eu/eosc-dev
notebooks_hostname: fullhub.eosc.zcu.cz
binder_hostname: replay.eosc.zcu.cz binder_hostname: replay.eosc.zcu.cz
old_binder_hostname: binder.eosc.zcu.cz old_binder_hostname: binder.eosc.zcu.cz
docker2_hostname: registry.eosc.zcu.cz docker2_hostname: registry.eosc.zcu.cz
......
...@@ -127,8 +127,8 @@ hub: ...@@ -127,8 +127,8 @@ hub:
url: "http://jwt/" url: "http://jwt/"
display: false display: false
image: image:
name: valtri/hub name: eginotebooks/hub
tag: "eosc9-jwt" tag: "sha-323c75e"
config: config:
Authenticator: Authenticator:
enable_auth_state: true enable_auth_state: true
...@@ -155,7 +155,7 @@ hub: ...@@ -155,7 +155,7 @@ hub:
JupyterHub: JupyterHub:
admin_access: true admin_access: true
authenticate_prometheus: false authenticate_prometheus: false
authenticator_class: egi_notebooks_hub.egiauthenticator.EGICheckinAuthenticator authenticator_class: egi_notebooks_hub.egiauthenticator.EOSCNodeAuthenticator
# spawner_class: (in egi-notebooks-b2drop) # spawner_class: (in egi-notebooks-b2drop)
extraConfig: extraConfig:
egi-notebooks-welcome: |- egi-notebooks-welcome: |-
...@@ -163,7 +163,7 @@ hub: ...@@ -163,7 +163,7 @@ hub:
c.JupyterHub.default_url = "/welcome" c.JupyterHub.default_url = "/welcome"
c.JupyterHub.extra_handlers = [(r'/welcome', WelcomeHandler)] c.JupyterHub.extra_handlers = [(r'/welcome', WelcomeHandler)]
egi-notebooks-b2drop: |- egi-notebooks-b2drop: |-
{% raw %} {%- raw %}
import base64 import base64
import json import json
from jinja2 import BaseLoader from jinja2 import BaseLoader
...@@ -431,28 +431,10 @@ hub: ...@@ -431,28 +431,10 @@ hub:
</div> </div>
""" """
{% endraw %} {% endraw %}
templatePaths:
- /egi-notebooks-hub/templates
extraFiles: extraFiles:
login.html: welcome.html:
mountPath: /egi-notebooks-hub/templates/login.html mountPath: /usr/local/share/jupyterhub/templates/welcome.html
stringData: |- stringData: |-
{% raw %} {%- raw %}
{% extends "egi-login.html" %} {% extends "login.html" %}
{% block main_intro %}
<h1><img alt="Notebooks Logo" src="{{ static_url('images/egi-icon-notebooks.svg') }}"
height="100">Notebooks</h1>
<p>
Notebooks is an environment based on <a href="http://jupyter.org/">Jupyter</a> and
the <a href="https://www.egi.eu/services/cloud-compute/">EGI cloud service</a> that
offers a browser-based, scalable tool for interactive data analysis. The Notebooks
environment provides users with notebooks where they can combine text, mathematics,
computations and rich media output.
</p>
<p>
Access requires a valid <a href="https://docs.egi.eu/users/check-in/signup">EGI account</a>
and <a href="https://docs.egi.eu/users/dev-env/notebooks/#notebooks-for-researchers">
enrolling to one of the supported VOs</a>.
</p>
{% endblock main_intro %}
{% endraw %} {% endraw %}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment