On Thursday, July 23, 2015 at 12:48:43 AM UTC-7, Mael Lavault wrote: > > Ok, so a bit of context to better explain what is needed :) > > Docker containers must be stateless, meaning that every installation > specific configuration must be passed to Docker container at runtime. > > The way Docker choose to do so, is by passing environment variables to the > Docker container through different way (either command line, or yaml file > with compose, or env file, ... that's not really your concern as app > developer). > > This means that ideally, every configuration key present in trac.ini > should be overridable by env var (to begin you could just have the most > important stuff that vary from one install to another like > user/pass/db_host, ... that kind of stuff). > > You can take a look at what spring boot do, feedbin is also a good example > (and ruby app in general seems to use env var a lot by default) > https://github.com/feedbin/feedbin > > This mechanism could be directly bundled in trac core or, what some docker > container do for app not conceived to get their conf via env var, have a > startup script that convert env var passed to docker container to trac.ini > keys for example. > > Hope I am clear enough, do not hesitate to ask if something is unclear or > if you want more details. > > We are running a lot of webapps, in Docker container in our company and it > is really a pleasure to work with, since we do not have to care about > dependencies, os / version compatibility. It only takes a few seconds to > have the app up and running. > > Maƫl Lavault >
Thank you for the explanation. I think we can investigate a solution in #11339, but I'm not sure that will happen before the 1.2 release. You may want to follow the ticket. http://trac.edgewall.org/ticket/11339 -- You received this message because you are subscribed to the Google Groups "Trac Development" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/trac-dev. For more options, visit https://groups.google.com/d/optout.
