Skip to content

Conversation

@veivaa
Copy link
Owner

@veivaa veivaa commented May 18, 2021

No description provided.

d-fence and others added 30 commits October 8, 2019 08:35
    * Add Odoo version 13.0 release 20191009
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
Without batch option, gpg may try to use /dev/tty.

See https://bugs.debian.org/913614
Usage of apt-get should prevent installing wkhtmltopdf on wrong
architecture.
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
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.
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
Small improvement to minimze the number of layers.
Thanks to @valerianpereira for the PR.

Closes #188
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.
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
Before this commit, the deb package was installed in two steps.
The first step was to use dpkg and force the install, the second step
was to repair the broken install.
It appears that dash can be unpredictable.

Also, uses the `pipefail` as stated in the Dockerfile best practice [1].

[1] https://github.com/docker/docker.github.io/blob/master/develop/develop-images/dockerfile_best-practices.md#using-pipes
When installing postgresql-client, the Debian repo from Postgresql is added as a source list.
As a consequence, when installing the Odoo debian packages, the
package dependencies are also searched in the Postgresql repo.

In this case, it appears that python3-werkzeug version 0.16 was
installed from the Postgresql repo.

Closes #299
d-fence added 30 commits January 6, 2025 15:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.