docker-scripts/linux/ecosystem/testrail/latest/Dockerfile

48 lines
1.6 KiB
Docker
Raw Normal View History

2021-04-01 13:43:06 +03:00
FROM epicmorg/apache2:php7.4
2020-07-30 17:52:12 +03:00
2022-01-25 19:28:57 +03:00
ENV TESTRAIL_VERSION=latest
ENV DOWNLOAD_URL=https://secure.gurock.com/downloads/testrail/testrail-${TESTRAIL_VERSION}-ion72.zip
ENV TESTRAIL_RELEASE_DIR=/testrail-release
2020-07-30 17:52:12 +03:00
ENV TR_DEFAULT_TASK_EXECUTION=60
2022-01-25 16:19:37 +03:00
ENV TR_WWWPATH="/var/www/testrail/"
2020-07-30 17:52:12 +03:00
ENV TR_CONFIGPATH="/var/www/testrail/config/"
2022-01-25 16:19:37 +03:00
ENV TR_CUSTOM_DIR="/var/www/testrail/custom/"
ENV TR_CUSTOM_AUTH_DIR="/var/www/testrail/custom/auth/"
ENV TR_OPTPATH="/opt/testrail/"
2020-07-30 17:52:12 +03:00
ENV TR_DEFAULT_LOG_DIR="/opt/testrail/logs/"
ENV TR_DEFAULT_AUDIT_DIR="/opt/testrail/audit/"
ENV TR_DEFAULT_REPORT_DIR="/opt/testrail/reports/"
ENV TR_DEFAULT_ATTACHMENT_DIR="/opt/testrail/attachments/"
ENV OPENSSL_CONF=/etc/ssl/
RUN \
apt-get update && \
apt-get install -y --no-install-recommends zlib1g-dev libcurl4-gnutls-dev libldap2-dev zlib1g-dev libxml2-dev libfontconfig1 && \
apt-get clean && \
rm -rf /var/lib/apt/lists/* && \
rm -rf /run.sh
RUN \
echo "WGET" && \
mkdir -p /${TESTRAIL_RELEASE_DIR} && \
mkdir -p /var/www/testrail && \
mkdir -p /opt/testrail/attachments /opt/testrail/reports /opt/testrail/logs /opt/testrail/audit && \
2022-01-25 19:28:57 +03:00
wget --no-check-certificate -O ${TESTRAIL_RELEASE_DIR}/testrail.zip ${DOWNLOAD_URL} && \
chown -R www-data:www-data ${TESTRAIL_RELEASE_DIR} && \
unzip -o ${TESTRAIL_RELEASE_DIR}/testrail.zip -d /var/www/ && \
2022-01-25 19:01:36 +03:00
ls -las /var/www/testrail && \
2020-07-30 17:52:12 +03:00
chown -R www-data:www-data /var/www/testrail && \
chown -R www-data:www-data /opt/testrail
2022-01-25 19:28:57 +03:00
COPY apache_testrail.conf ${TESTRAIL_RELEASE_DIR}/apache-conf/000-default.conf
2020-07-30 17:52:12 +03:00
COPY run.sh /run.sh
WORKDIR /var/www/testrail
EXPOSE 80
2022-01-25 19:01:36 +03:00
CMD ["/run.sh"]