Git Product home page Git Product logo

Comments (5)

neilenns avatar neilenns commented on August 25, 2024

Thought this would be easy, just changing remoteUser to node in devcontainer.json but that also required setting user in the docker-compose.yml file and then npm install failed on container creation ☹

from node-deepstackai-trigger.

neilenns avatar neilenns commented on August 25, 2024

Appears the only real solution at the moment is to do npm version --unsafe-perm

from node-deepstackai-trigger.

neilenns avatar neilenns commented on August 25, 2024

Guidance from the VSCode team is to try this approach: https://github.com/microsoft/vscode-dev-containers/blob/dc367e6ce28e228c95d71a335a4331de5918bd7f/containers/javascript-node-12/.devcontainer/Dockerfile#L48

Not sure about the sudo line though since that isn't on node:alpine.

from node-deepstackai-trigger.

neilenns avatar neilenns commented on August 25, 2024

Tried this and it now fails on git commands :(

from node-deepstackai-trigger.

neilenns avatar neilenns commented on August 25, 2024

Suggestion is to chown the .git folder when creating the image before swapping to the node user.

from node-deepstackai-trigger.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.