Replies: 2 comments 11 replies
-
Hi,
I use WSL 2 here. File permissions are good to go. Everything is owned by my WSL 2 user (not root). Is it different for you? |
Beta Was this translation helpful? Give feedback.
-
Hi @dee2k22, I also need to have access to the For reference, I'm trying to install |
Beta Was this translation helpful? Give feedback.
-
Love the general idea and workflow of this Docker setup! However, I have a few issues and questions...
I prefer having thenode_modules
directory visible/accessible as it allows IDEs to index them and suggest a lot more than without them. Additionally, I often like to dive into the sources when I find documentation to be lacking... How would I go about getting thenode_modules
to appear in my project files? I tried removing the line in the.yarnrc
file but then I just end up with permission errors when trying to build in WSL2.Edit: After re-reading your post, I managed to figure it out... I forgot to edit the
Dockerfile
to represent my desirednode_modules
directory location...&& mkdir /app/node_modules && chown ruby:ruby -R /app
While cloning a git repository can be convenient, it also means I lack the flexibility of using the runtime flags/args that
rails new
provides. Is there a way to use the Docker files themself as the starting point and run a command to build out a fresh project? Something likedocker run exec -rm web rails new . -T -j esbuild -c tailwind -d postgresql
?Is there a reason you picked
slim-bullseye
over analpine
release?I've been reading your associated blog post and while it's very informative, I'm struggling to understand how to accomplish these two tasks myself and end up with the proper file ownership/permissions inside WSL2...
Beta Was this translation helpful? Give feedback.
All reactions