Build Docker Images

There is no guarantee that python package will work with a different Python version, especially those with C extension.

Indeed strech-slim may be a good idea.

Here is the implementation: Issue 6876: Docker image - Tryton issue tracker

After 1.10 --link is deprecated [1]. Now is recomended run containers using own defined networks [2] [3].

[1] https://docs.docker.com/engine/userguide/networking/default_network/dockerlinks/
[2] https://docs.docker.com/engine/userguide/networking/
[3] https://docs.docker.com/engine/userguide/networking/work-with-networks/

I think we are in the exception to still use --link: https://docs.docker.com/engine/userguide/networking/work-with-networks/#basic-container-networking-example
Indeed it is still the example provided by the postgres image and describing in example how to setup an overlay network seems out of the scope.
Any way, I do not see any problem in using an overlay network with the current image as far as the database hostname is postgres (and even it is possible to setup your own TRYTOND_DATABASE_URI).

1 Like