Michael Jay
08/03/2022, 11:31 PMError: Unknown binaryTarget linux-arm64-openssl-undefined and no custom engine files were provided
When I searched that on Google, the first hit was specifically about Prisma: https://github.com/prisma/prisma/issues/861
And that one led me to a pretty detailed conversation https://github.com/prisma/prisma/issues/5245
The conversation says near the end, in July 2021:
"This will be available for eveyrone with 2.27.0".I'm on v
3.15.1
My base image is node:16.15.1-alpine
. Anyone have any advice or point me toward further discussion?
Alternatively, would it be worth trying to update the binary targets in the Prisma config manually? Actually - should I specify the binary target for the eventual target - which will be a Cloud Run instance?
My generator client:
generator client {
provider = "prisma-client-js"
binaryTargets = ["native", "linux-musl"]
}
Jared Fraser
08/03/2022, 11:52 PMJared Fraser
08/03/2022, 11:53 PMJared Fraser
08/03/2022, 11:54 PMlinux-musl
in your binary targetsMichael Jay
08/03/2022, 11:58 PMgenerator client {
provider = "prisma-client-js"
binaryTargets = ["native", "linux-musl"]
}
Michael Jay
08/04/2022, 12:02 AMMichael Jay
08/04/2022, 12:02 AMMichael Jay
08/04/2022, 12:03 AMMichael Jay
08/04/2022, 12:09 AMJared Fraser
08/04/2022, 1:22 AMJared Fraser
08/04/2022, 1:23 AMMichael Jay
08/04/2022, 1:53 AMnpx prisma generate
and run a local server. I don't think this has anything to do with Cloud Run yet - I'm just trying to locally build a container right now.Michael Jay
08/04/2022, 2:52 AMJared Fraser
08/04/2022, 3:30 AMbinaryTargets = ["native", "linux-musl", "debian-openssl-1.1.x", "darwin-arm64", "darwin"]
Jared Fraser
08/04/2022, 3:30 AMJared Fraser
08/04/2022, 3:31 AMdarwin-arm64
is the m1 mac equivilentZena Alhello
08/04/2022, 7:23 AMnode:16-alpine
to node:lts
and
RUN apk update && apk add dumb-init
to
RUN apt-get -qy update && apt-get -qy install openssl && apt-get -qy install dumb-init
in docker file