Closed hbto closed 1 year ago
@antonag32
This folder can be changed during the image build since it is not a volume (I think so)
Could you check what particular folders or files in the /home/odoo path has root permissions in order to run chown from the Dockerfile, please?
e.g. chown -R odoo:odoo /home/odoo/.config
from https://github.com/Vauxoo/travis2docker/issues/172
and chown -R odoo:odoo /home/odoo/.cache
Also, the following path is missing in the PATH /home/odoo/.local/bin
BTW Maybe something is not working well here:
Notice we don't like to run chown -R odoo:odoo /home/odoo/
because of it spends a lot of time and almost of the path already have odoo permission
FYI @allanpa88
@moylop260
I don't think we can place it in the Dockerfile since these folders are not part of the base install, but are generated by optional programs, like vim.
In this case .cache
being owned by root is caused by choosing installing the ctrpl
plugin for vim.
/home/odoo/.spf13-vim-3
is also owned by root but I don't think that causes any problems.
I also could not find /home/odoo/.config
, on the images I created. What program is using that directory?
You can use a find with not user
find /home/odoo -maxdepth 1 -not -user odoo -exec chown -R odoo:odoo {} \;
FYI $HOME/.cache
is a generic folder used from pre-commit, pip and so on
When first running pre-commit-vauxoo
It tries to create new folders at directory /home/odoo/.cache/
But in doing so an Exception is raised:
Changing ownership on folder from root to odoo is needed
as directory is owned by root:
It would be good to have this advice when running t2d
Regards.