Docker Request Tracker Installation work order system

1, demand

docker installation work order system Request Tracker , and the need to support LDAP login.

 

2, mirrored

1) request-tracker-base mirroring

The first image is installed some basic support software, such as plug-ins apache2, rt4 of.

Dockerfile file hosted on Github , mirrored after downloading and uploading to a private warehouse (or upload to Docker Hub ). 

docker build -t request-tracker-base:v4.2.16
docker tag request-tracker-base:v4.2.16 reg.nexus.wmq.com/tools/request-tracker-base:v4.2.16
docker push reg.nexus.wmq.com/tools/request-tracker-base:v4.2.16

Reference: https://hub.docker.com/r/netsandbox/request-tracker-base/dockerfile , https://github.com/cloos/docker-rt-base

 

2) request-tracker mirror

The second image is based on a request-tracker-bas mirror on the basis of the rt4 software installation, integration and support for LDAP plug (the plug-in must have been completed after the installation rt4 installation).

Dockerfile file hosted on  Github , mirrored after downloading and uploading to a private warehouse (or upload to Docker Hub ).

docker build -t request-tracker:v4.2.16
docker tag request-tracker:v4.2.16 reg.nexus.wmq.com/tools/request-tracker:v4.2.16
docker push reg.nexus.wmq.com/tools/request-tracker:v4.2.16

 Reference: https://hub.docker.com/r/netsandbox/request-tracker/dockerfile , https://github.com/cloos/docker-rt

 

3, deployment

docker run -d --name rt -p 80:80 reg.nexus.wmq.com/tools/request-tracker:v4.2.16

 

4, description

1) The current request-tracker latest version v4.4.4, why not choose the latest version, because RT :: Authen :: ExternalAuth plug-in requires an integrated LDAP request-tracker used is lower than v4.4.0 version, so I chose v4.2.16 version (latest version 4.2).

RT :: Authen :: ExternalAuth Syntax Reference: https://metacpan.org/pod/RT::Authen::ExternalAuth

2) For online using apt-get install rt4-extension-authenexternalauth LDAP plug-in installed, validated only be Debian 8 (jessie) or Ubuntu 16.04.1 systems have the package installed, and request-tracker4 must also be apt-get installed (installed version is v4.2.4, not the latest version), or else not recognize the plug-request-tracker4, you will not be prompted to install rt4, another way because apt-get install rt4 final step requires an interactive, so docker mounted can not be used.

 

 5, with: manual installation rt4

Manual installation request-tracker4 step

1) System version Installation 
Debian: Jessie 2) provided installation source CAT
> << /etc/apt/sources.list the EOF the deb HTTP: // mirrors.tuna.tsinghua.edu.cn/debian/ main contrib non-Free Jessie the deb HTTP: // mirrors.tuna.tsinghua.edu.cn/debian/ Jessie contrib non-main-Free Updates the deb HTTP: // mirrors.tuna.tsinghua.edu.cn/debian-security Jessie / Updates main contrib non-Free the EOF APT - GET Update

2) mounted APT
- GET the install -Y NET - Tools Vim APT - GET install -y request-tracker4 rt4-apache2 rt4-clients rt4-db-postgresql apache2-doc lynx postgresql apache2 libapache-dbi-perl fetchmail #安装最后有交互过程 Configuring request-tracker4 Name for this Request Tracker (RT) instance: rt.debian8-55cd77c7dc-z568r Handle RT_SiteConfig.pm permissions? yes Configure database for request-tracker4 with dbconfig-common? yes PostgreSQL application password for request-tracker4: Admin123 Initial root password for RT system: Admin123 Next step for database installation: 4 1. abort 2. retry 3. retry (skip questions) 4. ignore
3) install the LDAP plug 
APT-GET-extension- the install -Y RT4 authenexternalauth

4) start the database 
-Service Start PostgreSQL 
# account management initialization 
SU - Postgres 
the psql 
the ALTER the WITH Postgres the USER PASSWORD ' Admin123 ' ; 
\ Q 

. 5) profile 
CD / etc / request- tracker4 
the chmod 777 RT_SiteConfig.pm
 
# RT_SiteConfig.pm file Add # External Specifications the auth the Set (@Plugins, (QW (RT Authen :: :: ExternalAuth))); the Set ($ ExternalAuthPriority, [
' My_LDAP ' ]); the Set ($ ExternalInfoPriority, [ ' My_LDAP ' ,]); the Set ($ AutoCreateNonExternalUsers , 0); Set($ExternalSettings, { 'My_LDAP' => { 'type' => 'ldap', 'server' => 'ldaps://ldap.wmq.com:636', 'user' => 'cn=manager,dc=wmq,dc=com', 'pass' => '******', 'base' => 'ou=员工,dc=wmq,dc=com', 'filter' => '(objectClass=*)', 'attr_match_list' => [ 'Name', 'EmailAddress', ], 'attr_map' => { 'Name' => 'uid', 'EmailAddress' => 'mail', 'RealName' => 'sn' }, }, }); Set($WebBaseURL, 'http://rt4.wmq.com');

6)配置apache2
vi / etc / apache2 / sites-Enabled / 000-default.conf 
in </ VirtualHost> Add the following two lines:  the Include / etc / Request-tracker4 / apache2- modperl2.conf  RedirectMatch ^ / $ / RT # start apache2 / etc /init.d/ apache2 restart

 Reference: https://www.it610.com/article/3199076.htm

 

Guess you like

Origin www.cnblogs.com/weavepub/p/11592610.html