Skip to content

Commit

Permalink
Merge pull request #58 from curie-data-factory/jupyterlab
Browse files Browse the repository at this point in the history
add variabilisation root copy ssh keys
  • Loading branch information
armandleopold authored May 17, 2022
2 parents 3641f25 + dbef55c commit 6cfc104
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/jupyterlab/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v2
name: jupyterlab
appVersion: "jupyter/datascience-notebook:python-3.9.6"
version: "0.1.3"
version: "0.1.4"
description: jupyterlab data science notebook
home: https://github.com/curie-data-factory/helm-charts/tree/master/charts/jupyterlab
icon: https://jupyter.org/assets/homepage/main-logo.svg
Expand Down
6 changes: 6 additions & 0 deletions charts/jupyterlab/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,16 @@ spec:
--allow-root'
{{- else }}
args:
{{- if .Values.root }}
- /bin/bash
- -c
- 'cp -r /home/jovyan/work/.ssh /root/ 2>/dev/null || : && jupyter lab --notebook-dir=/home/jovyan/work --ip 0.0.0.0 --no-browser --allow-root'
{{- else }}
- /bin/bash
- -c
- 'cp -r /home/jovyan/work/.ssh /home/jovyan/ 2>/dev/null || : && jupyter lab --notebook-dir=/home/jovyan/work --ip 0.0.0.0 --no-browser --allow-root'
{{- end }}
{{- end }}
ports:
- containerPort: {{ .Values.service.targetPort }}
name: {{ .Values.service.targetPort }}{{ .Values.service.protocol | lower }}
Expand Down

0 comments on commit 6cfc104

Please sign in to comment.