Skip to content

Commit

Permalink
upgrade docker image, add in priviledged role patch
Browse files Browse the repository at this point in the history
  • Loading branch information
delgadom committed Dec 18, 2019
1 parent 841cb43 commit 757ef8b
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions jupyter-config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ jupyterhub:
singleuser:
image:
name: rhodium/notebook
tag: 91e8177fe0db3a60b343ff01a5deb699bcb6eb2a
tag: v0.3.0-alpha.1
storage:
capacity: 10Gi
dynamic:
Expand All @@ -22,8 +22,19 @@ jupyterhub:
minAvailable: 0
extraConfig:
customPodHook: |
c.JupyterHub.logo_file = '/usr/local/share/jupyterhub/static/custom/images/logo.png'
c.JupyterHub.template_paths = ['/usr/local/share/jupyterhub/custom_templates/']
# runs container in privileged mode for FUSE mount access
from kubernetes import client
def modify_pod_hook(spawner, pod):
pod.spec.containers[0].security_context = client.V1SecurityContext(
privileged=True,
capabilities=client.V1Capabilities(
add=['SYS_ADMIN']
)
)
return pod
c.KubeSpawner.modify_pod_hook = modify_pod_hook
c.JupyterHub.logo_file = '/usr/local/share/jupyterhub/static/custom/images/logo.png'
c.JupyterHub.template_paths = ['/usr/local/share/jupyterhub/custom_templates/']
# The templates section is borrowed from the pangeo approach, i.e.
# https://github.com/pangeo-data/pangeo-cloud-federation/blob/staging/deployments/ocean/config/common.yaml
extraVolumes:
Expand Down

0 comments on commit 757ef8b

Please sign in to comment.