Releases: camptocamp/docker-odoo-project
2.0.0
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 variablesODOO_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)
1.7.1
1.7.0
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)
1.6.2
1.6.1
1.6.0
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
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 arechown
-ed in
the entrypoint. But you have to be cautious if you have interactions with
host volumes or other containers.
1.4.0
1.3.0
Bugfixes
- Create /data/odoo{addons,filestore,sessions} folders at container's start,
which sometimes prevent Odoo to start at the first boot
Libraries
- Upgrade to Marabunta 0.4.2 (https://github.com/camptocamp/marabunta/releases/tag/0.4.2)
- Upgrade to Anthem 0.4.0 (https://github.com/camptocamp/anthem/releases/tag/0.4.0)
1.2.1
Libraries
- Upgrade to Marabunta 0.4.1 (https://github.com/camptocamp/marabunta/releases/tag/0.4.1)