1
1
# Louis BAYLE, 2018-10-11
2
- # Version 0.4
3
2
4
- # 2018-10-11: update apache 2.4.25 fur security updates
5
3
# 2020-05-24: update to PHP v7.4
6
4
# 2021-11-11: do not include CodevTT: make it a volume for dev purpose
5
+ # 2021-11-11: update to PHP v8.1
7
6
8
7
FROM centos:centos7
9
8
MAINTAINER Louis BAYLE <
[email protected] >
10
9
11
10
# ====================================================
12
- # Container with Apache, PHP7 , Mantis, CodevTT
11
+ # Container with Apache, PHP8.1 , Mantis, CodevTT
13
12
# ====================================================
14
13
# https://hub.docker.com/r/lbayle/codevtt/
15
14
16
- #note: You'll need one more container : centos/mariadb
17
-
18
15
# ====================================================
19
16
# build
20
17
# ====================================================
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 .
25
19
26
20
# ====================================================
27
- # docker-compose
21
+ # run with docker-compose
28
22
# ====================================================
29
23
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
31
26
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
82
31
83
32
# ====================================================
84
33
@@ -125,8 +74,8 @@ RUN yum -y --setopt=tsflags=nodocs install \
125
74
openssl && \
126
75
yum clean all
127
76
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 \
130
79
php-cli \
131
80
php \
132
81
php-fpm \
@@ -169,7 +118,7 @@ RUN echo "session.gc_maxlifetime = 86400" > /etc/php.d/00-docker-php-session.ini
169
118
# ------------------
170
119
# install MantisBT
171
120
172
- ENV MANTIS_VER 2.25.2
121
+ ENV MANTIS_VER 2.25.8
173
122
ENV MANTIS_URL https://downloads.sourceforge.net/project/mantisbt/mantis-stable/${MANTIS_VER}/mantisbt-${MANTIS_VER}.tar.gz
174
123
ENV MANTIS_FILE mantisbt-${MANTIS_VER}.tar.gz
175
124
@@ -193,7 +142,7 @@ RUN set -xe \
193
142
&& cd /var/www/html/mantis/plugins \
194
143
&& ln -s /var/www/html/codevtt/mantis_plugin/mantis_2_0/CodevTT \
195
144
&& mkdir -p /var/www/html/codevtt \
196
- && mkdir -p /tmp/codevtt \
145
+ && mkdir -p /tmp/codevtt/logs \
197
146
&& chown -R apache:apache /tmp/codevtt \
198
147
&& chown -R apache:apache /var/www/html/codevtt
199
148
@@ -214,9 +163,15 @@ RUN set -xe \
214
163
&& echo -e "\n</Directory>\n" >> /etc/httpd/conf.d/codevtt.conf \
215
164
; done
216
165
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
+
217
172
# ------------------
218
173
# 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
220
175
ADD httpd_config/php.ini /etc
221
176
ADD mantis_config/config_inc.php /var/www/html/mantis/config
222
177
ADD mantis_config/custom_constants_inc.php /var/www/html/mantis/config
0 commit comments