12 Commits

6 changed files with 71 additions and 40 deletions

View File

@@ -23,6 +23,15 @@ ARG MANTISBT_VERSION=2.27.1
ARG MANTISBT='#!/bin/bash \n\ ARG MANTISBT='#!/bin/bash \n\
\n\ \n\
chown -R apache:apache ${APACHE_DOC_ROOT} \n\ chown -R apache:apache ${APACHE_DOC_ROOT} \n\
chmod -R a-x,a+X ${APACHE_DOC_ROOT} \n\
chmod o-rwx ${APACHE_DOC_ROOT} \n\
chmod -R o+rwX ${APACHE_DOC_ROOT}/mantisbt/config \n\
\n\
if [[ "${MANTISBT_ADMIN_ENABLED}" == "FALSE" ]] \n\
then \n\
chown root:root ${APACHE_DOC_ROOT}/mantisbt/admin \n\
mv ${APACHE_DOC_ROOT}/mantisbt/admin ${APACHE_DOC_ROOT}/mantisbt/admin.disabled \n\
fi \n\
\n\ \n\
sed -i -e "s%mailhub=mail%mailhub=${SMTP_SERVER}%" /etc/ssmtp/ssmtp.conf' sed -i -e "s%mailhub=mail%mailhub=${SMTP_SERVER}%" /etc/ssmtp/ssmtp.conf'
#--------------------------------------------------------------------------------------------------- #---------------------------------------------------------------------------------------------------
@@ -38,4 +47,3 @@ RUN urpmi.update -a
&& echo -e "${MANTISBT}" | sed -e "s/\`/'/g" -e 's/ *$//' > /etc/init.d/mantisbt \ && echo -e "${MANTISBT}" | sed -e "s/\`/'/g" -e 's/ *$//' > /etc/init.d/mantisbt \
&& chmod a+x /etc/init.d/mantisbt \ && chmod a+x /etc/init.d/mantisbt \
&& ln -s /etc/init.d/mantisbt /etc/rcD.d/S40mantisbt && ln -s /etc/init.d/mantisbt /etc/rcD.d/S40mantisbt

View File

@@ -5,14 +5,9 @@ Welcome to Rx3-Docker/MantisBT docker image!
This project aims to build a MantisBT docker image. This project aims to build a MantisBT docker image.
Features: Features:
- Curtently based on rx3-docker/php-apache:1.4.0-mga9 & rx3-docker/postgresql:1.1.0-mga9 images, - Curtently based on rx3-docker/php-apache:1.5.3-mga9 & rx3-docker/postgresql:1.1.3-mga9 images,
- Sync with MantisBT 2.27.1. - Sync with MantisBT 2.27.1.
Note:
The following SQL have to been executed on mantisdb with postgres user:
GRANT ALL PRIVILEGES ON ALL TABLES IN SCHEMA public TO mantisbt;
GRANT ALL PRIVILEGES ON ALL SEQUENCES IN SCHEMA public TO mantisbt;
Enjoy it! Enjoy it!

View File

@@ -1,11 +1,33 @@
------------------------------------------------------------------------------------------------------------------------------------ ------------------------------------------------------------------------------------------------------------------------------------
Rx3-Docker/MantisBT V 1.0.1 - A. GIBERT - 2025/03/07 Rx3-Docker/MantisBT V 1.0.3 - A. GIBERT - 2025/03/21
------------------------------------------------------------------------------------------------------------------------------------
- Now use rx3-docker/php-apache:1.5.3-mga9 & rx3-docker/postgresql:1.1.3-mga9 images,
- Fix Version and clean-up variables in env.dist,
- Fix config file permission problem.
------------------------------------------------------------------------------------------------------------------------------------
Rx3-Docker/MantisBT V 1.0.2 - A. GIBERT - 2025/03/10
------------------------------------------------------------------------------------------------------------------------------------
- Now use rx3-docker/postgresql:1.1.2-mga9 image.
------------------------------------------------------------------------------------------------------------------------------------
Rx3-Docker/MantisBT V 1.0.1 - A. GIBERT - 2025/03/08
------------------------------------------------------------------------------------------------------------------------------------ ------------------------------------------------------------------------------------------------------------------------------------
- Add default config in etc/mantisbt/config_inc.php.ref, - Add default config in etc/mantisbt/config_inc.php.ref,
- Add ssmtp program and env variable to allow mail sending, - Add MANTISBT_ADMIN_ENABLED env variable to disable admin directory access,
- Add var/www/mantisbt/images-local volume allowing logo addition,
- Add ssmtp program and SMTP_SERVER env variable to allow mail sending,
- Add php xmlreader & xmlwriter module tu support "Import/Export issues" plugin, - Add php xmlreader & xmlwriter module tu support "Import/Export issues" plugin,
- Switch to docker_tools "mixed" volume mode. - Switch to docker_tools "mixed" volume mode,
- Now use rx3-docker/php-apache:1.5.2-mga9 & rx3-docker/postgresql:1.1.1-mga9 images,
- Set PHP_UPLOAD_LIMIT to 64M.
@@ -14,4 +36,4 @@ Rx3-Docker/MantisBT V 1.0.0 - A. GIBERT - 2025/03/06
------------------------------------------------------------------------------------------------------------------------------------ ------------------------------------------------------------------------------------------------------------------------------------
- Initial release, - Initial release,
- Use based on php-apache:1.4.0-mga9 & postgresql:1.1.0-mga9 images. - Use based on rx3-docker/php-apache:1.4.0-mga9 & rx3-docker/postgresql:1.1.0-mga9 images.

