Thanks to visit codestin.com
Credit goes to github.com

Skip to content

jasalt/OCB

 
 

Repository files navigation

WIP Odoo Community Backports (OCB) fork for testing uv docker-compose.yml wrapping.

Tested with Odoo 17. Read NOTES.org for extra info.

Setup

Running with docker compose

docker compose up

Access Odoo at http://localhost:8069/

Default credentials:

  • user: admin
  • pass: admin

Test DB connection with psql -h localhost -p 54321 -U odoo -d postgres if there's issues..

Discard existing container with docker compose down -v to start fresh, sudo rm ./postgresql if there's permission problems..

Running locally with uv

# Install native code build dependencies, e.g. on Debian 12:
# sudo apt-get install clang

uv sync

docker compose run db

# Initialize DB on first run
uv run ./odoo-bin --db_host=localhost --db_port=54321 --database=postgres --db_user=odoo --db_password=odoo --init  --addons-path=./addons --stop-after-init

# Run devserver
uv run ./odoo-bin --addons-path=./addons --db_host=localhost --db_port=54321 --database=postgres --db_user=odoo --db_password=odoo --dev=all

# TODO there's some errors currently but the website editor works at least ...

Access / log in as with previous method.

TODO

  • Switch user to non-root (at least for deployment)
  • ... many things ...

Odoo Community Backports (OCB)

Please see what is OCB, its purpose and a FAQ at the Wiki.

For upstream OCA/OCB, see https://github.com/OCA/OCB

For the original Odoo README, please go to https://github.com/odoo/odoo/blob/17.0/README.md

About

WIP Python uv development Dockerfile and docker-compose.yml for OCB Odoo distribution..

Resources

License

Contributing

Security policy

Stars

Watchers

Forks

Languages

  • Python 51.3%
  • JavaScript 46.4%
  • SCSS 1.9%
  • CSS 0.2%
  • HTML 0.1%
  • Shell 0.1%