On Jul 21, 2014, at 1:47 AM, Cédric Krier <cedric.kr...@b2ck.com> wrote:

> On 20 Jul 15:03, Dominique Chabord wrote:
>> 
>> 
>> Le 20/07/2014 10:20, Cédric Krier a écrit :
>> 
>>> Personnaly, I use virtualenv only for developement when testing
>>> different configuration, installation version etc.
>> 
>> It may be necessary for running intependant instances of Trytond.
>> I do use them for that.
> 
> But probably a solution like docker will feet better because you will be
> able to completly separate the instance (python + DB + anything else).

This was what we thought too and the first version of the tryton docker
container had everything too. However, this does not seem to be the docker
way of doing things.

From what I understood, docker recommends a micro-services approach where
each service (trytond, postgres). So separate docker images for each.

The following may be off-topic:

One issue we face with trytond is sensitive configuration parameters like the
database credentials and admin credentials. If you were to use Dockerfile
the current way would be to have a trytond.conf file with this information in
plain text along with the source code.

This could be avoided if Trytond accepts environment variables as well for
configuration. If this is acceptable, I can send a patch.

This seems like the recommended way to work with application containers.
Heroku has config set [1] and docker run has env variable support [2]. The
advantages of the approach is explained in the 12 factor app manifesto [3].

What are your thoughts on this ? The command line parser `click` by Armin
Ronacher for example does this automagically for CLI arguments [4].
 
[1] https://devcenter.heroku.com/articles/config-vars
[2] http://docs.docker.com/reference/run/#env-environment-variables
[3] http://12factor.net/config
[4] http://click.pocoo.org/arguments/#environment-variables


Thanks & Regards

Sharoon Thomas
CEO & Chief Software Architect
Openlabs Technologies & Consulting (P) Limited

Request a call: https://clarity.fm/sharoonthomas

w: http://www.openlabs.co.in
m: +1 813.793.6736 (OPEN) Extn. 200
t: @sharoonthomas 

- We win when our customers win



Attachment: signature.asc
Description: Message signed with OpenPGP using GPGMail

Reply via email to