diff --git a/rstudio/templates/deployment.yaml b/rstudio/templates/deployment.yaml index 9cd3c5b..cbbf553 100644 --- a/rstudio/templates/deployment.yaml +++ b/rstudio/templates/deployment.yaml @@ -24,7 +24,12 @@ spec: initContainers: - name: {{ .Chart.Name }}-init-mounts image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}" - command: ['sh', '-c', {{ include "rstudio.init-container-commands" . | squote }}] + command: [ + 'sh', '-c', + '{{- if .Values.extraInitCommands -}} + {{- tpl .Values.extraInitCommands $ | nindent 13 }}; + {{- end -}} + {{ include "rstudio.init-container-commands" . }}'] volumeMounts: {{- range $entry := .Values.mutableConfigs }} {{ if $entry -}} diff --git a/rstudio/values.yaml b/rstudio/values.yaml index c17b147..9de6b65 100644 --- a/rstudio/values.yaml +++ b/rstudio/values.yaml @@ -96,3 +96,7 @@ useSecretConfigs: false # subPath: ".rstudio/monitored/user-settings/" # contents: | # initialWorkingDirectory="/opt/project/shared-data" + +extraInitCommands: | +# cp -r /etc/skel /gvl/projects/current/ +# /galaxy/server/extra/mapped/script.sh