-
Notifications
You must be signed in to change notification settings - Fork 63
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
user and group defined in alias and change permits for bundle #15
Conversation
I wonder if we really need to change the default bundle directory from What comes from the base image Dockerfile#L88-L93 already has these things fixed so the flag For caching, it shouldn't matter which directory we use. So I would just replace
by
and update the README accordingly |
To make it work, I moved the |
Docked Rails is only ever intended as a development tool. So don't want to complicate the main line with this. If we need to change something, let's just make the gem directory world readable. Feel free to open a PR for that. |
I think you misunderstood my intent, the problem is not the permissions of the files in the bundler folder but the permissions of the files that come in the rails project created using scaffold or generate etc. So in order to work with the container with the development user we have to run the container with the same uid and gid of the user who launches the container ( Doing so, however, we have the problem that we can no longer install new gems, due to the lack of write permissions in the bundle folder. Hence the need to change those permissions. ( |
Ahh, I see. This is the Linux problem where Docker runs as root? Because it doesn't trigger on macOS. |
yes, if you generate the application now, on linux, the result is this:
I wasn't aware that on osx it behaved differently, and therefore I don't know if my modification would also be compatible with OSX. You could change the permissions manually, but at every |
I rebase on main and kept only the changes strictly related to the issue of bundle write permissions and alias modification. I think this issue is resolved too #21 |
Note: |
Truly needed feature, for people with Linux. 👍🏼 |
I think replacing docker by podman would solve this since podman doesn’t require elevated permissions to run. Podman is also fully compatible with Dockerfiles and the syntax is pretty much the same and it runs with current user permissions |
Problem:
the permits of generated files in the project are root:root
Solution:
I don't know if this is the best way to handle this.
But if this is only for development purpose, then I can assume that it's not so bad to make world writable the bundler forlder