Skip to content

Commit

Permalink
[PATCH] persist venv, renv and kernels through suspend (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
skykanin authored Aug 16, 2024
1 parent 41023e4 commit 41ec534
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 3 deletions.
2 changes: 1 addition & 1 deletion charts/jupyterlab/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.3.5
version: 0.3.6

dependencies:
- name: library-chart
Expand Down
4 changes: 4 additions & 0 deletions charts/jupyterlab/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,10 @@ spec:
value: {{ .Values.environment.group }}
- name: ROOT_PROJECT_DIRECTORY
value: /home/{{ .Values.environment.user }}/work
- name: POETRY_VIRTUALENVS_IN_PROJECT
value: "true"
- name: JUPYTER_DATA_DIR
value: /home/{{ .Values.environment.user }}/work/.jupyter
- name: STAT_TEMPLATE_DEFAULT_REFERENCE
value: "1.1.6"
- name: JUPYTERHUB_HTTP_REFERER
Expand Down
2 changes: 1 addition & 1 deletion charts/rstudio/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.3.4
version: 0.3.5

dependencies:
- name: library-chart
Expand Down
4 changes: 4 additions & 0 deletions charts/rstudio/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,10 @@ spec:
value: {{ .Values.environment.group }}
- name: ROOT_PROJECT_DIRECTORY
value: /home/{{ .Values.environment.user }}/work
- name: RENV_PATHS_LIBRARY
value: /home/{{ .Values.environment.user }}/work/.renv
- name: RENV_PATHS_CACHE
value: /home/{{ .Values.environment.user }}/work/.renv/cache
{{- if .Values.init.regionInit }}
- name: REGION_INIT_SCRIPT
value: {{ .Values.init.regionInit }}
Expand Down
2 changes: 1 addition & 1 deletion charts/vscode-python/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.3.4
version: 0.3.5

dependencies:
- name: library-chart
Expand Down
4 changes: 4 additions & 0 deletions charts/vscode-python/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,10 @@ spec:
value: {{ .Values.environment.group }}
- name: ROOT_PROJECT_DIRECTORY
value: /home/{{ .Values.environment.user }}/work
- name: POETRY_VIRTUALENVS_IN_PROJECT
value: "true"
- name: JUPYTER_DATA_DIR
value: /home/{{ .Values.environment.user }}/work/.jupyter
- name: STAT_TEMPLATE_DEFAULT_REFERENCE
value: "1.1.6"
envFrom:
Expand Down

0 comments on commit 41ec534

Please sign in to comment.