1
0
Fork 0

refactor(helm): job-db-seed: run as shell, install tsx, prisma, run directly npm tsx prisma/seed.ts

This commit is contained in:
Vojtěch Mareš 2023-07-04 13:07:17 +02:00
parent d45defffe5
commit ada27c7284
Signed by: vojtech.mares
GPG key ID: C6827B976F17240D

View file

@ -19,7 +19,11 @@ spec:
containers:
- name: {{ .Chart.Name }}-seed
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
command: ["npx", "prisma", "db", "seed"]
command: ["/bin/sh", "-c"]
args:
- |
npm install tsx prisma --silent
npx tsx prisma/seed.ts
envFrom:
- configMapRef:
name: {{ .Release.Name }}-config