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 Le mercredi 22 juillet 2015 21:59:37 UTC+2, RjOllos a écrit : > > > > On Monday, June 29, 2015 at 9:28:31 AM UTC-7, RjOllos wrote: >> >> >> >> On Mon, Jun 29, 2015 at 8:39 AM, Mael Lavault <moi...@gmail.com >> <javascript:>> wrote: >> >>> Just a quick question, does trac allow to be configured by environment >>> variables ? It would greatly simplify Docker packaging. If not I will have >>> to write a script that convert env var into corresponding ini file >>> properties. >>> >>> Thx ! >>> >> >> I think it's not possible yet, but discussed in this ticket: >> http://trac.edgewall.org/ticket/11339 >> > > I'm very interested in making Trac easier to install. If you can describe > or point to resources that would help with understanding any changes that > need to be made in order to package Trac in Docker, please do! I'd like to > better understand why Docker would need to work with environment variables > rather than a config. > > - Ryan > -- 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 trac-dev+unsubscr...@googlegroups.com. To post to this group, send email to trac-dev@googlegroups.com. Visit this group at http://groups.google.com/group/trac-dev. For more options, visit https://groups.google.com/d/optout.