Skip to content

Commit

Permalink
Set permissions of user home dirs on startup
Browse files Browse the repository at this point in the history
  • Loading branch information
yuvipanda committed May 4, 2021
1 parent 7b6a261 commit 9ecee28
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions config/hubs/farallon.cluster.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,17 @@ hubs:
name: Farallon Institute
urL: http://www.faralloninstitute.org/
singleuser:
initContainers:
# Need to explicitly fix ownership here, since EFS doesn't do anonuid
- name: volume-mount-ownership-fix
image: busybox
command: ["sh", "-c", "id && chown 1000:1000 /home/jovyan && ls -lhd /home/jovyan"]
securityContext:
runAsUser: 0
volumeMounts:
- name: home
mountPath: /home/jovyan
subPath: "{username}"
image:
name: 677861182063.dkr.ecr.us-east-2.amazonaws.com/2i2c-hub/user-image
tag: 9cd76f1
Expand Down

0 comments on commit 9ecee28

Please sign in to comment.