Skip to content

Releases: camptocamp/docker-odoo-project

2.0.0

22 Dec 08:39
Compare
Choose a tag to compare

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

1.7.1

19 Dec 11:04
Compare
Choose a tag to compare

Important bugfix in marabunta! The changes in the marabunta_version table were
never committed, so migration would run again.

Libraries

  • Upgrade Marabunta to 0.6.1

1.7.0

21 Nov 10:29
Compare
Choose a tag to compare

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

1.6.2

26 Oct 13:46
Compare
Choose a tag to compare

Bugfixes

  • Set default command to 'odoo' for 9.0 as well
  • Run migration if the command is odoo.py too

Libraries

  • Upgrade marabunta to 0.5.1

1.6.1

26 Oct 13:45
Compare
Choose a tag to compare

Bugfixes

  • runtests was calling the wrong path for odoo in 9.0 version

Build

  • Tests on Travis call runtests during the build to ensure the script works
    as expected

1.6.0

12 Oct 15:25
Compare
Choose a tag to compare

New Odoo 10.0 image
Now, images for Odoo 10.0 and 9.0 are generated.
The versioning is still the same, note that 9.0 and 10.0 share the final
part of their version:

  • camptocamp/odoo-project:9.0-latest
  • camptocamp/odoo-project:9.0-1.6.0
  • camptocamp/odoo-project:10.0-latest
  • camptocamp/odoo-project:10.0-1.6.0

Images are no longer built on hub.docker.com but tested on Travis and pushed
when the test is green.
The test consists of the example project being built and Odoo started.

Images should be built using make now. The bin folder at the root of the
repository is copied into the folders before the builds, so it is common to
both versions.

Changes in the Odoo 9.0 image

A new command odoo has been added in the path and exec-utes odoo.py.
This is to ensure the compatibility of the various scripts as odoo.py has
been renamed to odoo in Odoo 10.0.

Libraries

  • Anthem upgraded to 0.5.0 (Odoo 10.0 support)
  • Marabunta upgraded to 0.5.0 (Odoo 10.0 support)
  • XlsxWriter added in 9.0 as it becomes required in Odoo 10.0 and required for
    the OCA QWeb accounting reports

1.5.0

12 Oct 15:25
Compare
Choose a tag to compare

Possibly breaking change

  • Now the default user id for the filestore will be 999 instead of 9001. It
    should not be problematic in most cases because the volumes are chown-ed in
    the entrypoint. But you have to be cautious if you have interactions with
    host volumes or other containers.

1.4.0

23 Sep 12:43
Compare
Choose a tag to compare

Features and Improvements

  • Add a 'lint' command that calls flake8 on the local sources

Bugfixes

  • Make the database user own the created database

Libraries

  • Upgrade requests to 2.6.0 (same version defined in odoo's requirements.txt)

1.3.0

19 Aug 07:45
Compare
Choose a tag to compare

Bugfixes

  • Create /data/odoo{addons,filestore,sessions} folders at container's start,
    which sometimes prevent Odoo to start at the first boot

Libraries

1.2.1

27 Jul 06:44
Compare
Choose a tag to compare

Libraries