-
Notifications
You must be signed in to change notification settings - Fork 1
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
11.0 fix filestore perms #15
base: 11.0
Are you sure you want to change the base?
Conversation
This for the new car dealership project? |
Yes, however it's beneficial for any Odoo 11 which is based on |
opusvl-entrypoint.py
Outdated
|
||
print("/entrypoint.sh {}".format(arglist), file=sys.stderr) | ||
# Only set the uid to Odoo if we are in fact running Odoo | ||
# and not a custom command with docker-compose run ... |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think if running_odoo:
already says this.
opusvl-entrypoint.py
Outdated
# and not a custom command with docker-compose run ... | ||
print >>sys.stderr, "Changing uid to odoo uid: %s" %odoo_uid | ||
os.setuid(odoo_uid) | ||
print >>sys.stderr, "/entrypoint.sh {}".format(arglist) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd sooner stick with the function form of print().
Stick before all the other imports if you need to support python2:
from __future__ import print_function
Besides the statement form won't work in Python 3 anyway.
Oh @PeterAlabaster I also suggest adding to the README about the change, to say that users might have to explicitly use |
Perhaps we should be versioning these so breaking changes like this have a version number bump at the third level (e.g. We could freeze the two-level ones where they currently are and use three-level or four-level docker tags in our FROM clauses from this point on. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Dockerfile needs to finish with a Newline character for consistency with everything else.
Other than that, basically I tacitly approve this but I think this should go into our new repository when we do it so it doesn't silently break other projects.
Dockerfile
Outdated
ONBUILD USER root | ||
ONBUILD COPY ./addon-bundles/ /mnt/extra-addons-bundles/ | ||
ONBUILD RUN chmod -R u=rwX,go=rX /mnt/extra-addons-bundles | ||
ONBUILD COPY ./requirements.txt /root/ | ||
ONBUILD RUN pip3 install -r /root/requirements.txt | ||
ONBUILD USER odoo | ||
ONBUILD RUN pip3 install -r /root/requirements.txt |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you add a trailing newline please?
Fixes #14 for
11.0
, not for12.0
(that will need a seperate PR)