fix: add startup command in nextgen chart to ensure data directory and DB initialization
This commit is contained in:
parent
d524b00271
commit
175bd6b1ca
|
|
@ -19,9 +19,14 @@ spec:
|
|||
- name: {{ .Chart.Name }}
|
||||
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
|
||||
imagePullPolicy: {{ .Values.image.pullPolicy }}
|
||||
command:
|
||||
- sh
|
||||
- -c
|
||||
- "mkdir -p /app/data && ([ -f /app/data/school.db ] || node src/database/init.js) && node src/index.js"
|
||||
ports:
|
||||
- name: http
|
||||
containerPort: {{ .Values.service.port }}
|
||||
protocol: TCP
|
||||
resources:
|
||||
{{- toYaml .Values.resources | nindent 12 }}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue