Dockerized Trac. A small patch to enable injecting environment variables into trac.ini is used.
It is recommended to use this as a base image. Your image should contain a custom trac.ini and another other plugins or static assets needed.
For connection parameters, it is recommended to use environment variables. If you have your connection string in the environment variable $DATABASE_URL, trac.ini should have:
database = %(DATABASE_URL)s
Run:
docker run -d -p 8080:8080 trac
You need a database before you can run trac commands or use the web interface.
To create a trac user in Postgres:
create role trac with login; grant connect on database trac to trac; grant usage on schema public to trac;
Only plugins we consider essential are included:
Plugin sources are vendored in, and can be found in plugins/. Plugins are vendored because installing from sources on the network in the Dockerfile can be slow/fragile/complex. Plugins are built in to binary distribution eggs, which are placed in src/trac_project/plugins/.