Giter Site home page Giter Site logo

docker-rt's Introduction

docker-rt
=========

This is a docker image for running Best Practical's RT (Request Tracker), a
ticket tracking system.

It's currently a work in progress, but it includes

  RT
  nginx
  postfix + spamassassin

And exposes the RT web interface on container port 80 and an RT-connected MTA on
container port 25.

from scratch
------------

Start a postgres container:

  docker run -d \
    -e POSTGRESQL_USER=rt_user \
    -e POSTGRESQL_PASS=rt_pass \
    -e POSTGRESQL_DB=rt4 \
    --name rtdb \
    orchardup/postgresql

Run a one-off container to configure the database:

  docker run \
    --link rtdb:db \
    -e DATABASE_USER=rt_user \
    -e DATABASE_PASS=rt_pass \
    -e DATABASE_NAME=rt4 \
    nickstenning/rt \
    /usr/bin/rtinit

Now the database is initialised and you can run RT proper:

  docker run -d \
    --link rtdb:db \
    -p 25 \
    -p 80 \
    -e DATABASE_USER=rt_user \
    -e DATABASE_PASS=rt_pass \
    -e DATABASE_NAME=rt4 \
    nickstenning/rt

To see the ports on which the web and mail interfaces are exposed, run `docker ps`.

run against a pre-existing database
-----------------------------------

You can provide the DATABASE_HOST directly:

  docker run -d \
    -p 25 \
    -p 80 \
    -e DATABASE_HOST=dbserver \
    -e DATABASE_USER=rt_user \
    -e DATABASE_PASS=rt_pass \
    -e DATABASE_NAME=rt4 \
    nickstenning/rt

configuration
-------------

This image provides some limited support for customising the deployment using
environment variables. See RT_SiteConfig.pm for details.

docker-rt's People

Contributors

nickstenning avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

docker-rt's Issues

build image came across this issue

2014/04/21 10:40:13 The command [/bin/sh -c make -C /src/${RT} testdeps 2>/dev/null | fgrep ...MISSING | cut -d' ' -f1 | sort -u | xargs c
panm] returned a non-zero code: 123

Mismatch on DATABASE_PASS/PASSWORD

I tracked an issue in the scripts to some using DATABASE_PASS and some using DATABASE_PASSWORD, most notably the RT_SiteConfig.pm script, and rninit. Though it's possible that the scripts are consistent, and the documentation is out of sync.

I'll try and submit a pull request shortly.

VOLUME /opt/rt4 makes it difficult to make modifications to image

I wanted to use your image + install an extension. I created this Dockerfile:

FROM netsandbox/request-tracker

COPY rt-extension-rest2 /usr/local/src/rt-extension-rest2
RUN cd /usr/local/src/rt-extension-rest2 && \
    perl Makefile.PL && \
    make && \
    make install

But since you have VOLUME /opt/rt4, everything from the make install gets lost.

Since all files written by rt reside under /opt/rt4/var, it makes sense to change the volume to that path.

Work in progress?

You say in the README that this is a work in progress. Could you give some indication of what needs work?

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.