From a06293ec7ef2bbccbe1ab3f03ee375453ac342de Mon Sep 17 00:00:00 2001 From: Kyle Pettigrew Date: Wed, 4 Dec 2024 19:53:57 +1000 Subject: [PATCH] readd migrations --- .../deployments/inferno.deployment.yaml | 30 +++++++++---------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/infra/helm/inferno/templates/deployments/inferno.deployment.yaml b/infra/helm/inferno/templates/deployments/inferno.deployment.yaml index 6cc37d1..ed1121c 100644 --- a/infra/helm/inferno/templates/deployments/inferno.deployment.yaml +++ b/infra/helm/inferno/templates/deployments/inferno.deployment.yaml @@ -15,21 +15,21 @@ spec: spec: nodeSelector: kubernetes.io/arch: amd64 - # initContainers: - # - name: run-migrations - # image: {{ .Values.inferno.imageUrl }} - # imagePullPolicy: Always - # command: ["bundle", "exec", "rake", "db:migrate"] - # env: - # - name: TX_SERVER_URL - # value: {{ .Values.inferno.terminologyServer }} - # envFrom: - # - configMapRef: - # name: inferno - # - configMapRef: - # name: postgresql-configmap - # - secretRef: - # name: postgresql-secret + initContainers: + - name: run-migrations + image: {{ .Values.inferno.imageUrl }} + imagePullPolicy: Always + command: ["bundle", "exec", "rake", "db:migrate"] + env: + - name: TX_SERVER_URL + value: {{ .Values.inferno.terminologyServer }} + envFrom: + - configMapRef: + name: inferno + - configMapRef: + name: postgresql-configmap + - secretRef: + name: postgresql-secret containers: - name: inferno-app image: {{ .Values.inferno.imageUrl }}