Skip to content

Commit

Permalink
Chown NFS again in mounts
Browse files Browse the repository at this point in the history
  • Loading branch information
almahmoud committed Aug 23, 2021
1 parent 10ef378 commit 367c642
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 2 additions & 1 deletion galaxy/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,8 @@ cp -anL /galaxy/server/config/data_manager_conf.xml.sample /galaxy/server/config
cp -anL /galaxy/server/config/tool_data_table_conf.xml.sample /galaxy/server/config/mutable/shed_tool_data_table_conf.xml;
cp -aruL /galaxy/server/tool-data {{.Values.persistence.mountPath}}/;
cp -aruL /galaxy/server/tools {{.Values.persistence.mountPath}}/tools | true;
echo "Done" > /galaxy/server/config/mutable/init_mounts_done_{{.Release.Revision}}
echo "Done" > /galaxy/server/config/mutable/init_mounts_done_{{.Release.Revision}};
. /galaxy/server/.venv/bin/activate && python -c "import os; [([os.chown(os.path.join(root, each), 101, 101) for each in dirs], [os.chown(os.path.join(root, each), 101, 101) for each in files]) for root, dirs, files in os.walk(\"{{.Values.persistence.mountPath}}\")];"
{{- end -}}

{{/*
Expand Down
4 changes: 4 additions & 0 deletions galaxy/templates/jobs-init.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ spec:
checksum/galaxy_rules: {{ include (print $.Template.BasePath "/configmap-galaxy-rules.yaml") . | sha256sum }}
checksum/galaxy_extras: {{ include (print $.Template.BasePath "/configmap-extra-files.yaml") . | sha256sum }}
spec:
securityContext:
runAsUser: 101
runAsGroup: 101
fsGroup: 101
{{- with .Values.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}
Expand Down

0 comments on commit 367c642

Please sign in to comment.