Skip to content

Commit

Permalink
fix: new verision jupyter addon will can't load the demo (#5577)
Browse files Browse the repository at this point in the history
(cherry picked from commit b597820)
  • Loading branch information
1aal committed Oct 22, 2023
1 parent 57127e0 commit 27be4ef
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions deploy/jupyter-notebook/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,18 @@ spec:
labels:
{{- include "jupyter.selectorLabels" . | nindent 8 }}
spec:
initContainers:
- name: init-container
image: {{ .Values.image.registry | default "docker.io" }}/{{ .Values.image.repository }}:{{ default .Values.image.tag }}
command:
- /bin/sh
- -c
- |
cp /tmp/docs-QA-assistantor.ipynb /home/jovyan/work
chmod 777 /home/jovyan/work/docs-QA-assistantor.ipynb
volumeMounts:
- name: data-volume
mountPath: /home/jovyan/work
containers:
- name: {{ .Chart.Name }}
image: {{ .Values.image.registry | default "docker.io" }}/{{ .Values.image.repository }}:{{ default .Values.image.tag }}
Expand Down

0 comments on commit 27be4ef

Please sign in to comment.