Skip to content

Commit

Permalink
Merge pull request #56 from almahmoud/db_only
Browse files Browse the repository at this point in the history
DB migration init container
  • Loading branch information
nuwang authored Oct 8, 2019
2 parents d0f9b42 + 833c6e2 commit 274fb43
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions galaxy/templates/deployment-job.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,20 @@ spec:
subPath: config
- name: galaxy-data
mountPath: {{ .Values.persistence.mountPath }}
- name: {{ .Chart.Name }}-db-migrations
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
command: ['sh', '-c', '/galaxy/server/manage_db.sh upgrade']
volumeMounts:
{{- range $key,$entry := .Values.configs }}
- name: galaxy-conf-files
mountPath: /galaxy/server/config/{{ $key }}
subPath: {{ $key }}
{{- end }}
{{- range $key,$entry := .Values.jobs.rules }}
- name: galaxy-job-rules
mountPath: /galaxy/server/lib/galaxy/jobs/rules/{{ $key }}
subPath: {{ $key }}
{{- end }}
{{- if .Values.extraInitContainers -}}
{{- range $each := .Values.extraInitContainers -}}
{{- if $each.applyToJob -}}
Expand Down

0 comments on commit 274fb43

Please sign in to comment.