Commit Graph

25 Commits

Author SHA1 Message Date
Christophe Monniez
596a7cabc0 [REF] Odoo 11.0-13.0: update to release 20191106 2019-11-06 16:46:09 +01:00
Anang Aji Rahmawan
9c3a2dd128 [FIX] Odoo 11.0-13.0: get database config value 2019-11-06 16:24:15 +01:00
Christophe Monniez
ffe62bdd52 [FIX] Odoo 11.0-12.0: replace wait-for-it script
As the wait-for-it script is started before the parsing of the command
line, it is always started. It can be a problem if a user wants to start
some other binary than odoo (for example a shell).

Also, the wait-for-it script is only checking if a port is open on a
host and then waits 5 seconds before starting Odoo.

With this commit, the wait-for-it script is replaced by a more useful
custom python script that checks if the postgresql server is able to
handle a connection with the given parameters. Odoo then starts whenever
it's ready or fails after a 30 sec timeout.
2019-10-23 15:44:58 +02:00
Christophe Monniez
19c6725881 [REF] Odoo 11.0-13.0: update to release 20191022 2019-10-22 13:26:30 +02:00
rbuisson
14e51ae334 [IMP] 11.0-13.0: Wait for PostgreSQL before starting Odoo
In some situations, like when a docker compose file use a data volume
to persist postgresql databases, the Odoo server starts and tries to
connect to database server before the postgresql server is ready.

In such a case, the Odoo containers fails to start.

With this commit, the wait-for-it script is used to wait for the
database server service to be ready before starting Odoo.

This script is available as a Debian package.

Closes #258, closes #259
2019-10-16 13:16:21 +02:00
Christophe Monniez
f126d72f66 [FIX] 11.0-13.0: use apt-get to install wkhtmltopdf
Usage of apt-get should prevent installing wkhtmltopdf on wrong
architecture.
2019-10-12 12:44:02 +02:00
Christophe Monniez
c1fbc53720 [FIX] 11.0-13.0: use gpg batch mode
Without batch option, gpg may try to use /dev/tty.

See https://bugs.debian.org/913614
2019-10-12 12:44:02 +02:00
Christophe Monniez
9409487426 [FIX] 11.0-13.0: install phonenumbers and use slim images
While phonenumbers is not required to run Odoo, it's a requested nice to
have.

To avoid a red warning while installing num2words with pip, the Debian
backport repository is used.

Also use Debian slim images to gain some space.

closes #245 and closes #168
2019-10-12 12:37:54 +02:00
Christophe Monniez
6ba07c93c3 [FIX] 11.0-13.0: remove deprecated label usage 2019-10-12 12:32:18 +02:00
Christophe Monniez
0660495954 [REF] Odoo 11.0-12.0: update to release 20191009 2019-10-12 12:32:18 +02:00
Christophe Monniez
b5f088de13 [REF] Odoo 10.0-12.0: update to release 20190816 2019-08-16 14:14:44 +02:00
Christophe Monniez
c6b79809f0 [REF] Odoo 10.0-12.0: update to release 20190424 2019-04-24 17:01:17 +02:00
Christophe Monniez
d3e44ad1f3 [FIX] Odoo 10.0-12.0: use long ID's for gpg keys
Use long gpg ID's to avoid collisions.
2019-01-31 17:18:17 +01:00
Christophe Monniez
87f0174dca [FIX] Odoo 10.0-12.0: use a more secure way to download keys
At build time, curl is used to download gnupg keys without any
verification.

This does not meet the Docker hub requirements:
https://github.com/docker-library/official-images#security

With this commit, gpg is used to download the keys with the best method
specified in the requirements.
2019-01-30 15:43:24 +01:00
Christophe Monniez
4ab6185614 [REF] Odoo 10.0-12.0: update to release 20190128
the release timestamp and the verification sha1 are now using an ARG
instruction.

It means that they can be specified on the command line argument at the
build time.
2019-01-29 15:23:57 +01:00
Christophe Monniez
a1463daf59 [FIX] Odoo 11.0-12.0: add asian fonts and rtlcss
When printing a report, the asian fonts were missing.
Also, since Odoo 12.0, rtlcss is needed to support the right-to-left languages
in the Odoo UI.

With this commit, the noto-cjk fonts are added as well as the nodejs rtlcss tool.
2019-01-29 14:41:08 +01:00
Christophe Monniez
01f0a1e508 [FIX] Odoo 10.0-12.0: use latest postgresql-client
As the Odoo Docker images are based on Debian Jessie and Stretch, they
use the postgresql-client package from the respective Debian repo.

The backup feature of Odoo uses the postgresql-client. As a consequence,
if a database server newer than the client is used, the backup may fail.

For example, when using the Odoo Docker image 10.0 against a postgresql
server 10.0, the backup fails.

With this commit, the latest postgresql-client is used from the Postgres
repository. As they seem to be backward compatible, the Odoo backup will
succeed wathever the client/server combination.

fixes odoo/odoo#30599
2019-01-29 14:34:05 +01:00
Christophe Monniez
5ef3bee9dc [FIX] Odoo 10.0-12.0: make curl download quieter
When downloading wkhtmltopdf, curl shows a progress status unecessary
during the builds.
2019-01-29 14:03:05 +01:00
Christophe Monniez
5cc7eae335 [FIX] Odoo 10.0-12.0: remove deprecated MAINTAINER instruction
The MAINTAINER instruction is deprecated since Docker version 1.13.
With this commit, the LABEL instruction is used instead.
2019-01-29 13:37:17 +01:00
Christophe Monniez
d036067821 [REF] Odoo 10.0-12.0: update to release 20181126 2018-11-26 14:15:56 +01:00
Christophe Monniez
5935496f14 [FIX] Odoo 10.0-12.0: update wkhtmltopdf to recommended version
wkhtmltopdf 0.12.5 is now the recommended version.
This commiit uses the Debian packages that exist for Jessie and Stretch.

Fixes #220
2018-11-26 14:10:38 +01:00
Christophe Monniez
05c776bcb2 [FIX] Odoo 10.0-12.0: add missing packages
In Odoo, ldap, qrcode and vobject python modules are set as required in
odoo/setup.py. On the other hand, they are only recommendend in the
Debian package.

As a consequence, it was difficult to run some Odoo modules that
required one of them.

The Odoo Debian package was adapted in master where they were added as
dependencies in odoo/odoo@2ff49c5fcb .

With this commit, they are installed in the Docker images.

This is a part of the fix of odoo/odoo#27752.
2018-11-26 14:02:31 +01:00
Christophe Monniez
3b5c6ae6aa [REF] Odoo 10.0-12.0: update to release 20181109 2018-11-09 17:01:59 +01:00
Christophe Monniez
c0b305834b [REF] Odoo 10.0-12.0: update to release 20181008 2018-10-08 15:51:06 +02:00
Christophe Monniez
a7e2eb4193 [ADD] Odoo: 12.0
* Creation of Dockerfile for Odoo version 12.0 release 20181004
2018-10-04 15:32:29 +02:00