mirror of
https://github.com/EpicMorg/docker-scripts.git
synced 2024-12-25 06:05:37 +03:00
testrail fixes
This commit is contained in:
parent
232be1ea7f
commit
4efd7b680c
@ -1,7 +1,7 @@
|
||||
FROM epicmorg/apache2:php7.4
|
||||
|
||||
ARG TESTRAIL_VERSION=latest
|
||||
ARG DOWNLOAD_URL=https://secure.gurock.com/downloads/testrail/testrail-${TESTRAIL_VERSION}-ion71.zip
|
||||
ARG DOWNLOAD_URL=https://secure.gurock.com/downloads/testrail/testrail-${TESTRAIL_VERSION}-ion72.zip
|
||||
ARG TESTRAIL_RELEASE_DIR=testrail-release
|
||||
|
||||
ENV TR_DEFAULT_TASK_EXECUTION=60
|
6
linux/ecosystem/testrail/ad/docker-compose.yml
Normal file
6
linux/ecosystem/testrail/ad/docker-compose.yml
Normal file
@ -0,0 +1,6 @@
|
||||
version: '3.9'
|
||||
services:
|
||||
app:
|
||||
image: "epicmorg/testrail:auth-ad"
|
||||
build:
|
||||
context: .
|
45
linux/ecosystem/testrail/latest/Dockerfile
Normal file
45
linux/ecosystem/testrail/latest/Dockerfile
Normal file
@ -0,0 +1,45 @@
|
||||
FROM epicmorg/apache2:php7.4
|
||||
|
||||
ARG TESTRAIL_VERSION=latest
|
||||
ARG DOWNLOAD_URL=https://secure.gurock.com/downloads/testrail/testrail-${TESTRAIL_VERSION}-ion72.zip
|
||||
ARG TESTRAIL_RELEASE_DIR=testrail-release
|
||||
|
||||
ENV TR_DEFAULT_TASK_EXECUTION=60
|
||||
ENV TR_WWWPATH="/var/www/testrail/"
|
||||
ENV TR_CONFIGPATH="/var/www/testrail/config/"
|
||||
ENV TR_CUSTOM_DIR="/var/www/testrail/custom/"
|
||||
ENV TR_CUSTOM_AUTH_DIR="/var/www/testrail/custom/auth/"
|
||||
|
||||
ENV TR_OPTPATH="/opt/testrail/"
|
||||
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 && \
|
||||
wget --no-check-certificate -O /${TESTRAIL_RELEASE_DIR}/testrail.zip ${DOWNLOAD_URL} && \
|
||||
chown -R www-data:www-data /${TESTRAIL_RELEASE_DIR} && \
|
||||
chown -R www-data:www-data /var/www/testrail && \
|
||||
chown -R www-data:www-data /opt/testrail
|
||||
|
||||
|
||||
COPY apache_testrail.conf /${TESTRAIL_RELEASE_DIR}/apache-conf/000-default.conf
|
||||
COPY run.sh /run.sh
|
||||
|
||||
WORKDIR /var/www/testrail
|
||||
EXPOSE 80
|
||||
|
||||
CMD ["/run.sh"]
|
19
linux/ecosystem/testrail/latest/Makefile
Normal file
19
linux/ecosystem/testrail/latest/Makefile
Normal file
@ -0,0 +1,19 @@
|
||||
all: app
|
||||
|
||||
app:
|
||||
make build
|
||||
make deploy
|
||||
make clean
|
||||
|
||||
build:
|
||||
docker-compose build --compress --parallel
|
||||
|
||||
deploy:
|
||||
docker-compose push
|
||||
|
||||
clean:
|
||||
docker container prune -f
|
||||
docker image prune -f
|
||||
docker network prune -f
|
||||
docker volume prune -f
|
||||
docker system prune -af
|
36
linux/ecosystem/testrail/latest/README.md
Normal file
36
linux/ecosystem/testrail/latest/README.md
Normal file
@ -0,0 +1,36 @@
|
||||
## Testrail
|
||||
|
||||
* Based on `websites:php7.2` of our ecosystem.
|
||||
|
||||
# Compose example
|
||||
|
||||
```yml
|
||||
version: '3.7'
|
||||
services:
|
||||
testrail:
|
||||
image: epicmorg/testrail
|
||||
# depends_on:
|
||||
# - mysql
|
||||
# - memcached
|
||||
restart: unless-stopped
|
||||
volumes:
|
||||
- /etc/localtime:/etc/localtime
|
||||
- /etc/timezone:/etc/timezone
|
||||
# - /etc/letsencrypt:/etc/letsencrypt
|
||||
- www:/var/www
|
||||
- apache2:/etc/apache2
|
||||
- php:/etc/php
|
||||
restart: unless-stopped
|
||||
# extra_hosts:
|
||||
# - "example.com:192.168.0.11"
|
||||
tmpfs:
|
||||
- /tmp
|
||||
- /var/lib/php/sessions
|
||||
volumes:
|
||||
www:
|
||||
external: true
|
||||
apache2:
|
||||
external: true
|
||||
php:
|
||||
external: true
|
||||
```
|
Loading…
Reference in New Issue
Block a user