Skip to content

Commit

Permalink
Merge pull request 2i2c-org#3474 from 2i2c-org/add_shared_public_to_hhmi
Browse files Browse the repository at this point in the history
2i2c-aws-us/showcase: add public readwrite shared folder
  • Loading branch information
jmunroe authored Dec 5, 2023
2 parents 61d94b1 + 6027820 commit decb3e7
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 decb3e7

Please sign in to comment.