You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When installing prisma2 in an ordinary Ubuntu docker image, you'll get an error, that you have to install prisma2 with --unsafe-perm.
We should come up with a better solution here instead of letting the user figure the situation out.
@LongLiveCHIEF this is just mentioning the --unsafe-perm aspect of your issue. In your issue you also mention GPG and proxies. In order to have a separate working item we can plan, I created this issue.
Irrespective of Prisma, if this is not addressed on linux, users need to use sudo with npm.
Yes, but sadly most of the online tutorials encourage the use of sudo for installing global packages in Linux. Also, people want to install the CLI in docker to run the migrations and it is tedious to fix permissions there.
As far as a docker image goes, I'd rather have a prisma2 image as a base, which already has the binaries installed globally, as opposed to starting with the base node image myself and having to figure out how to install everything.
Providing a ready made cli docker image means I only have to worry about pulling that single image, and not making sure I have connections for all the binary dependencies.
Please open a new issue for this request @LongLiveCHIEF. It is not related to the original problem and task that is being tracked here from @timsuchanek. Thanks.
@LongLiveCHIEF I don't agree with your opinion.
I, in most cases, don't want to decide about docker image based on one particular library I am going to use inside it. I will much rather have some light base and then cherry-pick software I need.
Hopefully prisma can be improved to work seamlessly in either scenario.
Activity
LongLiveCHIEF commentedon Nov 15, 2019
@timsuchanek this is being tracked in #938. would you mind closing this in favor of that?
timsuchanek commentedon Nov 16, 2019
@LongLiveCHIEF this is just mentioning the
--unsafe-permaspect of your issue. In your issue you also mention GPG and proxies. In order to have a separate working item we can plan, I created this issue.divyenduz commentedon Nov 18, 2019
npmalso has docs to fix this behavior: https://docs.npmjs.com/resolving-eacces-permissions-errors-when-installing-packages-globallyIrrespective of Prisma, if this is not addressed on linux, users need to use sudo with
npm.pantharshit00 commentedon Nov 18, 2019
Yes, but sadly most of the online tutorials encourage the use of
sudofor installing global packages in Linux. Also, people want to install the CLI in docker to run the migrations and it is tedious to fix permissions there.LongLiveCHIEF commentedon Nov 18, 2019
As far as a docker image goes, I'd rather have a
prisma2image as a base, which already has the binaries installed globally, as opposed to starting with the base node image myself and having to figure out how to install everything.Providing a ready made cli docker image means I only have to worry about pulling that single image, and not making sure I have connections for all the binary dependencies.
janpio commentedon Nov 21, 2019
Please open a new issue for this request @LongLiveCHIEF. It is not related to the original problem and task that is being tracked here from @timsuchanek. Thanks.
dodas commentedon Nov 28, 2019
@LongLiveCHIEF I don't agree with your opinion.
I, in most cases, don't want to decide about docker image based on one particular library I am going to use inside it. I will much rather have some light base and then cherry-pick software I need.
Hopefully prisma can be improved to work seamlessly in either scenario.
timsuchanek commentedon Dec 13, 2019
Thanks a lot for reporting 🙏
This issue is fixed in the latest alpha version of
prisma2.You can try it out with
npm i -g prisma2@alpha.In case it’s not fixed for you - please let us know and we’ll reopen this issue!
Native Postgres enums: contract infer adopts external enum types (R6) (…
Native Postgres enums: serialize the native_enum entity into contract…
Native Postgres enums: managed enum create/delete lifecycle (Phase 2,…