Skip to content

Commit

Permalink
Fix shared directory ownership and enable w+r on it
Browse files Browse the repository at this point in the history
The first piece of this commit is executing on the workaround described
in [1] for the missing ownership on the _shared directory [2].
The second pieces essentially disable the ReadOnly attribute on the
mounted _shared directory so it is writable by everyone (admin and
users)[3].

[1] #440
[2] #810 (comment)
[3] #810 (comment)
  • Loading branch information
damianavila committed Nov 14, 2021
1 parent 0e6006b commit 9e9b37f
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion config/hubs/openscapes.cluster.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,18 +60,27 @@ hubs:
[
"sh",
"-c",
"id && chown 1000:1000 /home/jovyan && ls -lhd /home/jovyan",
"id && chown 1000:1000 /home/jovyan /home/jovyan/shared && ls -lhd /home/jovyan",
]
securityContext:
runAsUser: 0
volumeMounts:
- name: home
mountPath: /home/jovyan
subPath: "{username}"
- name: home
mountPath: /home/jovyan/shared
subPath: _shared

image:
name: 783616723547.dkr.ecr.us-west-2.amazonaws.com/user-image
tag: "d78bb6c"
storage:
extraVolumeMounts:
- name: home
mountPath: /home/jovyan/shared
subPath: _shared
readOnly: false
profileList:
# The mem-guarantees are here so k8s doesn't schedule other pods
# on these nodes.
Expand Down

0 comments on commit 9e9b37f

Please sign in to comment.