-
Notifications
You must be signed in to change notification settings - Fork 48
Permissions #35
Comments
Could you post your workflow to get the permission error? |
@RobLoach here is my workaround:
And here how I use it:
This solves:
|
@RobLoach its exactly as @fesor showed, I'm using your image as a volatile container with --rm option. Have you see this approach: https://github.com/eXistenZNL/Docker-Composer ? It seems pretty effect for this kind of usage! Thank you |
That sounds like a great solution. So, in summary, we should:
|
@RobLoach yep, the only case that could go wrong is handling of private repositories. Will to check this. |
I'm using this solution, will this be part of the official build?? [edit]
|
The second In order to get rid of the
|
@roverwolf, I solve this just by adding user in git config:
This solves this issue |
@fesor, I tried running the git config commands in my Dockerfile, but it did not seem to work. I'll try again as I may have misconfigured something along the way. Bind mounting |
To get the container working with my private repositories I used this: docker run -it --rm \
--user $(id -u):$(id -g) \
-v $(pwd):/app \
-v ~/.composer:/composer \
-v /etc/passwd:/etc/passwd \
-v ~/.ssh:$HOME/.ssh \
composer/composer $@ |
I'm using the following command, which works OK…
… but I get the warning…
Any ideas how to get around this? |
@toby-griffiths, Try adding |
@llernestal Thanks :o) |
Hello,
If I use composer without changing any settings my vendor will get root:root 755 permissions.
If I use my own UID for user and/or group it will fail on writing into the cache.
Am I doing something wrong or is this the expected behaviour?
The text was updated successfully, but these errors were encountered: