This repository contains precompiled prisma-engines for armv7.
You can use the provided Dockerfile to build an image to build the engines in the GitHub Actions CI environment. Our target platform was linux/arm/v7, so we need to build the engines in this environment or just use the provided docker image imbios/prisma-armv7-build-image:latest.
docker build . -t prisma-armv7-build-image --platform linux/arm/v7
docker run -it prisma-armv7-build-image
This mostly follows this documentation piece, please read this once: https://www.prisma.io/docs/concepts/components/prisma-engines#using-custom-engine-binaries
-
Download all 5 Engine files from this repository's GitHub releases page: https://github.com/ImBIOS/prisma-armv7-builds/releases
-
Put all the downloaded files into a folder in your project
-
Make sure all 4 binaries are executable using
chmod +x <binary path>
-
Set the following environment variables in your shell or in the
.env
file:PRISMA_QUERY_ENGINE_BINARY=/path/to/query-engine PRISMA_MIGRATION_ENGINE_BINARY=/path/to/migration-engine PRISMA_INTROSPECTION_ENGINE_BINARY=/path/to/introspection-engine PRISMA_FMT_BINARY=/path/to/prisma-fmt PRISMA_QUERY_ENGINE_LIBRARY=/path/to/libquery_engine_napi.so.node
-
You are now ready to use Prisma on your armv7.
CI in this repository checks for a new major Prisma version everyday and if there is a new release avaliable, it will automatically build the engines and make a new release.