View File

@@ -68,12 +68,14 @@ services:
SERVER_CROND_ENABLED: ${WA_CROND_ENABLED} SERVER_CROND_ENABLED: ${WA_CROND_ENABLED}
APACHE_UID: ${WA_USER_ID} APACHE_UID: ${WA_USER_ID}
APACHE_GID: ${WA_GROUP_ID} APACHE_GID: ${WA_GROUP_ID}
APACHE_DOC_ROOT: ${APACHE_DOC_ROOT} APACHE_DOC_ROOT: ${WA_APACHE_DOC_ROOT}
PHP_UPLOAD_LIMIT: ${WA_PHP_UPLOAD_LIMIT}
SMTP_SERVER: ${SMTP_SERVER} MANTISBT_ADMIN_ENABLED: ${WA_MANTISBT_ADMIN_ENABLED}
WINDOW_TITLE: ${WINDOW_TITLE} SMTP_SERVER: ${WA_SMTP_SERVER}
LOGO_IMG: ${LOGO_IMG} WINDOW_TITLE: ${WA_WINDOW_TITLE}
APPL_URL: ${APPL_URL} LOGO_IMG: ${WA_LOGO_IMG}
APPL_URL: ${WA_APPL_URL}
volumes: volumes:
- ./${WA_LOG_INIT_EXT}:${WA_LOG_INIT_INT} - ./${WA_LOG_INIT_EXT}:${WA_LOG_INIT_INT}
@@ -85,6 +87,7 @@ services:
networks: networks:
- appl - appl
# - internal
ports: ports:
- "127.0.0.1:${WA_PORT_SV_EXT}:${WA_PORT_SV_INT}" - "127.0.0.1:${WA_PORT_SV_EXT}:${WA_PORT_SV_INT}"
@@ -100,3 +103,7 @@ networks:
# config: # config:
# - subnet: 10.2.33.0/24 # - subnet: 10.2.33.0/24
# gateway: 10.2.33.254 # gateway: 10.2.33.254
# internal:
# name: mantisbt-squashtm-internal
# external: true

View File

