Mischa
10/02/2021, 7:15 AMbinaryTargets = ["native", "rhel-openssl-1.0.x"]
set which seems to fetch me these engines. I am wondering how I get the migration engine for RHEL because I need it for packaging my lambdasMischa
10/02/2021, 7:18 AM➜ platform git:(appsync-experiments) ✗ ls -l node_modules/prisma
total 319872
-rw-r--r-- 1 cyber staff 11357 Oct 1 20:00 LICENSE
-rw-r--r-- 1 cyber staff 1849 Oct 1 20:00 README.md
drwxr-xr-x 6 cyber staff 192 Oct 1 20:00 build
drwxr-xr-x 3 cyber staff 96 Oct 1 20:00 install
-rwxr-xr-x 1 cyber staff 35756352 Oct 1 20:00 libquery_engine-darwin.dylib.node
-rwxr-xr-x 1 cyber staff 43392344 Oct 1 22:35 libquery_engine-rhel-openssl-1.0.x.so.node
-rw-r--r-- 1 cyber staff 3775 Oct 1 20:00 package.json
drwxr-xr-x 3 cyber staff 96 Oct 1 20:00 preinstall
drwxr-xr-x 12 cyber staff 384 Oct 1 20:00 prisma-client
-rwxr-xr-x 1 cyber staff 38358976 Oct 1 20:01 query-engine-darwin
-rwxr-xr-x 1 cyber staff 46242672 Oct 1 22:35 query-engine-rhel-openssl-1.0.x
drwxr-xr-x 4 cyber staff 128 Oct 1 20:00 scripts
➜ platform git:(appsync-experiments) ✗ ls -l node_modules/@prisma/engines
total 155176
-rw-r--r-- 1 cyber staff 537 Oct 2 10:10 README.md
drwxr-xr-x 8 cyber staff 256 Oct 2 10:10 dist
drwxr-xr-x 4 cyber staff 128 Oct 2 10:10 download
-rwxr-xr-x 1 cyber staff 17649048 Oct 2 10:10 introspection-engine-darwin
-rwxr-xr-x 1 cyber staff 35756352 Oct 2 10:10 libquery_engine-darwin.dylib.node
-rwxr-xr-x 1 cyber staff 21082432 Oct 2 10:10 migration-engine-darwin
-rw-r--r-- 1 cyber staff 648 Oct 2 10:10 package.json
-rwxr-xr-x 1 cyber staff 4946872 Oct 2 10:10 prisma-fmt-darwin
Timo
10/02/2021, 11:29 AM2021-10-02T11:23:01.746Z 1a86ce88-4ff4-49ba-9a78-0003659737cf INFO prisma migrate deploy exited with error Command failed: /var/task/node_modules/prisma/build/index.js migrate deploy
Error: Could not find libquery-engine binary. Searched in /var/task/node_modules/prisma/libquery_engine-rhel-openssl-1.0.x.so.node and /var/task/node_modules/libquery_engine-rhel-openssl-1.0.x.so.node
Ryan
10/04/2021, 6:39 AMMischa
10/04/2021, 6:41 AMnpm install
in docker for my layer - https://github.com/jetbridge/jetkit-cdk/blob/runtime-pkg-prismalayer/packages/cdk/src/cdk/lambda/prismaLayer.ts
this version appears to basically work with the exception of prisma-appsync
loading prisma is still adding around 1s-1.5s to my lambda cold start time though 😞Ryan
10/04/2021, 6:59 AMnApi
?Mischa
10/04/2021, 7:00 AMMischa
10/04/2021, 7:01 AMTimo
10/04/2021, 7:09 AMTimo
10/04/2021, 7:10 AMTimo
10/04/2021, 7:17 AMMischa
10/04/2021, 7:17 AMTimo
10/04/2021, 7:21 AMnode_modules/prisma
also includes libquery enginesTimo
10/04/2021, 7:24 AMbinaryTargets
to the prisma file after seeing it in your code-snippetTimo
10/04/2021, 7:25 AMnode_modules/prisma/libquery_engine-darwin.dylib.node
Mischa
10/04/2021, 7:26 AMTimo
10/04/2021, 7:28 AMrm -r node_modules && PRISMA_CLI_BINARY_TARGETS=darwin,rhel-openssl-1.0.x npm i && npm run build:tsc && repack-zip
Timo
10/04/2021, 7:28 AMTimo
10/04/2021, 7:29 AMMischa
10/04/2021, 7:31 AMTimo
10/04/2021, 7:32 AMTimo
10/04/2021, 7:42 AMAll migrations have been successfully applied.
Mischa
10/04/2021, 7:43 AMMischa
10/04/2021, 8:00 AM