2015-05-06 09:11:09 +02:00
|
|
|
#
|
|
|
|
# Dockerfile for mantisbt
|
|
|
|
#
|
|
|
|
|
2015-05-06 08:59:32 +02:00
|
|
|
FROM php:5.5-apache
|
|
|
|
MAINTAINER kev<noreply@datageek.info>
|
|
|
|
|
|
|
|
RUN a2enmod rewrite
|
|
|
|
|
|
|
|
RUN apt-get update && apt-get install -y libpng12-dev libjpeg-dev libpq-dev \
|
2015-05-06 09:18:19 +02:00
|
|
|
&& rm -rf /var/lib/apt/lists/* \
|
|
|
|
&& docker-php-ext-configure gd --with-png-dir=/usr --with-jpeg-dir=/usr \
|
|
|
|
&& docker-php-ext-install gd mbstring pdo pdo_mysql pdo_pgsql
|
2015-05-06 08:59:32 +02:00
|
|
|
|
|
|
|
WORKDIR /var/www/html
|
|
|
|
|
|
|
|
ENV MANTIS_VERSION 1.2.19
|
2015-05-06 09:11:09 +02:00
|
|
|
ENV MANTIS_MD5 8377a0219ec344b9ab9c186012b5114f
|
2015-05-06 08:59:32 +02:00
|
|
|
ENV MANTIS_URL http://jaist.dl.sourceforge.net/project/mantisbt/mantis-stable/${MANTIS_VERSION}/mantisbt-${MANTIS_VERSION}.tar.gz
|
2015-05-06 09:11:09 +02:00
|
|
|
ENV MANTIS_FILE mantisbt.tar.gz
|
2015-05-06 08:59:32 +02:00
|
|
|
|
2015-05-06 09:11:09 +02:00
|
|
|
RUN curl -fSL ${MANTIS_URL} -o ${MANTIS_FILE} \
|
2015-05-06 09:18:19 +02:00
|
|
|
&& echo "${MANTIS_MD5} ${MANTIS_FILE}" | md5sum -c - \
|
|
|
|
&& tar -xz --strip-components=1 -f ${MANTIS_FILE} \
|
|
|
|
&& rm ${MANTIS_FILE} \
|
|
|
|
&& sed -e "/g_hostname/s/'localhost'/'mysql'/" \
|
|
|
|
-e "/g_db_username/s/'mantisdbuser'/'root'/" \
|
|
|
|
-e "/g_db_password/s/''/'root'/" \
|
|
|
|
config_inc.php.sample > config_inc.php
|
|
|
|
&& chown -R www-data:www-data .
|
2015-05-06 09:11:09 +02:00
|
|
|
|