Elico-Corp / odoo-docker

Simple yet powerful Odoo image for Docker based on OCB code and maintained by Elico Corporation.
https://hub.docker.com/r/elicocorp/odoo/
GNU Lesser General Public License v3.0
77 stars 93 forks source link

[IMP][10.0] Fix permissions #56

Closed seb-elico closed 7 years ago

seb-elico commented 7 years ago

Before merging this PR, the image can be tested by pulling: docker pull sebelico/odoo-docker:10.0-fix-permissions

This PR contains:

seb-elico commented 7 years ago

@Elico-Corp/docker-reviewers please review :+1:

@victormartinelicocorp @Zhouhao12345 @RawEvan @Wizr feel free to comment!

seb-elico commented 7 years ago

@elicoidal before we merge this PR, I will pull sebelico/odoo-docker:10.0-fix-permissions on Superman and use it for all our v10 trunk instances, so that we have a little more REX about the new version, since there are a lot of changes (I just want to make sure we won't break anything)

@victormartinelicocorp @Zhouhao12345 @RawEvan @Wizr feel free to comment!

elicoidal commented 7 years ago

Later on we need to sit down to coordinate the changes you made and the installation script

seb-elico commented 7 years ago

@elicoidal I found a bug in the new image: when the volumes are not mapped (I think extra_addons, sessions and odoo_data), they will be created by Docker in its internal folders (e.g. /var/lib/docker/volumes) as anonymous volumes. But they will belong to root:root, meaning that odoo user (1000:1000) will not be able to write inside (which is a big issue for the sessions and attachments). Workaround is to map those volumes in d-c.yml and make sure the folders belong to 1000:1000, but I definitely need to fix this before we merge!

elicoidal commented 7 years ago

I hit this bug during the week endÉric CaudalOn Jun 12, 2017 7:26 PM, Sébastien Maillard - Elico Corp notifications@github.com wrote:@elicoidal I found a bug in the new image: when the volumes are not mapped (I think extra_addons, sessions and odoo_data), they will be created by Docker in its internal folders (e.g. /var/lib/docker/volumes) as anonymous volumes. But they will belong to root:root, meaning that odoo user (1000:1000) will not be able to write inside (which is a big issue for the sessions and attachments). Workaround is to map those volumes in d-c.yml and make sure the folders belong to 1000:1000, but I definitely need to fix this before we merge!

—You are receiving this because you were mentioned.Reply to this email directly, view it on GitHub, or mute the thread.

seb-elico commented 7 years ago

@elicoidal all ownership bugs are fixed, I also fixed the download of repo when specifying the branch in d-c.yml (e.g. - "ADDONS_REPO=git@github.com:Elico-Corp/yugong-odoo.git 10.0"). Last but not least, I implemented the download of multiple repositories using a local oca_dependencies.txt file. Refer to the PR description for full list of changes.

Still need to pull the image on my laptop and Superman for the final tests before we merge.

@victormartinelicocorp @Zhouhao12345 @RawEvan @Wizr feel free to comment! :+1:

seb-elico commented 7 years ago

@victormartinelicocorp @Zhouhao12345 @RawEvan @Wizr any feedback?

seb-elico commented 7 years ago

@elicoidal all tests are successful and image has been running on our test servers for several days now. I think it's time to merge this PR and backport it to v7~9. Unless @victormartinelicocorp @Zhouhao12345 @RawEvan @Wizr have some feedback, but they didn't reply for the last 13 days now

elicoidal commented 7 years ago

Go ahead @seb-elico

victormmtorres commented 7 years ago

@elicoidal all tests are successful and image has been running on our test servers for several days now. I think it's time to merge this PR and backport it to v7~9. Unless @victormartinelicocorp @Zhouhao12345 @RawEvan @Wizr have some feedback, but they didn't reply for the last 13 days now

@seb-elico Talking by me. Here on this PR there is many commands that ever seem so for review need to study, so I feel this PR is good enough as you tested. But I could not say I understand everything you fix.

seb-elico commented 7 years ago

@RawEvan thanks for your comments, please check my answers! @elicoidal all comments have been answered, let me know when it's merged so that I can backport to previous versions