Commit Graph

255 Commits

Author SHA1 Message Date
Christophe Monniez
d38f9ccc04 [REF] Odoo 11.0-13.0: update to release 20200417
Closes #298
2020-04-17 11:07:57 +02:00
Christophe Monniez
b4779b0e56 [IMP] Odoo 11.0-13.0: also exports port 8072
Although the `EXPOSE` instruction does not actually publish the ports,
it has an impact on inter docker communication.

With this commit, port 8072 is also exposed.

Closes #107
2020-03-31 15:39:25 +02:00
Christophe Monniez
6d92142da1 [IMP] Odoo 11.0-13.0: install python-slugify
The Odoo's fallback for the slugify_one method does only support latin
letters. This commit installs the python-slugify library from the Debian
packages.

Closes #199

Thanks to @lem8r for the report and PR.
2020-01-23 14:38:36 +01:00
Christophe Monniez
0c835c7485 [IMP] Odoo 11.0-13.0: remove a RUN layer
Small improvement to minimze the number of layers.
Thanks to @valerianpereira for the PR.

Closes #188
2020-01-22 15:57:16 +01:00
Christophe Monniez
6011cc7931 [FIX] Odoo 11.0-13.0: add xlrd library to allow xls import
Fixes #262
2020-01-21 16:21:24 +01:00
Christophe Monniez
740e5dc53d [FIX] Odoo 11.0-13.0: use an absolute path for psql source list
When creating an apt source list for Postgresql Debian package, the
redirection uses a relative path. It works because the default WORKDIR
but it's a fragile bad practice.

Thanks to @fractalf and @alorence for the bug report and investigation.

closes #287, closes #290
2020-01-21 10:33:48 +01:00
Christophe Monniez
b82980338d [REF] Odoo 11.0-13.0: update to release 20200121 2020-01-21 10:26:17 +01:00
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
6e7938ab6a [ADD] Odoo: 13.0
* Add Odoo version 13.0 release 20191009
2019-10-09 13:49:49 +02:00
Christophe Monniez
b32f2033d1 [REM] Odoo 10.0: remove deprecated version 2019-10-08 08:35:11 +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
f71a22239e [REM] Odoo 9.0: remove deprecated version 2018-10-08 15:54:16 +02: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
Olivier Dony
e34689bf67 [REF] Odoo 9.0-11.0: update to release 20180808 2018-08-08 15:58:23 +02:00
Christophe Monniez
67e5ceb0fa [REF] Odoo 9.0-11.0: update to release 20180710 2018-07-10 10:06:43 +02:00
Andreas Raster
cec9d153fe [IMP] Odoo 11.0: add python3-watchdog dependency
Closes: #142
Fixes: #194
2018-07-09 15:49:50 +02:00
Christophe Monniez
b3d6d018f7 [REF] Odoo 9.0-11.0: update to release 20180122
11.0: install python3 package xlwt to allow xlsx export

Fixes #161
2018-01-22 11:39:40 +01:00
Christophe Monniez
16d5988408 [REF] Odoo 11.0: simplify locale settings
locale settings does not need to re-genreate c.utf-8 as it's already
included in Debian Stretch. Also LANG is enough to define the locale
needed by Odoo. Finaly, apt-get does not really need to be explicitly
set in non interactive mode. apt-get is able to do the right thing.
Thanks @tianon
2017-11-01 21:33:20 +01:00
Daniel Blanco
feac9b2423 [FIX] Odoo 11.0: Add num2words installation
A Debian package does not exists yet for python3-num2words and
this package is required for those who want to render textual amounts.

Closes #129
2017-10-31 08:51:42 +01:00
Daniel Blanco
bfe3143479 [FIX] Odoo 11.0: add a locale to prevent ascii decode errors
Closes #129
2017-10-30 16:37:27 +01:00
Christophe Monniez
199c206737 [REF] Odoo 9.0-11.0: update to release 20171030 2017-10-30 16:02:37 +01:00
Christophe Monniez
751e9706bf [REM] Odoo 8.0: Remove deprecated version
Odoo 8.0 has reached end of life since October 6, 2017.
2017-10-30 15:54:40 +01:00
Christophe Monniez
60b3f82cf1 [ADD] Odoo: 11.0
* Creation of Dockerfile for Odoo version 11.0 release 20171013
2017-10-13 16:18:10 +02:00
Olivier Dony
f432264ad1 [REF] Odoo 8.0-10.0: update to release 20170815 2017-08-16 11:01:50 +02:00
Simon Lejeune
f8af1a80b1 [REF] Odoo 8.0-10.0: update to release 20170207
fixes #89
closes #101
2017-02-07 16:37:11 +01:00
Simon Lejeune
c97e82a93a [FIX] Odoo 9-10: reload handling
We were still trying to make the auto reload feature work with the 8.0
way in the dockerfile 9 and 10. This patch install the dependency used
in Odoo 9-10 (watchdog instead of pyinotify) and remove the
"auto-reload" key from the default configuration file, as the new syntax
is "--dev=reload".

The auto-reload is now disabled by default (it didn't work, let's not
bother someone that does not need it). The easiest way to use it is to
pass the arguments to the odoo process as:

docker run -p 8069:8069 --name odoo --link db:db -t odoo:[9.0|10.0] -- --dev=reload

fixes #84
fixes #98
2017-02-07 16:22:34 +01:00
Simon Lejeune
d780e6fe36 [REF] Odoo 8.0-10.0: update to release 20161123 2016-11-23 14:17:55 +01:00
Simon Lejeune
a2559e47d5 [FIX] Odoo 8.0-10.0: handling of odoo subcommand
When using an Odoo subcommand, the name of this subcommand has to be in
first position in the arguments list. Just pass the postgres config at
the end of the command... except for the scaffold one.

Fixes #83
2016-11-23 14:17:55 +01:00