Tags: TDu/docker-odoo-project
Tags
**Features and Improvements** * A maintenance page is published on the same port than Odoo (8069) during the marabunta migration (need anthem >= 0.10.0 and marabunta >= 0.7.2) * Support installation of Odoo addons packaged as Python wheels **Bugfixes** * The ``start-entrypoint./000_base_url`` script might fail when we don't run marabunta migration and the database does not exist, the script is now ignored in such case. **Libraries** * Upgrade ``anthem`` to 0.10.0 * Upgrade ``marabunta`` to 0.7.2, includes a maintenance page during the upgrade! * Add ``odoo-autodiscover>=2.0.0b1`` to support Odoo addons packaged as wheels * Upgrade ``psycopg2`` to 2.7.3.1 with several bugfixes notably "Fixed inconsistent state in externally closed connections" in http://initd.org/psycopg/articles/2017/07/22/psycopg-272-released/
**Features and Improvements** * Remove ``DOMAIN_NAME`` environment variable. Only ``ODOO_BASE_URL`` is now used. * Set a default value for ``ODOO_BASE_URL`` to ``http://localhost:8069``. **Libraries** * Add ``ofxparse`` as found in odoo's requirements * Upgrade ``psycopg2`` to 2.7.1 * Add ``pytest-cov`` for tests * PyChart is no longer installed from gna.org (down) but from pypi
**Features and Improvements** * Possibility to change the hostname for database with ``$DB_HOST`` (default is ``db``) * Set the ``list_db`` option to ``False`` by default. This option can be unsafe and there is no reason to activate it as the image is designed to run on one database by default. **Libraries** * Upgrade ``anthem`` to 0.7.0 * Upgrade ``dockerize`` to 0.4.0 * Add ``html2text`` (used in ``mail`` module) * Add ``odfpy`` and ``xlrd`` for xls/xlsx/ods imports
**Warning** This release might break compatibility with the images using it, it needs some little modifications in their `Dockerfile`. The Workdir of the container will be `/opt` instead of `/opt/odoo`. The reason is that it allows a more natural transition between the project from the outside of the container and from the inside. Meaning, if we run the following command: ``` docker-compose run --rm -e DB_NAME=dbtest odoo pytest -s odoo/local-src/my_addon/tests/test_feature.py::TestFeature::test_it_passes ``` The path `odoo/local-src...` is the path you see in your local project (with auto-completion), but it is valid from inside the container too. The implication is that the projects' Dockerfile need to be adapted, for instance: ``` COPY ./requirements.txt ./ RUN pip install -r requirements.txt COPY ./importer.sh bin/ ``` becomes: ``` COPY ./requirements.txt /opt/odoo/ RUN cd /opt/odoo && pip install -r requirements.txt COPY ./importer.sh /opt/odoo/bin/ ``` **Features and Improvements** * Include pytest * Add testdb-gen, command that generates a test database to be used with pytest * Add testdb-update, command to update the addons of a database created with testdb-gen * 'chown' is executed on the volumes only if the user is different, should make the boot faster * 'chown' is executed for any command, not only when starting odoo, needed to run testdb-gen * Customizable `web.base.url` with environment variables `ODOO_BASE_URL` or `DOMAIN_NAME` * Allow to run custom scripts between `migrate` and the execution of `odoo`, by placing them in `/opt/odoo/start-entrypoint.d` (respecting `run-parts` naming rules) **Libraries** * Upgrade marabunta to 0.6.3 (https://github.com/camptocamp/marabunta/releases/tag/0.6.3)
**Features and Improvements** * Export PG* environment variables for convenience, so in a shell we can connect on the current database with: ``docker-compose run --rm odoo psql -l`` And in Marabunta steps we can execute SQL files with: ``psql -f path/to/file.sql`` Instead of: ``sh -c 'PGPASSWORD=$DB_PASSWORD psql -h db -U $DB_USER -f path/to/file.sql $DB_NAME'`` * Use unbuffer when calling marabunta, to have the output line by line **Bugfixes** * Change 'pip list' invocation to remove a deprecation warning **Libraries** * Upgrade marabunta to 0.6.0 (https://github.com/camptocamp/marabunta/releases/tag/0.6.0)
PreviousNext