Skip to content
This repository has been archived by the owner on Mar 17, 2023. It is now read-only.

Commit

Permalink
Update JSP to 0.4.1
Browse files Browse the repository at this point in the history
  • Loading branch information
vpavlin committed May 27, 2021
1 parent cc55c2e commit 7831c5d
Show file tree
Hide file tree
Showing 4 changed files with 285 additions and 224 deletions.
3 changes: 2 additions & 1 deletion .jupyter/jupyterhub_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,8 @@ def options_from_form(self, formdata):
def apply_pod_profile(spawner, pod):
spawner.single_user_profiles.load_profiles(username=spawner.user.name)
profile = spawner.single_user_profiles.get_merged_profile(spawner.image, user=spawner.user.name, size=spawner.deployment_size)
return SingleuserProfiles.apply_pod_profile(spawner.user.name, pod, profile, DEFAULT_MOUNT_PATH, spawner.gpu_mode)
gpu_types = spawner.single_user_profiles.get_gpu_types()
return SingleuserProfiles.apply_pod_profile(spawner.user.name, pod, profile, gpu_types, DEFAULT_MOUNT_PATH, spawner.gpu_mode)

def setup_environment(spawner):
spawner.single_user_profiles.load_profiles(username=spawner.user.name)
Expand Down
2 changes: 0 additions & 2 deletions .s2i/bin/assemble
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,5 @@ cp -a ${JSP_UI_SRC_PATH}/build/. /opt/app-root/share/jupyterhub/static/jsp-ui

cd ${JSP_UI_SRC_PATH}/templates/
yes | cp -rf spawn.html /opt/app-root/share/jupyterhub/templates/
cd ${JSP_UI_SRC_PATH}/styles/
yes | cp -rf style.less /opt/app-root/share/jupyterhub/static/less

fix-permissions /opt/app-root
2 changes: 1 addition & 1 deletion Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ verify_ssl = true

[packages]
openshift = "==0.11.2"
jupyterhub-singleuser-profiles = "==0.3.1"
jupyterhub-singleuser-profiles = "==0.4.1"
publish-service = {ref = "7cbf34e494fd9a0a79e9cd9a8c1d48a6775b9f49",git = "https://github.com/vpavlin/jupyter-publish-extension.git", editable = true}
oauthenticator = {ref = "2bf137c35e4eddac0a586ac054098ff74c30c779",git = "https://github.com/opendatahub-io/oauthenticator.git", editable = true}

Expand Down
Loading

0 comments on commit 7831c5d

Please sign in to comment.