Oscar Stahlberg
07/15/2022, 9:59 AMnpx prisma db pull
for example needs to connect to the database which is running inside of our Kubernetes cluster. As we are using TLS certificates to authenticate the client (node app in this example) with the database, we donāt have access to those certificates in our build process.
Where should I run those commands? Am I missing something here? Similar question about npx prisma migrate deploy
. Thank you for your help!Joƫl
Joƫl
Oscar Stahlberg
07/15/2022, 10:06 AMprisma migrate
right? My idea here is to use an initContainer so that the migration happens on pod startup. Does prisma migrate deploy
write to the file system?Joƫl
prisma migrate deploy
Joƫl
prisma migrate deploy
only connects to your database, checks the current state of migrations and if there are not yet applied migrations, apply them.
So read only for filesystemJoƫl
Joƫl
prisma db pull
why are you running it in CI/CD? Iām curious to understand what you are using it for hereDanily
07/15/2022, 8:26 PMJoƫl
thereās no programmatic way of doing this right?No, though technically yes but itās not a supported API nor documented and we will break it in the future. But weāre very interested in your use case, if you can share it here or in the issue! š So we can have all the feedback we can to design it properly.