Odoo Bugs - Needs libxslt and create ENV variables in Dockerfile
Summary
When starting the container, an error is thrown that libxslt is not found.
Steps to reproduce
Start a postgresql instance
$ docker run -d -e POSTGRES_USER=odoo -e POSTGRES_PASSWORD=odoo -e POSTGRES_DB=postgres --name db postgres:13
Then run the odoo container and attach it to the postgres instance
$ docker run -p 8069:8069 --name odoo --link db:db -t registry1.dso.mil/ironbank/opensource/odoo/odoo:14.0
What is the current bug behavior?
Traceback (most recent call last): File "/usr/local/bin/odoo", line 5, in <module> import odoo File "/usr/local/lib/python3.8/site-packages/odoo/__init__.py", line 113, in <module> from . import modules File "/usr/local/lib/python3.8/site-packages/odoo/modules/__init__.py", line 8, in <module> from . import db, graph, loading, migration, module, registry File "/usr/local/lib/python3.8/site-packages/odoo/modules/graph.py", line 10, in <module> import odoo.tools as tools File "/usr/local/lib/python3.8/site-packages/odoo/tools/__init__.py", line 12, in <module> from .misc import * File "/usr/local/lib/python3.8/site-packages/odoo/tools/misc.py", line 39, in <module> from lxml import etree ImportError: libxslt.so.1: cannot open shared object file: No such file or directory
What is the expected correct behavior?
2021-09-01 03:38:29,863 1 INFO ? odoo: Odoo version 14.0-20210803
2021-09-01 03:38:29,866 1 INFO ? odoo: Using configuration file at /etc/odoo/odoo.conf
2021-09-01 03:38:29,867 1 INFO ? odoo: addons paths: ['/usr/local/lib/python3.8/site-packages/odoo/addons', '/var/lib/odoo/addons/14.0', '/mnt/extra-addons']
2021-09-01 03:38:29,868 1 INFO ? odoo: database: odoo@172.17.0.2:5432
2021-09-01 03:38:30,028 1 INFO ? odoo.addons.base.models.ir_actions_report: You need Wkhtmltopdf to print a pdf version of the reports.
2021-09-01 03:38:30,177 1 INFO ? odoo.service.server: HTTP service (werkzeug) running on 276d1f7cc17e:8069
Possible fixes
The fix has been pushed to a branch and is open in MR !33 (merged)
Defintion of Done
-
Bug has been identified and corrected within the container
Edited by Michael Simmons