Skip to content
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

Add Odoo 17 with debian:bookworm-slim base #478

Closed
wants to merge 1 commit into from

Conversation

ibrohimislam
Copy link

@ibrohimislam ibrohimislam commented Nov 11, 2023

description

This pull request try to add odoo:17 with base image debian:bookworm-slim because of this commit odoo/odoo@163fb3a we can't use old debian:bullseye-slim.

result

the build success, and odoo can run normally:

2023-11-11 05:25:31,828 53 INFO ? odoo: Odoo version 17.0-20231110 
2023-11-11 05:25:31,829 53 INFO ? odoo: Using configuration file at /etc/odoo/odoo.conf 
2023-11-11 05:25:31,829 53 INFO ? odoo: addons paths: ['/usr/lib/python3/dist-packages/odoo/addons', '/var/lib/odoo/addons/17.0', '/mnt/extra-addons'] 
2023-11-11 05:25:31,829 53 INFO ? odoo: database: odoo@db:5432 
Warn: Can't find .pfb for face 'Times-Roman'
2023-11-11 05:25:31,950 53 INFO ? odoo.addons.base.models.ir_actions_report: Will use the Wkhtmltopdf binary at /usr/local/bin/wkhtmltopdf 
2023-11-11 05:25:32,256 53 INFO ? odoo.service.server: Watching addons folder /usr/lib/python3/dist-packages/odoo/addons 
2023-11-11 05:25:32,256 53 INFO ? odoo.service.server: Watching addons folder /var/lib/odoo/addons/17.0 
2023-11-11 05:25:32,256 53 INFO ? odoo.service.server: Watching addons folder /mnt/extra-addons 
2023-11-11 05:25:32,784 53 INFO ? odoo.service.server: AutoReload watcher running with watchdog 
2023-11-11 05:25:32,788 53 INFO ? odoo.service.server: HTTP service (werkzeug) running on dfa12eccd195:8069 
2023-11-11 05:25:32,825 53 INFO odoo odoo.modules.loading: loading 1 modules... 
2023-11-11 05:25:32,834 53 INFO odoo odoo.modules.loading: 1 modules loaded in 0.01s, 0 queries (+0 extra) 
2023-11-11 05:25:32,845 53 INFO odoo odoo.modules.loading: loading 11 modules... 
2023-11-11 05:25:32,954 53 INFO odoo odoo.modules.loading: 11 modules loaded in 0.11s, 0 queries (+0 extra) 
2023-11-11 05:25:33,002 53 INFO odoo odoo.modules.loading: Modules loaded. 
2023-11-11 05:25:33,006 53 INFO odoo odoo.modules.registry: Registry loaded in 0.221s 
2023-11-11 05:25:34,948 53 INFO odoo odoo.addons.base.models.ir_http: Generating routing map for key None 
2023-11-11 05:25:35,198 53 WARNING odoo odoo.addons.base.models.ir_qweb: Found deprecated directive @t-esc="title or 'Odoo'" in template 180. Replace by @t-out 
2023-11-11 05:25:35,199 53 WARNING odoo odoo.addons.base.models.ir_qweb: Found deprecated directive @t-esc='request.csrf_token(None)' in template 180. Replace by @t-out 
2023-11-11 05:25:35,199 53 WARNING odoo odoo.addons.base.models.ir_qweb: Found deprecated directive @t-esc='debug' in template 180. Replace by @t-out 
2023-11-11 05:25:36,797 53 INFO ? odoo.addons.bus.models.bus: Bus.loop listen imbus on db postgres

wkhtmltopdf

wkhtmltopdf seems fine:
Screen Shot 2023-11-11 at 12 56 17

known issue so far

  • container cannot run on host CentOS 7 with kernel 3.10.0-1160.59.1.el7.x86_64 caused container to stop.
    Traceback (most recent call last):
      File "/usr/bin/odoo", line 8, in <module>
        odoo.cli.main()
      File "/usr/lib/python3/dist-packages/odoo/cli/command.py", line 66, in main
        o.run(args)
      File "/usr/lib/python3/dist-packages/odoo/cli/server.py", line 179, in run
        main(args)
      File "/usr/lib/python3/dist-packages/odoo/cli/server.py", line 172, in main
        rc = odoo.service.server.start(preload=preload, stop=stop)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "/usr/lib/python3/dist-packages/odoo/service/server.py", line 1402, in start
        rc = server.run(preload, stop)
             ^^^^^^^^^^^^^^^^^^^^^^^^^
      File "/usr/lib/python3/dist-packages/odoo/service/server.py", line 577, in run
        self.start(stop=stop)
      File "/usr/lib/python3/dist-packages/odoo/service/server.py", line 531, in start
        self.http_spawn()
      File "/usr/lib/python3/dist-packages/odoo/service/server.py", line 511, in http_spawn
        t.start()
      File "/usr/lib/python3.11/threading.py", line 957, in start
        _start_new_thread(self._bootstrap, ())
    RuntimeError: can't start new thread
    
    workaround set the component seccomp to unconfined (https://docs.docker.com/engine/security/seccomp/)
    see: Debian bookworm upgrade renders container unable to start redis/docker-library-redis#365
  • adding new python library can't use pip3 install some-library. installing using this command caused:
    + pip3 install setuptools_rust
    error: externally-managed-environment
    
    × This environment is externally managed
    ╰─> To install Python packages system-wide, try apt install
        python3-xyz, where xyz is the package you are trying to
        install.
        
        If you wish to install a non-Debian-packaged Python package,
        create a virtual environment using python3 -m venv path/to/venv.
        Then use path/to/venv/bin/python and path/to/venv/bin/pip. Make
        sure you have python3-full installed.
        
        If you wish to install a non-Debian packaged Python application,
        it may be easiest to use pipx install xyz, which will manage a
        virtual environment for you. Make sure you have pipx installed.
        
        See /usr/share/doc/python3.11/README.venv for more information.
    
    note: If you believe this is a mistake, please contact your Python installation or OS distribution provider. You can override this, at the risk of breaking your Python installation or OS, by passing --break-system-packages.
    hint: See PEP 668 for the detailed specification.
    

@ibrohimislam ibrohimislam mentioned this pull request Nov 11, 2023
Copy link

@amh-mw amh-mw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The diff between 16.0/ and 17.0/ is exactly what I expected.

@lathama
Copy link

lathama commented Mar 31, 2024

This appears to be outdated per commit 37a68ee can we close this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants