-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Upgrade Prisma to last of major 3 #200 * Format all schemas with Prisma format * Preview feature "atomicNumberOperations" is deprecated. The functionality can be used without specifying it as a preview feature. * Update dependencies also in prisma folder * Types complain * Raw query needs to be a template now * Update documentation * Another round of running prisma format against all schemas * Use same types as elsewhere in the same file * Moving to Prisma 4.0.0 * Going to Prisma v5 which came out like 20 hours ago.. * Remove previous migrations and update import path for generated client * Update lock file * Update prisma folder package to match the root more closely * Works locally until docker-compose... * Same image versions as frontend currently uses * Prisma deploy instead of dev * fix e2e tests (#212) * fix e2e tests * migration added * manual migration are obsolete witn new DB schema * Let me try PostgreSQL v14 * Just had to try with the predefined server info for pgadmin --------- Co-authored-by: Juga Paazmaya <[email protected]> * 200 fix migration (#213) --------- Co-authored-by: Pavel Strunkin <[email protected]>
- Loading branch information
Showing
95 changed files
with
690 additions
and
7,249 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,24 @@ | ||
# https://github.com/Visual-Regression-Tracker/Visual-Regression-Tracker/issues/137 | ||
FROM node:14-alpine3.17 AS builder | ||
FROM node:18-alpine3.18 AS builder | ||
|
||
# Create app directory | ||
WORKDIR /app | ||
|
||
RUN npm install -g @prisma/[email protected] --unsafe-perm | ||
|
||
COPY ./prisma/schema.prisma ./ | ||
|
||
# A wildcard is used to ensure both package.json AND package-lock.json are copied | ||
COPY package*.json ./ | ||
|
||
# Install app dependencies | ||
RUN npm install | ||
RUN npm ci --verbose | ||
|
||
COPY tsconfig*.json ./ | ||
COPY src ./src | ||
|
||
RUN npm run build | ||
|
||
# https://github.com/Visual-Regression-Tracker/Visual-Regression-Tracker/issues/137 | ||
FROM node:14-alpine3.17 | ||
FROM node:18-alpine3.18 | ||
COPY --from=builder /app/node_modules ./node_modules | ||
COPY --from=builder /app/package*.json ./ | ||
COPY --from=builder /app/dist ./dist | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,7 +28,7 @@ services: | |
- postgres | ||
postgres: | ||
container_name: postgres | ||
image: postgres:12-alpine3.18 | ||
image: postgres:15.3-alpine3.18 | ||
restart: always | ||
environment: | ||
POSTGRES_USER: ${POSTGRES_USER} | ||
|
@@ -40,9 +40,13 @@ services: | |
- "${POSTGRES_PORT}" | ||
volumes: | ||
- postgres:/var/lib/postgresql/data | ||
|
||
# Available at http://localhost:5050 | ||
pgadmin: | ||
container_name: pgadmin4 | ||
image: dpage/pgadmin4 | ||
# https://hub.docker.com/r/dpage/pgadmin4 | ||
# https://www.pgadmin.org/docs/pgadmin4/latest/release_notes_7_4.html | ||
image: dpage/pgadmin4:7.4 | ||
restart: always | ||
environment: | ||
PGADMIN_DEFAULT_EMAIL: [email protected] | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.