Skip to content

Improve install behavior on linux #944

Closed

Description

@timsuchanek

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.

Activity

  1. self-assigned this
    on Nov 15, 2019
  2. LongLiveCHIEF commented on Nov 15, 2019

    @LongLiveCHIEF

    @timsuchanek this is being tracked in #938. would you mind closing this in favor of that?

  3. timsuchanek commented on Nov 16, 2019

    @timsuchanek
    ContributorAuthor

    @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.

  4. divyenduz commented on Nov 18, 2019

    @divyenduz

    npm also has docs to fix this behavior: https://docs.npmjs.com/resolving-eacces-permissions-errors-when-installing-packages-globally

    Irrespective of Prisma, if this is not addressed on linux, users need to use sudo with npm.

  5. pantharshit00 commented on Nov 18, 2019

    @pantharshit00
    Contributor

    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.

  6. LongLiveCHIEF commented on Nov 18, 2019

    @LongLiveCHIEF

    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.

  7. janpio commented on Nov 21, 2019

    @janpio
    Contributor

    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.

  8. added this to the Preview 18 milestone on Nov 22, 2019
  9. dodas commented on Nov 28, 2019

    @dodas

    @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.

  10. modified the milestones: Preview 18, Preview 19 on Dec 9, 2019
  11. timsuchanek commented on Dec 13, 2019

    @timsuchanek
    ContributorAuthor

    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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions