-
-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Deploying prisma made dart app to dockers #117
Comments
After adding the line you mentioned i have this as my current dockerfile.
but unfortunately i am getting the same response. guide me further on this.
and this is the error i am getting when hitting the api.
This is my server repo the current branch is version1.0.3 |
This is a bug where the Prisma query engine downloads the wrong binary engine under Linux. |
Now i am getting the connection to db error where it is working fine on local host ERROR - 2023-02-11 20:43:24.288880 package:shelf/src/middleware/logger.dart 30 logRequests... |
repeat #74 |
This seems to be a different issue than the one in #74 because in that case you can run the manual commands after running the application to build up a db connection where as this is a production environment and the application is dockerized now what could be the solution. |
I'm constructing new versions that allow running the query engine independently to solve this problem. Because setting up ssl and downloading the correct query engine in a blank container is a complicated thing. Small differences can lead to failure. |
https://github.com/odroe/prisma-dart/blob/main/lib/universal_engine.dart The universal engine allows connecting to independent query engines. |
Now what do u suggest me to do should i copy the file and add in my code or what steps should i take to make my code run can you please guide on that cause there are two servers we have developed using this package and both are now ready to go for a production test. So kindly if you can guide me with the steps i need to take in order to send them to production. |
Because if i try to run the latest version which has the file you just shown it gets stuck on the build_runner and just keeps it self hung after doing half the tasks |
@syedzainqadri Can you bear to use the base image of ubuntu or other distribution system? A temporary workaround is to install Dart manually and then in a stripped-down image of the distro system can solve this problem. I'm looking for ways to support both Dart and Prisma binary engines in scratch. |
Well i am able to run it as a fat image and deployed it as it is for now. Lets wait for your update to sort things out in scratch. |
@syedzainqadri I have solved this problem! This dockerfile is for your reference. https://github.com/odroe/prisma-dart/blob/main/example/simple/Dockerfile |
This is my Docker file i am trying to build my fine working app to a docker container
but when i run and try to hit api, i get this response.
where as i have set the generator block to debain as mentioned in documentation over prisma official documentations.
Can you guide me how can i build it for docker container
The text was updated successfully, but these errors were encountered: