Skip to content

Commit

Permalink
add public readwrite shared folder
Browse files Browse the repository at this point in the history
  • Loading branch information
jmunroe committed Nov 29, 2023
1 parent 59e8f99 commit 6027820
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions config/clusters/hhmi/common.values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,37 @@ basehub:
- name: MYSQL_ROOT_PASSWORD
value: "tutorial"
defaultUrl: /lab
storage:
extraVolumeMounts:
- name: home
mountPath: /home/jovyan/shared-public
subPath: _shared-public
readOnly: false
- name: home
mountPath: /home/jovyan/shared-readonly
subPath: _shared
readOnly: true
initContainers:
- name: volume-mount-ownership-fix
image: busybox:1.36.1
command:
- sh
- -c
- id && chown 1000:1000 /home/jovyan /home/jovyan/shared-readonly /home/jovyan/shared-public && ls -lhd /home/jovyan
securityContext:
runAsUser: 0
volumeMounts:
- name: home
mountPath: /home/jovyan
subPath: "{username}"
# Mounted without readonly attribute here,
# so we can chown it appropriately
- name: home
mountPath: /home/jovyan/shared-readonly
subPath: _shared
- name: home
mountPath: /home/jovyan/shared-public
subPath: _shared-public
profileList:
- display_name: "Loren Frank Lab"
default: true
Expand Down

0 comments on commit 6027820

Please sign in to comment.