GithubHelp home page GithubHelp logo

docker-rt's Introduction

docker-rt

RT, or Request Tracker, is a issue tracking system. Currently build RT lastest (4.4.x) and RT 4.2.12.

Requirements

In this first build this container makes some assumptions that might not be for everyone. The container is only built to use Postgresql. You also have to use SSL/TLS and have a directory with the following files shared with the container at startup:

  • RT_SiteConfig.pm
  • server-chain.pem
  • server.pem

Usage

To run docker-rt (change to to the location of the files specified above):

    docker run -ti -p 443:443 -e RT_HOSTNAME=rt.example.com -e RT_RELAYHOST=mail.example.com -v /<full path>/docker-rt/files:/data --name rt -d reuteras/docker-rt
  • -e RT_HOSTNAME=<RT server hostname>
  • -e RT_RELAYHOST=<Postfix relay host>

Upgrade from 4.2.12 to 4.4.x

The steps I took:

# Backup database first
docker stop rt
run -ti -p 443:443 -e RT_HOSTNAME=<hostname> -e RT_RELAYHOST=<host> -v /docker:/data:ro --name rt44 -d reuteras/docker-rt
docker exec -ti rt44 /bin/bash
rt# cd /opt/rt4
rt# ./sbin/rt-setup-database --action upgrade
rt# exit
# Clean up and restart with correct name
docker stop rt44
docker rm rt
docker rm rt44
run -ti -p 443:443 -e RT_HOSTNAME=<hostname> -e RT_RELAYHOST=<host> -v /docker:/data:ro --name rt -d reuteras/docker-rt

The same steps can be used for upgrades from 4.4.x to 4.4.y where y>x.

Install

In my environment I still use an vm to run Postgresql. Because of that I haven't scripted any default setup to automatically use a linked database container. Something like the following should help you get started.

# Change mysecretpassword to something better
docker run --name postgres -e POSTGRES_PASSWORD=mysecretpassword -d postgres
docker inspect postgres | grep IPAddress
# edit RT_SiteConfig.pm and insert the IP Address
docker run -ti -p 443:443 -e RT_HOSTNAME=servername -e RT_RELAYHOST=servername -v $(pwd)/files:/data --name rt -d reuteras/docker-rt
docker exec -ti rt /bin/bash
# in the container
cd /tmp/rt/rt-4.4.*
make initdb
# enter password from step one
exit

TODO

Lots of things.

  • Solution for adding plugins

docker-rt's People

Contributors

reuteras avatar

Watchers

James Cloos 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.