-
Notifications
You must be signed in to change notification settings - Fork 130
fix coder #218
fix coder #218
Conversation
should i push this to develop? i did it to master cuz its broken there |
Pretty sure this is a duplicate of #213 |
No it has extra the user: "{{ uid }}:{{ gid }}" |
@tarek369 Would you mind sharing where you saw that in the docs? Only asking as after implementing the fix in #214 over 2 weeks ago I have yet to have any issues saving files or anything Edit: I think I found it, this issue: coder/code-server#439 prompted a discussion which resulted in coder/code-server#640 and then coder/code-server#1425 which updated the example An important thing to note in the original issue which prompted the change:
code-server should run atop Cloudbox perfectly fine with this configuration, as 1000:1000 is what also seems to be recommended in the wiki for custom containers: https://github.com/Cloudbox/Cloudbox/wiki/Add-Your-Own-Docker-Container-into-Cloudbox |
Well I tried it two days ago and didn't work and I make those changes and it works now, as very coder GitHub docker run -it -p 127.0.0.1:8080:8080 -v "$PWD:/home/coder/project" -u "$(id -u):$(id -g)" codercom/code-server:latest I know in cloudbox we add the user and group in env but for some reason it didn't work well with coder, I couldn't save anyfile with it, was giving permission error |
What's the verdict? Despite the Coder docs stating that it supports user/group, it breaks permissions? |
Yes it break permissions |
@tarek369 You've said this many times but have yet to show where in fact this error occurs. Again, an important thing to note in the original issue which prompted the change:
code-server should run atop Cloudbox perfectly fine with this configuration, as 1000:1000 is what also seems to be recommended in the wiki for custom containers: https://github.com/Cloudbox/Cloudbox/wiki/Add-Your-Own-Docker-Container-into-Cloudbox |
User is not be by default 1000:1000 ansible will get yours and will not set default 1000:1000 to solve the issue; I said the error will appear once you open coder and try to create files or edit on a file |
Please rebase against develop |
Closed due to inactivity. |
fix coder by removing the command and adding user: "{{ uid }}:{{ gid }}"
otherwise, it was not working