@@ -20,7 +20,7 @@ APPL_NAME="mantisbt"
APPL_NAME_FULL="Mantis Bug Tracker" APPL_NAME_FULL="Mantis Bug Tracker"
APPL_NAME_SHORT="mantisbt" APPL_NAME_SHORT="mantisbt"
APPL_ORG="rx3-docker" APPL_ORG="rx3-docker"
APPL_VERSION="1.0.1" APPL_VERSION="1.0.3"
APPL_MAINTAINER='"Arnaud G. GIBERT" <arnaud@rx3.net>' APPL_MAINTAINER='"Arnaud G. GIBERT" <arnaud@rx3.net>'
@@ -34,9 +34,6 @@ APPL_MAINTAINER='"Arnaud G. GIBERT" <arnaud@rx3.net>'
#APPL_ENV="int" #APPL_ENV="int"
APPL_ENV="dvp" APPL_ENV="dvp"
MUSIC_REPO="./opt/music"
VIDEO_REPO="./opt/video"
#------------------------------------------------------------------------------- #-------------------------------------------------------------------------------
@@ -63,7 +60,7 @@ PORT_SV_INT=9001
PORT_SV_OFFSET=1000 PORT_SV_OFFSET=1000
NETWORK_NAME=${HOST_NAME_PREFIX} NETWORK_NAME=${HOST_NAME_PREFIX}
NETWORK_IF_NAME=br-${APPL_NAME_SHORT}-${APPL_ENV} NETWORK_IF_NAME=br-${HOST_NAME_PREFIX}
DOCKER_TOOLS_DEBUG=FALSE DOCKER_TOOLS_DEBUG=FALSE
DOCKER_TOOLS_VOLUME=MIXED DOCKER_TOOLS_VOLUME=MIXED
@@ -77,9 +74,9 @@ DOCKER_TOOLS_EXEPTION_LIBS="postgres:pgsql"
# | Prefix | Name | URL Prefix | Name | Name Full | Version | URL Prefix | Name | Version | Name | Version | Ext | Int | Ext | Int | Name / Id | Name / Id | # | Prefix | Name | URL Prefix | Name | Name Full | Version | URL Prefix | Name | Version | Name | Version | Ext | Int | Ext | Int | Name / Id | Name / Id |
#------------------+----------+--------------------------+--------------------+------------------+-------------------------------+----------------------+--------------------+---------------+------------+--------------+------------+-------+-------+-------+-------+--------------+--------------+ #------------------+----------+--------------------------+--------------------+------------------+-------------------------------+----------------------+--------------------+---------------+------------+--------------+------------+-------+-------+-------+-------+--------------+--------------+
docker_service_add DB database ${ORG_URL_PREFIX} postgresql - 1.1.0-mga9 - - - postgres - - 5432 - - postgres postgres docker_service_add DB database ${ORG_URL_PREFIX} postgresql - 1.1.3-mga9 - - - postgres - - 5432 - - postgres postgres
docker_service_add WA webapp ${ORG_URL_PREFIX} mantisbt "Rx3-Docker/MantisBT" ${APPL_VERSION}-mga9 ${ORG_URL_PREFIX} php-apache 1.4.0-mga9 - - 8070 80 - - apache apache docker_service_add WA webapp ${ORG_URL_PREFIX} mantisbt "Rx3-Docker/MantisBT" ${APPL_VERSION}-mga9 ${ORG_URL_PREFIX} php-apache 1.5.3-mga9 - - 8070 80 - - apache apache
@@ -100,30 +97,32 @@ DB_SERVER_NAME="MantisBT"
# WebApp # WebApp
#------------------------------------------------------------------------------- #-------------------------------------------------------------------------------
APACHE_DOC_ROOT=/var/www/html
WA_CROND_ENABLED="FALSE" WA_CROND_ENABLED="FALSE"
WA_APACHE_DOC_ROOT="/var/www/html"
WA_PHP_UPLOAD_LIMIT="64M"
WA_LOG_HTTPD_EXT="./var/log/httpd-webapp" WA_LOG_HTTPD_EXT="./var/log/httpd-webapp"
WA_LOG_HTTPD_INT="/var/log/httpd" WA_LOG_HTTPD_INT="/var/log/httpd"
WA_CONF_EXT=./etc/${APPL_NAME} WA_CONF_EXT=./etc/${APPL_NAME}
WA_CONF_INT=${APACHE_DOC_ROOT}/${APPL_NAME}/config WA_CONF_INT=${WA_APACHE_DOC_ROOT}/${APPL_NAME}/config
docker_config_add ${WA_CONF_EXT}/config_inc.php ${WA_CONF_EXT}/config_inc.php.ref docker_config_add ${WA_CONF_EXT}/config_inc.php ${WA_CONF_EXT}/config_inc.php.ref
SMTP_SERVER="mail.rx3.net" WA_SMTP_SERVER="mail.rx3.net"
WINDOW_TITLE="MantisBT - Arena-SI" WA_WINDOW_TITLE="MantisBT - Arena-SI"
LOGO_IMG="images-local/arena-si.jpg" WA_LOGO_IMG="images-local/arena-si.jpg"
if [[ "${APPL_ENV}" != "prd" ]] if [[ "${APPL_ENV}" != "prd" ]]
then then
APPL_URL="http://localhost:${WA_PORT_MAIN_EXT}/${APPL_NAME}/" WA_APPL_URL="http://localhost:${WA_PORT_MAIN_EXT}/${APPL_NAME}/"
else else
APPL_URL="https://arena-si.fr/tools/${APPL_NAME}/" WA_APPL_URL="https://private.arena-si.fr/tools/${APPL_NAME}/"
fi fi
WA_MANTISBT_ADMIN_ENABLED="TRUE"
#WA_MANTISBT_ADMIN_ENABLED="FALSE"
WA_IMG_EXT=./var/www/html/${APPL_NAME}/images-local WA_IMG_EXT=./var/www/html/${APPL_NAME}/images-local
WA_IMG_INT=${APACHE_DOC_ROOT}/${APPL_NAME}/images-local WA_IMG_INT=${WA_APACHE_DOC_ROOT}/${APPL_NAME}/images-local

View File

@@ -10,7 +10,7 @@ $g_default_timezone = 'Europe/Paris';
$g_crypto_master_salt = 'SJtcO5PYJj9Y4E2RvyEiKEi1NG3pa5KUfLeA/3/hC/0='; $g_crypto_master_salt = 'SJtcO5PYJj9Y4E2RvyEiKEi1NG3pa5KUfLeA/3/hC/0=';
$g_path = '${APPL_URL}'; $g_path = '${WA_APPL_URL}';
# --- Anonymous Access / Signup --- # --- Anonymous Access / Signup ---
$g_allow_signup = OFF; $g_allow_signup = OFF;
@@ -18,6 +18,6 @@ $g_allow_anonymous_login = OFF;
$g_anonymous_account = ''; $g_anonymous_account = '';
# --- Branding --- # --- Branding ---
$g_window_title = '${WINDOW_TITLE}'; $g_window_title = '${WA_WINDOW_TITLE}';
$g_logo_image = 'images/${LOGO_IMG}'; $g_logo_image = '${WA_LOGO_IMG}';
$g_favicon_image = 'images/favicon.ico'; $g_favicon_image = 'images/favicon.ico';