Git Product home page Git Product logo

docker-trac's Introduction

Trac as microservice

See https://trac.edgewall.org/.

Trac lends itself nicely to configuration after launch. It refreshes at reload, so there's no need to prepare an "env" beforehand. Instead run trac-admin over docker exec / docker-compose run / kubectl exec.

Regarding trac versions, 1.0 is considered latest stable. But we've been running 1.1 since long with no issues. We like the time field type and there is progress, albeit slow, towards a more mobile-friendly UI.

Base image solsson/trac-single

docker run -p 80:80 -v $(PWD)/trac-env-1:/trac -d --name trac solsson/trac:single
# If you didn't mount an existing env
docker exec -ti trac trac-admin /trac initenv

# You may have mounted a volume, say /git, with your repositories
docker exec trac trac-admin /trac config set components tracopt.versioncontrol.git.* enabled
docker exec trac trac-admin /trac repository add Testing/repo1 /git/Testing/repo1.git git

Geared towards ticketing over JSON-RPC

We might some day make this image slimmer, for example remove wiki and VCS stuff.

docker run -p 80:80 -v $(PWD)/trac-env-1:/trac -d --name trac solsson/trac:engine
# If you didn't enable rpc in your env already
docker exec trac trac-admin /trac config set components tracrpc.* enabled
# You may want "authenticated" here instead of "anonymous"
docker exec trac trac-admin /trac permission add anonymous XML_RPC
# ok?
curl -s http://$(docker-machine ip default)/jsonrpc -H "Accept: text/html" | grep "Installed API version"

Development version

docker build -t solsson/trac:1.2-base 1.2-base/
docker build -t solsson/trac:1.2-single single-1.2/
docker build -t solsson/trac:1.2-engine engine-1.2/
docker run -p 80:80 -v $(PWD)/trac-env-2:/trac -d --name trac solsson/trac:1.2-engine
# let everyone do everything
docker exec trac trac-admin /trac permission add anonymous TICKET_ADMIN

Additional plugins

The solsson/trac:1.1-extras image is an example of a Dockerfile that adds plugins from trac-hacks. This isn't something you'd want to do after container launch. What you do want to do per environment is to run trac-admin:

docker exec trac trac-admin /trac config set components tractoc.* enabled
docker exec trac trac-admin /trac config set components Markdown.* enabled
# ... and so on

# If command based admin isn't enough...
docker exec trac trac-admin /trac permission add authenticated TRAC_ADMIN
# or even
docker exec trac trac-admin /trac permission add anonymous TRAC_ADMIN

docker-trac's People

Contributors

solsson avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.