Skip to content
Snippets Groups Projects
Verified Commit 11f19ecb authored by Jaromír Hradil's avatar Jaromír Hradil
Browse files

Adding custom EOSC styling

parent cceb9a2e
No related branches found
No related tags found
1 merge request!8Adding custom EOSC styling
...@@ -51,8 +51,8 @@ singleuser: ...@@ -51,8 +51,8 @@ singleuser:
guarantee: .02 guarantee: .02
defaultUrl: "/lab" defaultUrl: "/lab"
image: image:
name: eginotebooks/single-user name: eginotebooks/single-user-eosc
tag: "sha-0f4a63c" tag: "sha-d17f966"
profileList: profileList:
- display_name: Small Environment - 2 vCPU / 4 GB RAM (non-collaboratice) - display_name: Small Environment - 2 vCPU / 4 GB RAM (non-collaboratice)
description: > description: >
...@@ -131,6 +131,14 @@ singleuser: ...@@ -131,6 +131,14 @@ singleuser:
singleuser-webdav-wrapper.sh: singleuser-webdav-wrapper.sh:
mode: 0755 mode: 0755
mountPath: /usr/local/bin/jupyterhub-singleuser-webdav-wrapper mountPath: /usr/local/bin/jupyterhub-singleuser-webdav-wrapper
#NotebookNotary.db_file=':memory:' is used due to issues
#notebook notary file was causing in ~/.jupyter in ownCloud mount
#
#LabApp.custom_css=True allows to use custom CSS for EOSC style
#
#ResourceUseDisplay.mem_warning_threshold=0.75 sets memory warning at 75%
#threshold for resource-usage extension which is also used by EGI
#notebooks-resource-warning extension
stringData: |- stringData: |-
#! /bin/sh #! /bin/sh
# #
...@@ -143,30 +151,12 @@ singleuser: ...@@ -143,30 +151,12 @@ singleuser:
/usr/local/bin/jupyterhub-wait-remote-home /usr/local/bin/jupyterhub-wait-remote-home
cd . cd .
exec jupyterhub-singleuser \ exec jupyterhub-singleuser \
--FileCheckpoints.checkpoint_dir='/home/jovyan/.notebookCheckpoints' \ --FileCheckpoints.checkpoint_dir='/home/jovyan/.notebookCheckpoints' \
--NotebookNotary.db_file=':memory:' \ --NotebookNotary.db_file=':memory:' \
--LabApp.custom_css=True \
--ResourceUseDisplay.mem_warning_threshold=0.25 \
"$@" "$@"
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: hub:
services: services:
...@@ -179,7 +169,7 @@ hub: ...@@ -179,7 +169,7 @@ hub:
# recommended to keep in sync with common/playbooks/files/jupyterhub-jwt.yaml # recommended to keep in sync with common/playbooks/files/jupyterhub-jwt.yaml
image: image:
name: eginotebooks/hub name: eginotebooks/hub
tag: "sha-bebde36" tag: "sha-857a93e"
config: config:
Authenticator: Authenticator:
enable_auth_state: true enable_auth_state: true
...@@ -324,6 +314,8 @@ hub: ...@@ -324,6 +314,8 @@ hub:
c.WebDavOIDCSpawner.token_mount_path = "/var/run/secrets/oidc/" c.WebDavOIDCSpawner.token_mount_path = "/var/run/secrets/oidc/"
c.WebDavOIDCSpawner.http_timeout = 90 c.WebDavOIDCSpawner.http_timeout = 90
{% endraw %} {% endraw %}
templatePaths:
- /egi-notebooks-hub/ec-templates
extraFiles: extraFiles:
welcome.html: welcome.html:
mountPath: /usr/local/share/jupyterhub/templates/welcome.html mountPath: /usr/local/share/jupyterhub/templates/welcome.html
......
...@@ -51,8 +51,8 @@ singleuser: ...@@ -51,8 +51,8 @@ singleuser:
guarantee: .2 guarantee: .2
defaultUrl: "/lab" defaultUrl: "/lab"
image: image:
name: eginotebooks/single-user name: eginotebooks/single-user-eosc
tag: "sha-0f4a63c" tag: "sha-d17f966"
profileList: profileList:
- display_name: Small Environment - 2 vCPU / 4 GB RAM - display_name: Small Environment - 2 vCPU / 4 GB RAM
description: > description: >
...@@ -113,6 +113,14 @@ singleuser: ...@@ -113,6 +113,14 @@ singleuser:
singleuser-webdav-wrapper.sh: singleuser-webdav-wrapper.sh:
mode: 0755 mode: 0755
mountPath: /usr/local/bin/jupyterhub-singleuser-webdav-wrapper mountPath: /usr/local/bin/jupyterhub-singleuser-webdav-wrapper
#NotebookNotary.db_file=':memory:' is used due to issues
#notebook notary file was causing in ~/.jupyter in ownCloud mount
#
#LabApp.custom_css=True allows to use custom CSS for EOSC style
#
#ResourceUseDisplay.mem_warning_threshold=0.75 sets memory warning at 75%
#threshold for resource-usage extension which is also used by EGI
#notebooks-resource-warning extension
stringData: |- stringData: |-
#! /bin/sh #! /bin/sh
# #
...@@ -125,30 +133,12 @@ singleuser: ...@@ -125,30 +133,12 @@ singleuser:
/usr/local/bin/jupyterhub-wait-remote-home /usr/local/bin/jupyterhub-wait-remote-home
cd . cd .
exec jupyterhub-singleuser \ exec jupyterhub-singleuser \
--FileCheckpoints.checkpoint_dir='/home/jovyan/.notebookCheckpoints' \ --FileCheckpoints.checkpoint_dir='/home/jovyan/.notebookCheckpoints' \
--NotebookNotary.db_file=':memory:' \ --NotebookNotary.db_file=':memory:' \
--LabApp.custom_css=True \
--ResourceUseDisplay.mem_warning_threshold=0.25 \
"$@" "$@"
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: hub:
services: services:
...@@ -161,7 +151,7 @@ hub: ...@@ -161,7 +151,7 @@ hub:
# recommended to keep in sync with common/playbooks/files/jupyterhub-jwt.yaml # recommended to keep in sync with common/playbooks/files/jupyterhub-jwt.yaml
image: image:
name: eginotebooks/hub name: eginotebooks/hub
tag: "sha-bebde36" tag: "sha-857a93e"
config: config:
Authenticator: Authenticator:
enable_auth_state: true enable_auth_state: true
...@@ -307,6 +297,8 @@ hub: ...@@ -307,6 +297,8 @@ hub:
c.WebDavOIDCSpawner.token_mount_path = "/var/run/secrets/oidc/" c.WebDavOIDCSpawner.token_mount_path = "/var/run/secrets/oidc/"
c.WebDavOIDCSpawner.http_timeout = 90 c.WebDavOIDCSpawner.http_timeout = 90
{% endraw %} {% endraw %}
templatePaths:
- /egi-notebooks-hub/ec-templates
extraFiles: extraFiles:
welcome.html: welcome.html:
mountPath: /usr/local/share/jupyterhub/templates/welcome.html mountPath: /usr/local/share/jupyterhub/templates/welcome.html
......
...@@ -51,8 +51,8 @@ singleuser: ...@@ -51,8 +51,8 @@ singleuser:
guarantee: .2 guarantee: .2
defaultUrl: "/lab" defaultUrl: "/lab"
image: image:
name: eginotebooks/single-user name: eginotebooks/single-user-eosc
tag: "sha-0f4a63c" tag: "sha-d17f966"
profileList: profileList:
- display_name: Small Environment - 2 vCPU / 4 GB RAM - display_name: Small Environment - 2 vCPU / 4 GB RAM
description: > description: >
...@@ -113,6 +113,14 @@ singleuser: ...@@ -113,6 +113,14 @@ singleuser:
singleuser-webdav-wrapper.sh: singleuser-webdav-wrapper.sh:
mode: 0755 mode: 0755
mountPath: /usr/local/bin/jupyterhub-singleuser-webdav-wrapper mountPath: /usr/local/bin/jupyterhub-singleuser-webdav-wrapper
#NotebookNotary.db_file=':memory:' is used due to issues
#notebook notary file was causing in ~/.jupyter in ownCloud mount
#
#LabApp.custom_css=True allows to use custom CSS for EOSC style
#
#ResourceUseDisplay.mem_warning_threshold=0.75 sets memory warning at 75%
#threshold for resource-usage extension which is also used by EGI
#notebooks-resource-warning extension
stringData: |- stringData: |-
#! /bin/sh #! /bin/sh
# #
...@@ -125,30 +133,12 @@ singleuser: ...@@ -125,30 +133,12 @@ singleuser:
/usr/local/bin/jupyterhub-wait-remote-home /usr/local/bin/jupyterhub-wait-remote-home
cd . cd .
exec jupyterhub-singleuser \ exec jupyterhub-singleuser \
--FileCheckpoints.checkpoint_dir='/home/jovyan/.notebookCheckpoints' \ --FileCheckpoints.checkpoint_dir='/home/jovyan/.notebookCheckpoints' \
--NotebookNotary.db_file=':memory:' \ --NotebookNotary.db_file=':memory:' \
--LabApp.custom_css=True \
--ResourceUseDisplay.mem_warning_threshold=0.25 \
"$@" "$@"
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: hub:
services: services:
...@@ -161,7 +151,7 @@ hub: ...@@ -161,7 +151,7 @@ hub:
# recommended to keep in sync with common/playbooks/files/jupyterhub-jwt.yaml # recommended to keep in sync with common/playbooks/files/jupyterhub-jwt.yaml
image: image:
name: eginotebooks/hub name: eginotebooks/hub
tag: "sha-bebde36" tag: "sha-857a93e"
config: config:
Authenticator: Authenticator:
enable_auth_state: true enable_auth_state: true
...@@ -305,6 +295,8 @@ hub: ...@@ -305,6 +295,8 @@ hub:
c.WebDavOIDCSpawner.token_mount_path = "/var/run/secrets/oidc/" c.WebDavOIDCSpawner.token_mount_path = "/var/run/secrets/oidc/"
c.WebDavOIDCSpawner.http_timeout = 90 c.WebDavOIDCSpawner.http_timeout = 90
{% endraw %} {% endraw %}
templatePaths:
- /egi-notebooks-hub/ec-templates
extraFiles: extraFiles:
welcome.html: welcome.html:
mountPath: /usr/local/share/jupyterhub/templates/welcome.html mountPath: /usr/local/share/jupyterhub/templates/welcome.html
......
...@@ -20,7 +20,7 @@ spec: ...@@ -20,7 +20,7 @@ spec:
containers: containers:
- name: jwt - name: jwt
# recommended to keep it in sync with */deployments/*.yaml # recommended to keep it in sync with */deployments/*.yaml
image: eginotebooks/hub:sha-bebde36 image: eginotebooks/hub:sha-857a93e
args: args:
- fastapi - fastapi
- run - run
......
...@@ -52,8 +52,8 @@ singleuser: ...@@ -52,8 +52,8 @@ singleuser:
guarantee: .2 guarantee: .2
defaultUrl: "/lab" defaultUrl: "/lab"
image: image:
name: eginotebooks/single-user name: eginotebooks/single-user-eosc
tag: "sha-0f4a63c" tag: "sha-d17f966"
profileList: profileList:
- display_name: Small Environment - 2 vCPU / 4 GB RAM - display_name: Small Environment - 2 vCPU / 4 GB RAM
description: > description: >
...@@ -114,6 +114,15 @@ singleuser: ...@@ -114,6 +114,15 @@ singleuser:
singleuser-webdav-wrapper.sh: singleuser-webdav-wrapper.sh:
mode: 0755 mode: 0755
mountPath: /usr/local/bin/jupyterhub-singleuser-webdav-wrapper mountPath: /usr/local/bin/jupyterhub-singleuser-webdav-wrapper
#NotebookNotary.db_file=':memory:' is used due to issues
#notebook notary file was causing in ~/.jupyter in ownCloud mount
#
#LabApp.custom_css=True allows to use custom CSS for EOSC style
#
#ResourceUseDisplay.mem_warning_threshold=0.75 sets memory warning at 75%
#threshold for resource-usage extension which is also used by EGI
#notebooks-resource-warning extension
stringData: |- stringData: |-
#! /bin/sh #! /bin/sh
# #
...@@ -126,30 +135,12 @@ singleuser: ...@@ -126,30 +135,12 @@ singleuser:
/usr/local/bin/jupyterhub-wait-remote-home /usr/local/bin/jupyterhub-wait-remote-home
cd . cd .
exec jupyterhub-singleuser \ exec jupyterhub-singleuser \
--FileCheckpoints.checkpoint_dir='/home/jovyan/.notebookCheckpoints' \ --FileCheckpoints.checkpoint_dir='/home/jovyan/.notebookCheckpoints' \
--NotebookNotary.db_file=':memory:' \ --NotebookNotary.db_file=':memory:' \
--LabApp.custom_css=True \
--ResourceUseDisplay.mem_warning_threshold=0.25 \
"$@" "$@"
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: hub:
services: services:
...@@ -162,7 +153,7 @@ hub: ...@@ -162,7 +153,7 @@ hub:
# recommended to keep in sync with common/playbooks/files/jupyterhub-jwt.yaml # recommended to keep in sync with common/playbooks/files/jupyterhub-jwt.yaml
image: image:
name: eginotebooks/hub name: eginotebooks/hub
tag: "sha-bebde36" tag: "sha-857a93e"
config: config:
Authenticator: Authenticator:
enable_auth_state: true enable_auth_state: true
...@@ -306,6 +297,8 @@ hub: ...@@ -306,6 +297,8 @@ hub:
c.WebDavOIDCSpawner.token_mount_path = "/var/run/secrets/oidc/" c.WebDavOIDCSpawner.token_mount_path = "/var/run/secrets/oidc/"
c.WebDavOIDCSpawner.http_timeout = 90 c.WebDavOIDCSpawner.http_timeout = 90
{% endraw %} {% endraw %}
templatePaths:
- /egi-notebooks-hub/ec-templates
extraFiles: extraFiles:
welcome.html: welcome.html:
mountPath: /usr/local/share/jupyterhub/templates/welcome.html mountPath: /usr/local/share/jupyterhub/templates/welcome.html
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment