Skip to content

Commit 417a61f

Browse files
committed
update docker config files
1 parent 6d09893 commit 417a61f

10 files changed

+103
-266
lines changed

config/config.ini.sample

+3-2
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ force_lc_numeric = 0
3232
;contact_email = "[email protected]"
3333

3434
[mantis]
35+
; this section is very important, be sure it matches to your MantisBT configuration !
3536
db_table_prefix = "mantis_"
3637
db_table_suffix = "_table"
3738
status_enum_string = "10:new,20:feedback,30:acknowledged,40:analyzed,50:open,80:resolved,82:validated,85:delivered,90:closed,"
@@ -74,7 +75,7 @@ logo_image_0317_0317 = "images/codevtt_logo_03_stpatrick.jpg"
7475
logo_image_0401_0401 = "images/codevtt_logo_03_april_1st.jpg"
7576
logo_image_0621_0621 = "images/codevtt_logo_summer.png"
7677
logo_image_0922_0922 = "images/codevtt_logo_fall.png"
77-
logo_image_1031_1031 = "images/codevtt_logo_03_halloween.png"
78+
logo_image_2431_1031 = "images/codevtt_logo_03_halloween.png"
7879
logo_image_1220_1227 = "images/codevtt_logo_03_christmas.png"
7980

8081
[timesheets]
@@ -92,7 +93,7 @@ Project = "SubmittedResolvedHistoryIndicator,StatusHistoryIndicator2"
9293
Task = "IssueBacklogVariationIndicator"
9394
Team = "AvailableWorkforceIndicator,BacklogPerUserIndicator,LoadPerUserIndicator"
9495
User = "LoadPerProjectIndicator,OngoingTasks"
95-
Command = "ProgressHistoryIndicator2, WBSExport"
96+
Command = "ProgressHistoryIndicator2"
9697
CommandSet = "ProgressHistoryIndicator2"
9798
ServiceContract = "ManagementCosts,ManagementLoadHistoryIndicator"
9899
Import_Export = "ImportIssueCsv"

doc/docker/Dockerfile_dev

+21-66
Original file line numberDiff line numberDiff line change
@@ -1,84 +1,33 @@
11
# Louis BAYLE, 2018-10-11
2-
# Version 0.4
32

4-
# 2018-10-11: update apache 2.4.25 fur security updates
53
# 2020-05-24: update to PHP v7.4
64
# 2021-11-11: do not include CodevTT: make it a volume for dev purpose
5+
# 2021-11-11: update to PHP v8.1
76

87
FROM centos:centos7
98
MAINTAINER Louis BAYLE <[email protected]>
109

1110
# ====================================================
12-
# Container with Apache, PHP7, Mantis, CodevTT
11+
# Container with Apache, PHP8.1, Mantis, CodevTT
1312
# ====================================================
1413
# https://hub.docker.com/r/lbayle/codevtt/
1514

16-
#note: You'll need one more container : centos/mariadb
17-
1815
# ====================================================
1916
# build
2017
# ====================================================
21-
# docker build --rm -t codevtt:dev .
22-
23-
# docker exec -i mariadb mysql -uroot -pmy_password --force bugtracker < mantis_codevtt_freshInstall.sql
24-
# docker exec -it docker-codevtt-1 bash
18+
# docker build --rm -t codevtt:1.8.0 .
2519

2620
# ====================================================
27-
# docker-compose
21+
# run with docker-compose
2822
# ====================================================
2923

30-
# docker exec -i docker-mariadb-1 mysql -uroot -pmy_password --force bugtracker < mantis_codevtt_freshInstall.sql
24+
# docker-compose.yml is here:
25+
# https://github.com/lbayle/codev/blob/master/doc/docker/docker-compose.yml
3126

32-
# ---------------------------------------------------------
33-
# mariadb:
34-
# image: centos/mariadb:latest
35-
# hostname: 'mariadb.fardeloup'
36-
# restart: unless-stopped
37-
# environment:
38-
# - MYSQL_ROOT_PASSWORD=my_password
39-
# - MYSQL_DATABASE=bugtracker
40-
# - MYSQL_USER=mantisbt
41-
# - MYSQL_PASSWORD=mantisbt
42-
# deploy:
43-
# resources:
44-
# limits:
45-
# memory: 1G
46-
#
47-
# ---------------------------------------------------------
48-
# codevtt:
49-
# image: codevtt:dev
50-
# hostname: 'codevtt.fardeloup'
51-
# restart: unless-stopped
52-
# ports:
53-
# - '80:80'
54-
# deploy:
55-
# resources:
56-
# limits:
57-
# memory: 1G
58-
# links:
59-
# - mariadb
60-
# volumes:
61-
# - /data/docker/codevtt/src:/var/www/html/codevtt
62-
# - /data/docker/codevtt/logs:/tmp/codevtt/logs
63-
# - /data/docker/codevtt/mantis/config:/var/www/html/mantis/config
64-
# - /data/docker/codevtt/mantis/plugins:/var/www/html/mantis/plugins
65-
# - /data/docker/codevtt/logs-httpd:/var/log/httpd/
66-
#
67-
# # ---------------------------------------------------------
68-
# phpmyadmin:
69-
# image: phpmyadmin/phpmyadmin
70-
# restart: always
71-
# ports:
72-
# - 8080:80
73-
# environment:
74-
# - PMA_ARBITRARY=1
75-
# - PMA_HOST=mariadb
76-
# - PMA_USER=mantisbt
77-
# - PMA_PASSWORD=mantisbt
78-
# links:
79-
# - mariadb
80-
# volumes:
81-
# - /data/docker/phpmyadmin/config.user.inc.php:/etc/phpmyadmin/config.user.inc.php
27+
# run:
28+
# git clone https://github.com/lbayle/codev.git /data/docker/codevtt/src
29+
# docker-compose up -d
30+
# docker exec -i docker-mariadb-1 mysql -uroot -pmy_password --force bugtracker < mantis_codevtt_freshInstall.sql
8231

8332
# ====================================================
8433

@@ -125,8 +74,8 @@ RUN yum -y --setopt=tsflags=nodocs install \
12574
openssl && \
12675
yum clean all
12776

128-
# Installing PHP 7.4
129-
RUN yum -y --enablerepo=remi-php74 install \
77+
# Installing PHP 8.1
78+
RUN yum -y --enablerepo=remi-php81 install \
13079
php-cli \
13180
php \
13281
php-fpm \
@@ -169,7 +118,7 @@ RUN echo "session.gc_maxlifetime = 86400" > /etc/php.d/00-docker-php-session.ini
169118
# ------------------
170119
# install MantisBT
171120

172-
ENV MANTIS_VER 2.25.2
121+
ENV MANTIS_VER 2.25.8
173122
ENV MANTIS_URL https://downloads.sourceforge.net/project/mantisbt/mantis-stable/${MANTIS_VER}/mantisbt-${MANTIS_VER}.tar.gz
174123
ENV MANTIS_FILE mantisbt-${MANTIS_VER}.tar.gz
175124

@@ -193,7 +142,7 @@ RUN set -xe \
193142
&& cd /var/www/html/mantis/plugins \
194143
&& ln -s /var/www/html/codevtt/mantis_plugin/mantis_2_0/CodevTT \
195144
&& mkdir -p /var/www/html/codevtt \
196-
&& mkdir -p /tmp/codevtt \
145+
&& mkdir -p /tmp/codevtt/logs \
197146
&& chown -R apache:apache /tmp/codevtt \
198147
&& chown -R apache:apache /var/www/html/codevtt
199148

@@ -214,9 +163,15 @@ RUN set -xe \
214163
&& echo -e "\n</Directory>\n" >> /etc/httpd/conf.d/codevtt.conf \
215164
; done
216165

166+
# FIX Invalid command 'CGIPassAuth', perhaps misspelled or defined by a module not included in the server configuration
167+
# => centos:7 is getting too old...
168+
RUN sed -i '/^CGIPassAuth/ s/./#&/' /etc/httpd/conf.d/mantis.conf
169+
170+
RUN sed -i '/^#ServerName/a ServerName codevtt:80' /etc/httpd/conf/httpd.conf
171+
217172
# ------------------
218173
# Adding config files (bugtracker)
219-
ADD httpd_config/ssl.conf /etc/httpd/conf.d/ssl.conf
174+
#ADD httpd_config/ssl.conf /etc/httpd/conf.d/ssl.conf
220175
ADD httpd_config/php.ini /etc
221176
ADD mantis_config/config_inc.php /var/www/html/mantis/config
222177
ADD mantis_config/custom_constants_inc.php /var/www/html/mantis/config

doc/docker/Dockerfile_dev8

-182
This file was deleted.

0 commit comments

Comments
 (0)