chore: Install Prisma and update containers in deployment YAMLs.

- Add Prisma to Dockerfile copy commands
- Modify xlog-init container command to include installing Prisma
- Add new container for caddy-validator with a Python image
- Increase xlog container's CPU limit to 1500m
This commit is contained in:
DIYgod 2023-03-31 02:46:43 +01:00
parent 2a3430d7bf
commit 597ae04fdc
No known key found for this signature in database
3 changed files with 5 additions and 2 deletions

View File

@ -44,6 +44,7 @@ WORKDIR /app
COPY --from=build /app/.next/standalone /app
COPY --from=build /app/public /app/public
COPY --from=build /app/.next/static /app/.next/static
COPY --from=build /app/prisma /app/prisma
CMD ["pnpm", "start"]

View File

@ -26,7 +26,8 @@ spec:
name: xlog
imagePullPolicy: Always
name: xlog-init
command: ["npm", "run", "prisma:migrate:deploy"]
command: ["/bin/sh", "-c"]
args: ["npm install prisma; npm run prisma:migrate:deploy"]
containers:
- image: $IMAGE_TAG_RELEASE
imagePullPolicy: Always

View File

@ -39,7 +39,8 @@ spec:
name: xlog
imagePullPolicy: Always
name: xlog-init
command: ["npm", "run", "prisma:migrate:deploy"]
command: ["/bin/sh", "-c"]
args: ["npm install prisma; npm run prisma:migrate:deploy"]
containers:
- image: $IMAGE_TAG_RELEASE
imagePullPolicy: Always