From 45ff983f23f7d6928140255d6a7afb3ae11bec51 Mon Sep 17 00:00:00 2001 From: stam Date: Mon, 31 Mar 2025 00:59:45 +0300 Subject: [PATCH] base images hotfixes --- .../epicmorg.base.images.debian.11.yml | 98 ++++ .../epicmorg.base.images.debian.12.yml | 7 + .../epicmorg.base.images.debian.13.yml | 77 +++ .../epicmorg.base.images.debian.sid.yml | 84 ++++ .../epicmorg.base.images.giltab.runners.yml | 445 +++++++++--------- .../epicmorg.base.images.teamcity.agents.yml | 291 ++++++------ .../workflows/epicmorg.base.images.web.yml | 6 + Makefile | 34 +- .../versions/testrail/testrail.php81.txt | 4 +- .../roles/gurock.testrail/tasks/main.yml | 24 +- linux/ecosystem/apache2/php5.5/Dockerfile | 10 + linux/ecosystem/apache2/php5.6/Dockerfile | 43 +- linux/ecosystem/apache2/php7.0/Dockerfile | 23 + linux/ecosystem/apache2/php7.1/Dockerfile | 23 + linux/ecosystem/apache2/php7.2/Dockerfile | 23 + linux/ecosystem/apache2/php7.3/Dockerfile | 23 + linux/ecosystem/apache2/php7.4/Dockerfile | 23 + linux/ecosystem/apache2/php8.0/Dockerfile | 32 +- linux/ecosystem/apache2/php8.1/Dockerfile | 23 + linux/ecosystem/apache2/php8.2/Dockerfile | 23 + linux/ecosystem/apache2/php8.3/Dockerfile | 23 + linux/ecosystem/apache2/php8.4/Dockerfile | 29 +- .../debian/12-bookworm/php/php5.6/Dockerfile | 43 +- .../debian/12-bookworm/php/php7.0/Dockerfile | 30 +- .../debian/12-bookworm/php/php7.1/Dockerfile | 32 +- .../debian/12-bookworm/php/php7.2/Dockerfile | 32 +- .../debian/12-bookworm/php/php7.3/Dockerfile | 32 +- .../debian/12-bookworm/php/php7.4/Dockerfile | 36 +- .../debian/12-bookworm/php/php8.0/Dockerfile | 47 +- .../debian/12-bookworm/php/php8.1/Dockerfile | 32 +- .../debian/12-bookworm/php/php8.2/Dockerfile | 32 +- .../debian/12-bookworm/php/php8.3/Dockerfile | 32 +- .../debian/12-bookworm/php/php8.4/Dockerfile | 40 +- .../nginx/latest/mainline/php/Dockerfile | 25 +- .../teamcity/agent/latest/Dockerfile | 110 ++--- .../etc/supervisor/conf.d/docker-service.conf | 13 + .../teamcity/agent/latest/run-docker.sh | 7 - .../teamcity/agent/latest/run-services.sh | 15 - .../teamcity/agent/minimal/Dockerfile | 56 +++ .../ecosystem/teamcity/agent/minimal/Makefile | 44 ++ .../teamcity/agent/minimal/README.md | 93 ++++ .../teamcity/agent/minimal/docker-compose.yml | 9 + .../etc/supervisor/conf.d/supervisord.conf | 5 + .../etc/supervisor/conf.d/teamcity-agent.conf | 15 + .../teamcity/agent/sbin/entrypoint.sh} | 40 +- .../testrail/8.1.0.6186/ad/Dockerfile | 13 + .../ecosystem/testrail/8.1.0.6186/ad/Makefile | 44 ++ .../testrail/8.1.0.6186/ad/README.md | 35 ++ .../testrail/8.1.0.6186/ad/docker-compose.yml | 5 + .../8.1.0.6186/ad/docker-entrypoint.sh | 80 ++++ .../testrail/8.1.0.6186/ldap/Dockerfile | 13 + .../testrail/8.1.0.6186/ldap/Makefile | 44 ++ .../testrail/8.1.0.6186/ldap/README.md | 35 ++ .../8.1.0.6186/ldap/docker-compose.yml | 5 + .../8.1.0.6186/ldap/docker-entrypoint.sh | 80 ++++ linux/ecosystem/testrail/8.1.0.6186/main/.env | 2 + .../testrail/8.1.0.6186/main/Dockerfile | 65 +++ .../testrail/8.1.0.6186/main/Makefile | 44 ++ .../testrail/8.1.0.6186/main/README.md | 35 ++ .../8.1.0.6186/main/apache_testrail.conf | 16 + .../8.1.0.6186/main/docker-compose.yml | 5 + .../8.1.0.6186/main/docker-entrypoint.sh | 80 ++++ .../testrail/9.0.0.1057/ad/Dockerfile | 13 + .../ecosystem/testrail/9.0.0.1057/ad/Makefile | 44 ++ .../testrail/9.0.0.1057/ad/README.md | 35 ++ .../testrail/9.0.0.1057/ad/docker-compose.yml | 5 + .../9.0.0.1057/ad/docker-entrypoint.sh | 80 ++++ .../testrail/9.0.0.1057/ldap/Dockerfile | 13 + .../testrail/9.0.0.1057/ldap/Makefile | 44 ++ .../testrail/9.0.0.1057/ldap/README.md | 35 ++ .../9.0.0.1057/ldap/docker-compose.yml | 5 + .../9.0.0.1057/ldap/docker-entrypoint.sh | 80 ++++ linux/ecosystem/testrail/9.0.0.1057/main/.env | 2 + .../testrail/9.0.0.1057/main/Dockerfile | 65 +++ .../testrail/9.0.0.1057/main/Makefile | 44 ++ .../testrail/9.0.0.1057/main/README.md | 35 ++ .../9.0.0.1057/main/apache_testrail.conf | 16 + .../9.0.0.1057/main/docker-compose.yml | 5 + .../9.0.0.1057/main/docker-entrypoint.sh | 80 ++++ 79 files changed, 2831 insertions(+), 559 deletions(-) create mode 100644 linux/ecosystem/teamcity/agent/latest/etc/supervisor/conf.d/docker-service.conf delete mode 100755 linux/ecosystem/teamcity/agent/latest/run-docker.sh delete mode 100755 linux/ecosystem/teamcity/agent/latest/run-services.sh create mode 100644 linux/ecosystem/teamcity/agent/minimal/Dockerfile create mode 100644 linux/ecosystem/teamcity/agent/minimal/Makefile create mode 100644 linux/ecosystem/teamcity/agent/minimal/README.md create mode 100644 linux/ecosystem/teamcity/agent/minimal/docker-compose.yml create mode 100644 linux/ecosystem/teamcity/agent/minimal/etc/supervisor/conf.d/supervisord.conf create mode 100644 linux/ecosystem/teamcity/agent/minimal/etc/supervisor/conf.d/teamcity-agent.conf rename linux/ecosystem/teamcity/agent/{latest/run-agent.sh => minimal/usr/local/share/epicmorg/teamcity/agent/sbin/entrypoint.sh} (75%) mode change 100755 => 100644 create mode 100644 linux/ecosystem/testrail/8.1.0.6186/ad/Dockerfile create mode 100644 linux/ecosystem/testrail/8.1.0.6186/ad/Makefile create mode 100644 linux/ecosystem/testrail/8.1.0.6186/ad/README.md create mode 100644 linux/ecosystem/testrail/8.1.0.6186/ad/docker-compose.yml create mode 100755 linux/ecosystem/testrail/8.1.0.6186/ad/docker-entrypoint.sh create mode 100644 linux/ecosystem/testrail/8.1.0.6186/ldap/Dockerfile create mode 100644 linux/ecosystem/testrail/8.1.0.6186/ldap/Makefile create mode 100644 linux/ecosystem/testrail/8.1.0.6186/ldap/README.md create mode 100644 linux/ecosystem/testrail/8.1.0.6186/ldap/docker-compose.yml create mode 100755 linux/ecosystem/testrail/8.1.0.6186/ldap/docker-entrypoint.sh create mode 100644 linux/ecosystem/testrail/8.1.0.6186/main/.env create mode 100644 linux/ecosystem/testrail/8.1.0.6186/main/Dockerfile create mode 100644 linux/ecosystem/testrail/8.1.0.6186/main/Makefile create mode 100644 linux/ecosystem/testrail/8.1.0.6186/main/README.md create mode 100644 linux/ecosystem/testrail/8.1.0.6186/main/apache_testrail.conf create mode 100644 linux/ecosystem/testrail/8.1.0.6186/main/docker-compose.yml create mode 100755 linux/ecosystem/testrail/8.1.0.6186/main/docker-entrypoint.sh create mode 100644 linux/ecosystem/testrail/9.0.0.1057/ad/Dockerfile create mode 100644 linux/ecosystem/testrail/9.0.0.1057/ad/Makefile create mode 100644 linux/ecosystem/testrail/9.0.0.1057/ad/README.md create mode 100644 linux/ecosystem/testrail/9.0.0.1057/ad/docker-compose.yml create mode 100755 linux/ecosystem/testrail/9.0.0.1057/ad/docker-entrypoint.sh create mode 100644 linux/ecosystem/testrail/9.0.0.1057/ldap/Dockerfile create mode 100644 linux/ecosystem/testrail/9.0.0.1057/ldap/Makefile create mode 100644 linux/ecosystem/testrail/9.0.0.1057/ldap/README.md create mode 100644 linux/ecosystem/testrail/9.0.0.1057/ldap/docker-compose.yml create mode 100755 linux/ecosystem/testrail/9.0.0.1057/ldap/docker-entrypoint.sh create mode 100644 linux/ecosystem/testrail/9.0.0.1057/main/.env create mode 100644 linux/ecosystem/testrail/9.0.0.1057/main/Dockerfile create mode 100644 linux/ecosystem/testrail/9.0.0.1057/main/Makefile create mode 100644 linux/ecosystem/testrail/9.0.0.1057/main/README.md create mode 100644 linux/ecosystem/testrail/9.0.0.1057/main/apache_testrail.conf create mode 100644 linux/ecosystem/testrail/9.0.0.1057/main/docker-compose.yml create mode 100755 linux/ecosystem/testrail/9.0.0.1057/main/docker-entrypoint.sh diff --git a/.github/workflows/epicmorg.base.images.debian.11.yml b/.github/workflows/epicmorg.base.images.debian.11.yml index c048c7709..ab5a25592 100644 --- a/.github/workflows/epicmorg.base.images.debian.11.yml +++ b/.github/workflows/epicmorg.base.images.debian.11.yml @@ -46,12 +46,26 @@ jobs: - name: "Build and Deploy Debian 11 LTS Python 3.9:" run: cd `pwd`/linux/ecosystem/epicmorg/debian/11-bullseye/python/3.9 && pwd && make build && make deploy +################################################################################## + + - name: Cleanup + run: make clean + +################################################################################## + - name: "Build and Deploy Debian 11 LTS Python 3.10:" run: cd `pwd`/linux/ecosystem/epicmorg/debian/11-bullseye/python/3.10 && pwd && make build && make deploy - name: "Build and Deploy Debian 11 LTS Python 3.11:" run: cd `pwd`/linux/ecosystem/epicmorg/debian/11-bullseye/python/3.11 && pwd && make build && make deploy +################################################################################## + + - name: Cleanup + run: make clean + +################################################################################## + - name: "Build and Deploy Debian 11 LTS Python 3.12:" run: cd `pwd`/linux/ecosystem/epicmorg/debian/11-bullseye/python/3.12 && pwd && make build && make deploy @@ -98,6 +112,13 @@ jobs: - name: "Build and Deploy Debian 11 LTS jdk17 Image:" run: cd linux/ecosystem/epicmorg/debian/11-bullseye/jdk/jdk17 && pwd && make build && make deploy +################################################################################## + + - name: Cleanup + run: make clean + +################################################################################## + - name: "Build and Deploy Debian 11 LTS jdk18 Image:" run: cd linux/ecosystem/epicmorg/debian/11-bullseye/jdk/jdk18 && pwd && make build && make deploy @@ -124,9 +145,23 @@ jobs: - name: "Build and Deploy Debian 11 LTS jdk21 Image:" run: cd linux/ecosystem/epicmorg/debian/11-bullseye/jdk/jdk21 && pwd && make build && make deploy +################################################################################## + + - name: Cleanup + run: make clean + +################################################################################## + - name: "Build and Deploy Debian 11 LTS jdk22 Image:" run: cd linux/ecosystem/epicmorg/debian/11-bullseye/jdk/jdk22 && pwd && make build && make deploy +################################################################################## + + - name: Cleanup + run: make clean + +################################################################################## + - name: "Build and Deploy Debian 11 LTS jdk23 Image:" run: cd linux/ecosystem/epicmorg/debian/11-bullseye/jdk/jdk23 && pwd && make build && make deploy @@ -154,12 +189,26 @@ jobs: - name: "Build and Deploy Debian 11 NodeJS 5 Image:" run: cd linux/ecosystem/epicmorg/debian/11-bullseye/nodejs/node5 && pwd && make build && make deploy +################################################################################## + + - name: Cleanup + run: make clean + +################################################################################## + - name: "Build and Deploy Debian 11 NodeJS 6 Image:" run: cd linux/ecosystem/epicmorg/debian/11-bullseye/nodejs/node6 && pwd && make build && make deploy - name: "Build and Deploy Debian 11 NodeJS 7 Image:" run: cd linux/ecosystem/epicmorg/debian/11-bullseye/nodejs/node7 && pwd && make build && make deploy +################################################################################## + + - name: Cleanup + run: make clean + +################################################################################## + - name: "Build and Deploy Debian 11 NodeJS 8 Image:" run: cd linux/ecosystem/epicmorg/debian/11-bullseye/nodejs/node8 && pwd && make build && make deploy @@ -182,6 +231,13 @@ jobs: - name: "Build and Deploy Debian 11 NodeJS 12 Image:" run: cd linux/ecosystem/epicmorg/debian/11-bullseye/nodejs/node12 && pwd && make build && make deploy +################################################################################## + + - name: Cleanup + run: make clean + +################################################################################## + - name: "Build and Deploy Debian 11 NodeJS 13 Image:" run: cd linux/ecosystem/epicmorg/debian/11-bullseye/nodejs/node13 && pwd && make build && make deploy @@ -207,6 +263,13 @@ jobs: - name: "Build and Deploy Debian 11 NodeJS 18 Image:" run: cd linux/ecosystem/epicmorg/debian/11-bullseye/nodejs/node18 && pwd && make build && make deploy +################################################################################## + + - name: Cleanup + run: make clean + +################################################################################## + - name: "Build and Deploy Debian 11 NodeJS 19 Image:" run: cd linux/ecosystem/epicmorg/debian/11-bullseye/nodejs/node19 && pwd && make build && make deploy @@ -216,6 +279,13 @@ jobs: - name: "Build and Deploy Debian 11 NodeJS 21 Image:" run: cd linux/ecosystem/epicmorg/debian/11-bullseye/nodejs/node21 && pwd && make build && make deploy +################################################################################## + + - name: Cleanup + run: make clean + +################################################################################## + - name: "Build and Deploy Debian 11 NodeJS 22 Image:" run: cd linux/ecosystem/epicmorg/debian/11-bullseye/nodejs/node22 && pwd && make build && make deploy @@ -235,17 +305,45 @@ jobs: - name: "Build and Deploy Debian 11 dotNet STS Image:" run: cd linux/ecosystem/epicmorg/debian/11-bullseye/dotnet/sts && pwd && make build && make deploy +################################################################################## + + - name: Cleanup + run: make clean + +################################################################################## + - name: "Build and Deploy Debian 11 dotNet 5 Image:" run: cd linux/ecosystem/epicmorg/debian/11-bullseye/dotnet/dotnet5 && pwd && make build && make deploy - name: "Build and Deploy Debian 11 dotNet 6 Image:" run: cd linux/ecosystem/epicmorg/debian/11-bullseye/dotnet/dotnet6 && pwd && make build && make deploy +################################################################################## + + - name: Cleanup + run: make clean + +################################################################################## + - name: "Build and Deploy Debian 11 dotNet 7 Image:" run: cd linux/ecosystem/epicmorg/debian/11-bullseye/dotnet/dotnet7 && pwd && make build && make deploy - name: "Build and Deploy Debian 11 dotNet 8 Image:" run: cd linux/ecosystem/epicmorg/debian/11-bullseye/dotnet/dotnet8 && pwd && make build && make deploy +################################################################################## + + - name: Cleanup + run: make clean + +################################################################################## + - name: "Build and Deploy Debian 11 dotNet 9 Image:" run: cd linux/ecosystem/epicmorg/debian/11-bullseye/dotnet/dotnet9 && pwd && make build && make deploy + +################################################################################## + + - name: Cleanup + run: make clean + +################################################################################## diff --git a/.github/workflows/epicmorg.base.images.debian.12.yml b/.github/workflows/epicmorg.base.images.debian.12.yml index c93b2771f..e8ccbb017 100644 --- a/.github/workflows/epicmorg.base.images.debian.12.yml +++ b/.github/workflows/epicmorg.base.images.debian.12.yml @@ -82,6 +82,13 @@ jobs: - name: "Build and Deploy Debian 12 PHP 7.0 Image:" run: cd linux/ecosystem/epicmorg/debian/12-bookworm/php/php7.0 && pwd && make build && make deploy +################################################################################## + + - name: Cleanup + run: make clean + +################################################################################## + - name: "Build and Deploy Debian 12 PHP 7.1 Image:" run: cd linux/ecosystem/epicmorg/debian/12-bookworm/php/php7.1 && pwd && make build && make deploy diff --git a/.github/workflows/epicmorg.base.images.debian.13.yml b/.github/workflows/epicmorg.base.images.debian.13.yml index 8710f5529..031b9830f 100644 --- a/.github/workflows/epicmorg.base.images.debian.13.yml +++ b/.github/workflows/epicmorg.base.images.debian.13.yml @@ -46,12 +46,26 @@ jobs: - name: "Build and Deploy Debian 13 Python 3.9:" run: cd `pwd`/linux/ecosystem/epicmorg/debian/13-trixie/python/3.9 && pwd && make build && make deploy +################################################################################## + + - name: Cleanup + run: make clean + +################################################################################## + - name: "Build and Deploy Debian 13 Python 3.10:" run: cd `pwd`/linux/ecosystem/epicmorg/debian/13-trixie/python/3.10 && pwd && make build && make deploy - name: "Build and Deploy Debian 13 Python 3.11:" run: cd `pwd`/linux/ecosystem/epicmorg/debian/13-trixie/python/3.11 && pwd && make build && make deploy +################################################################################## + + - name: Cleanup + run: make clean + +################################################################################## + - name: "Build and Deploy Debian 13 Python 3.12:" run: cd `pwd`/linux/ecosystem/epicmorg/debian/13-trixie/python/3.12 && pwd && make build && make deploy @@ -123,9 +137,23 @@ jobs: - name: "Build and Deploy Debian 13 jdk21 Image:" run: cd linux/ecosystem/epicmorg/debian/13-trixie/jdk/jdk21 && pwd && make build && make deploy +################################################################################## + + - name: Cleanup + run: make clean + +################################################################################## + - name: "Build and Deploy Debian 13 jdk22 Image:" run: cd linux/ecosystem/epicmorg/debian/13-trixie/jdk/jdk22 && pwd && make build && make deploy +################################################################################## + + - name: Cleanup + run: make clean + +################################################################################## + - name: "Build and Deploy Debian 13 jdk23 Image:" run: cd linux/ecosystem/epicmorg/debian/13-trixie/jdk/jdk23 && pwd && make build && make deploy @@ -153,12 +181,26 @@ jobs: - name: "Build and Deploy Debian 13 NodeJS 5 Image:" run: cd linux/ecosystem/epicmorg/debian/13-trixie/nodejs/node5 && pwd && make build && make deploy +################################################################################## + + - name: Cleanup + run: make clean + +################################################################################## + - name: "Build and Deploy Debian 13 NodeJS 6 Image:" run: cd linux/ecosystem/epicmorg/debian/13-trixie/nodejs/node6 && pwd && make build && make deploy - name: "Build and Deploy Debian 13 NodeJS 7 Image:" run: cd linux/ecosystem/epicmorg/debian/13-trixie/nodejs/node7 && pwd && make build && make deploy +################################################################################## + + - name: Cleanup + run: make clean + +################################################################################## + - name: "Build and Deploy Debian 13 NodeJS 8 Image:" run: cd linux/ecosystem/epicmorg/debian/13-trixie/nodejs/node8 && pwd && make build && make deploy @@ -181,6 +223,13 @@ jobs: - name: "Build and Deploy Debian 13 NodeJS 12 Image:" run: cd linux/ecosystem/epicmorg/debian/13-trixie/nodejs/node12 && pwd && make build && make deploy +################################################################################## + + - name: Cleanup + run: make clean + +################################################################################## + - name: "Build and Deploy Debian 13 NodeJS 13 Image:" run: cd linux/ecosystem/epicmorg/debian/13-trixie/nodejs/node13 && pwd && make build && make deploy @@ -209,6 +258,13 @@ jobs: - name: "Build and Deploy Debian 13 NodeJS 19 Image:" run: cd linux/ecosystem/epicmorg/debian/13-trixie/nodejs/node19 && pwd && make build && make deploy +################################################################################## + + - name: Cleanup + run: make clean + +################################################################################## + - name: "Build and Deploy Debian 13 NodeJS 20 Image:" run: cd linux/ecosystem/epicmorg/debian/13-trixie/nodejs/node20 && pwd && make build && make deploy @@ -234,18 +290,39 @@ jobs: - name: "Build and Deploy Debian 13 dotNet STS Image:" run: cd linux/ecosystem/epicmorg/debian/13-trixie/dotnet/sts && pwd && make build && make deploy +################################################################################## + + - name: Cleanup + run: make clean + +################################################################################## + - name: "Build and Deploy Debian 13 dotNet 5 Image:" run: cd linux/ecosystem/epicmorg/debian/13-trixie/dotnet/dotnet5 && pwd && make build && make deploy - name: "Build and Deploy Debian 13 dotNet 6 Image:" run: cd linux/ecosystem/epicmorg/debian/13-trixie/dotnet/dotnet6 && pwd && make build && make deploy +################################################################################## + + - name: Cleanup + run: make clean + +################################################################################## + - name: "Build and Deploy Debian 13 dotNet 7 Image:" run: cd linux/ecosystem/epicmorg/debian/13-trixie/dotnet/dotnet7 && pwd && make build && make deploy - name: "Build and Deploy Debian 13 dotNet 8 Image:" run: cd linux/ecosystem/epicmorg/debian/13-trixie/dotnet/dotnet8 && pwd && make build && make deploy +################################################################################## + + - name: Cleanup + run: make clean + +################################################################################## + - name: "Build and Deploy Debian 13 dotNet 9 Image:" run: cd linux/ecosystem/epicmorg/debian/13-trixie/dotnet/dotnet9 && pwd && make build && make deploy diff --git a/.github/workflows/epicmorg.base.images.debian.sid.yml b/.github/workflows/epicmorg.base.images.debian.sid.yml index c57264135..1550c3a6f 100644 --- a/.github/workflows/epicmorg.base.images.debian.sid.yml +++ b/.github/workflows/epicmorg.base.images.debian.sid.yml @@ -49,12 +49,26 @@ jobs: - name: "Build and Deploy Debian SID Python 3.10:" run: cd `pwd`/linux/ecosystem/epicmorg/debian/sid/python/3.10 && pwd && make build && make deploy +################################################################################## + + - name: Cleanup + run: make clean + +################################################################################## + - name: "Build and Deploy Debian SID Python 3.11:" run: cd `pwd`/linux/ecosystem/epicmorg/debian/sid/python/3.11 && pwd && make build && make deploy - name: "Build and Deploy Debian SID Python 3.12:" run: cd `pwd`/linux/ecosystem/epicmorg/debian/sid/python/3.12 && pwd && make build && make deploy +################################################################################## + + - name: Cleanup + run: make clean + +################################################################################## + - name: "Build and Deploy Debian SID Python 3.12:" run: cd `pwd`/linux/ecosystem/epicmorg/debian/sid/python/3.13 && pwd && make build && make deploy @@ -120,12 +134,33 @@ jobs: - name: "Build and Deploy Debian SID jdk20 Image:" run: cd linux/ecosystem/epicmorg/debian/sid/jdk/jdk20 && pwd && make build && make deploy +################################################################################## + + - name: Cleanup + run: make clean + +################################################################################## + - name: "Build and Deploy Debian SID jdk21 Image:" run: cd linux/ecosystem/epicmorg/debian/sid/jdk/jdk21 && pwd && make build && make deploy +################################################################################## + + - name: Cleanup + run: make clean + +################################################################################## + - name: "Build and Deploy Debian SID jdk22 Image:" run: cd linux/ecosystem/epicmorg/debian/sid/jdk/jdk22 && pwd && make build && make deploy +################################################################################## + + - name: Cleanup + run: make clean + +################################################################################## + - name: "Build and Deploy Debian SID jdk23 Image:" run: cd linux/ecosystem/epicmorg/debian/sid/jdk/jdk23 && pwd && make build && make deploy @@ -153,6 +188,13 @@ jobs: - name: "Build and Deploy Debian SID NodeJS 5 Image:" run: cd linux/ecosystem/epicmorg/debian/sid/nodejs/node5 && pwd && make build && make deploy +################################################################################## + + - name: Cleanup + run: make clean + +################################################################################## + - name: "Build and Deploy Debian SID NodeJS 6 Image:" run: cd linux/ecosystem/epicmorg/debian/sid/nodejs/node6 && pwd && make build && make deploy @@ -181,6 +223,13 @@ jobs: - name: "Build and Deploy Debian SID NodeJS 12 Image:" run: cd linux/ecosystem/epicmorg/debian/sid/nodejs/node12 && pwd && make build && make deploy +################################################################################## + + - name: Cleanup + run: make clean + +################################################################################## + - name: "Build and Deploy Debian SID NodeJS 13 Image:" run: cd linux/ecosystem/epicmorg/debian/sid/nodejs/node13 && pwd && make build && make deploy @@ -206,6 +255,13 @@ jobs: - name: "Build and Deploy Debian SID NodeJS 18 Image:" run: cd linux/ecosystem/epicmorg/debian/sid/nodejs/node18 && pwd && make build && make deploy +################################################################################## + + - name: Cleanup + run: make clean + +################################################################################## + - name: "Build and Deploy Debian SID NodeJS 19 Image:" run: cd linux/ecosystem/epicmorg/debian/sid/nodejs/node19 && pwd && make build && make deploy @@ -215,6 +271,13 @@ jobs: - name: "Build and Deploy Debian SID NodeJS 21 Image:" run: cd linux/ecosystem/epicmorg/debian/sid/nodejs/node21 && pwd && make build && make deploy +################################################################################## + + - name: Cleanup + run: make clean + +################################################################################## + - name: "Build and Deploy Debian SID NodeJS 22 Image:" run: cd linux/ecosystem/epicmorg/debian/sid/nodejs/node22 && pwd && make build && make deploy @@ -234,18 +297,39 @@ jobs: - name: "Build and Deploy Debian SID dotNet STS Image:" run: cd linux/ecosystem/epicmorg/debian/sid/dotnet/sts && pwd && make build && make deploy +################################################################################## + + - name: Cleanup + run: make clean + +################################################################################## + - name: "Build and Deploy Debian SID dotNet 5 Image:" run: cd linux/ecosystem/epicmorg/debian/sid/dotnet/dotnet5 && pwd && make build && make deploy - name: "Build and Deploy Debian SID dotNet 6 Image:" run: cd linux/ecosystem/epicmorg/debian/sid/dotnet/dotnet6 && pwd && make build && make deploy +################################################################################## + + - name: Cleanup + run: make clean + +################################################################################## + - name: "Build and Deploy Debian SID dotNet 7 Image:" run: cd linux/ecosystem/epicmorg/debian/sid/dotnet/dotnet7 && pwd && make build && make deploy - name: "Build and Deploy Debian SID dotNet 8 Image:" run: cd linux/ecosystem/epicmorg/debian/sid/dotnet/dotnet8 && pwd && make build && make deploy +################################################################################## + + - name: Cleanup + run: make clean + +################################################################################## + - name: "Build and Deploy Debian SID dotNet 9 Image:" run: cd linux/ecosystem/epicmorg/debian/sid/dotnet/dotnet9 && pwd && make build && make deploy diff --git a/.github/workflows/epicmorg.base.images.giltab.runners.yml b/.github/workflows/epicmorg.base.images.giltab.runners.yml index e9de852a4..e2557035b 100644 --- a/.github/workflows/epicmorg.base.images.giltab.runners.yml +++ b/.github/workflows/epicmorg.base.images.giltab.runners.yml @@ -30,225 +30,226 @@ jobs: - name: "Build and Deploy Gitlab Runner Main Image:" run: cd linux/ecosystem/gitlab/runner/latest && pwd && make build && make deploy -################################################################################## - - build-glr-other-images: - name: Build EpicMorg Gitlab Runner Oter Images - runs-on: ubuntu-24.04 - needs: build-glr-main-images - - steps: - - uses: actions/checkout@v4 - - name: Log into registry - run: echo "${{ secrets.DOCKER_SERVER_KEY }}" | docker login -u "${{ secrets.DOCKER_SERVER_LOGIN }}" --password-stdin - - - name: Install buildah - run: | - buildah --version - buildah info - - - name: Test Make - run: make - - - name: Install requirements.txt - run: make pip - - - name: "Build and Deploy Gitlab Runner amxX 1.9 SDK Image:" - run: cd linux/ecosystem/gitlab/runner/amxx-sdk/1.9 && pwd && make build && make deploy - - - name: "Build and Deploy Gitlab Runner amxX 1.10 SDK Image:" - run: cd linux/ecosystem/gitlab/runner/amxx-sdk/1.10 && pwd && make build && make deploy - -################################################################################## - - - name: Cleanup - run: make clean - -################################################################################## - - - name: "Build and Deploy Gitlab Runner Android SDK Image (jdk8):" - run: cd linux/ecosystem/gitlab/runner/android-sdk/jdk8 && pwd && make build && make deploy - -################################################################################## - - - name: Cleanup - run: make clean - -################################################################################## - - - name: "Build and Deploy Gitlab Runner Android SDK Image (jdk11):" - run: cd linux/ecosystem/gitlab/runner/android-sdk/jdk11 && pwd && make build && make deploy - -################################################################################## - - - name: Cleanup - run: make clean - -################################################################################## - - - name: "Build and Deploy Gitlab Runner Android SDK Image (jdk17):" - run: cd linux/ecosystem/gitlab/runner/android-sdk/jdk17 && pwd && make build && make deploy - -################################################################################## - - - name: Cleanup - run: make clean - -################################################################################## - - - name: "Build and Deploy Gitlab Runner Atlassian SDK Image:" - run: cd linux/ecosystem/gitlab/runner/atlassian-sdk && pwd && make build && make deploy - -################################################################################## - - - name: Cleanup - run: make clean - -################################################################################## - - - name: "Build and Deploy Gitlab Runner dotNet SDK Image:" - run: cd linux/ecosystem/gitlab/runner/dotnet-sdk && pwd && make build && make deploy - - - name: "Build and Deploy Gitlab Runner node0.12 Image:" - run: cd linux/ecosystem/gitlab/runner/node0.12 && pwd && make build && make deploy - - - name: "Build and Deploy Gitlab Runner node4 Image:" - run: cd linux/ecosystem/gitlab/runner/node4 && pwd && make build && make deploy - -################################################################################## - - - name: Cleanup - run: make clean - -################################################################################## -# -# - name: "Build and Deploy Gitlab Runner node5 Image:" -# run: cd linux/ecosystem/gitlab/runner/node5 && pwd && make build && make deploy -# -# - name: "Build and Deploy Gitlab Runner node6 Image:" -# run: cd linux/ecosystem/gitlab/runner/node6 && pwd && make build && make deploy -# -# - name: "Build and Deploy Gitlab Runner node7 Image:" -# run: cd linux/ecosystem/gitlab/runner/node7 && pwd && make build && make deploy -# -# ################################################################################## -# -# - name: Cleanup -# run: make clean -# -# ################################################################################## -# -# - name: "Build and Deploy Gitlab Runner node8 Image:" -# run: cd linux/ecosystem/gitlab/runner/node8 && pwd && make build && make deploy -# -# - name: "Build and Deploy Gitlab Runner node9 Image:" -# run: cd linux/ecosystem/gitlab/runner/node9 && pwd && make build && make deploy -# -# - name: "Build and Deploy Gitlab Runner node10 Image:" -# run: cd linux/ecosystem/gitlab/runner/node10 && pwd && make build && make deploy -# -# ################################################################################## -# -# - name: Cleanup -# run: make clean -# -# ################################################################################## -# -# - name: "Build and Deploy Gitlab Runner node11 Image:" -# run: cd linux/ecosystem/gitlab/runner/node11 && pwd && make build && make deploy -# -# - name: "Build and Deploy Gitlab Runner node12 Image:" -# run: cd linux/ecosystem/gitlab/runner/node12 && pwd && make build && make deploy -# -# - name: "Build and Deploy Gitlab Runner node13 Image:" -# run: cd linux/ecosystem/gitlab/runner/node13 && pwd && make build && make deploy -# -# ################################################################################## -# -# - name: Cleanup -# run: make clean -# -# ################################################################################## -# -# - name: "Build and Deploy Gitlab Runner node14 Image:" -# run: cd linux/ecosystem/gitlab/runner/node14 && pwd && make build && make deploy -# -# - name: "Build and Deploy Gitlab Runner node15 Image:" -# run: cd linux/ecosystem/gitlab/runner/node15 && pwd && make build && make deploy -# -# -# ################################################################################## -# -# - name: Cleanup -# run: make clean -# -# ################################################################################## -# -# - name: "Build and Deploy Gitlab Runner node16 Image:" -# run: cd linux/ecosystem/gitlab/runner/node16 && pwd && make build && make deploy -# -# - name: "Build and Deploy Gitlab Runner node17 Image:" -# run: cd linux/ecosystem/gitlab/runner/node17 && pwd && make build && make deploy -# -# - name: "Build and Deploy Gitlab Runner node18 Image:" -# run: cd linux/ecosystem/gitlab/runner/node18 && pwd && make build && make deploy -# -# ################################################################################## -# -# - name: Cleanup -# run: make clean -# -# ################################################################################## -# -# - name: "Build and Deploy Gitlab Runner node19 Image:" -# run: cd linux/ecosystem/gitlab/runner/node19 && pwd && make build && make deploy -# -# - name: "Build and Deploy Gitlab Runner node20 Image:" -# run: cd linux/ecosystem/gitlab/runner/node20 && pwd && make build && make deploy -# -# - name: "Build and Deploy Gitlab Runner node21 Image:" -# run: cd linux/ecosystem/gitlab/runner/node21 && pwd && make build && make deploy -# -# - name: "Build and Deploy Gitlab Runner node22 Image:" -# run: cd linux/ecosystem/gitlab/runner/node22 && pwd && make build && make deploy -# -# ################################################################################## -# -# - name: Cleanup -# run: make clean -# -# ################################################################################## -# -# - name: "Build and Deploy Gitlab Runner php7.2 Image:" -# run: cd linux/ecosystem/gitlab/runner/php7.2 && pwd && make build && make deploy -# -# - name: "Build and Deploy Gitlab Runner php7.3 Image:" -# run: cd linux/ecosystem/gitlab/runner/php7.3 && pwd && make build && make deploy -# -# - name: "Build and Deploy Gitlab Runner php7.4 Image:" -# run: cd linux/ecosystem/gitlab/runner/php7.4 && pwd && make build && make deploy -# -# -# ################################################################################## -# -# - name: Cleanup -# run: make clean -# -# ################################################################################## -# -# - name: "Build and Deploy Gitlab Runner php8.0 Image:" -# run: cd linux/ecosystem/gitlab/runner/php8.0 && pwd && make build && make deploy -# -# - name: "Build and Deploy Gitlab Runner php8.1 Image:" -# run: cd linux/ecosystem/gitlab/runner/php8.1 && pwd && make build && make deploy -# -# - name: "Build and Deploy Gitlab Runner php8.2 Image:" -# run: cd linux/ecosystem/gitlab/runner/php8.2 && pwd && make build && make deploy -# -# - name: "Build and Deploy Gitlab Runner php8.3 Image:" -# run: cd linux/ecosystem/gitlab/runner/php8.3 && pwd && make build && make deploy -# -# - name: "Build and Deploy Gitlab Runner Steam SDK Image:" -# run: cd linux/ecosystem/gitlab/runner/steam-sdk && pwd && make build && make deploy -# -# ################################################################################## +################################################################################### +# +# build-glr-other-images: +# name: Build EpicMorg Gitlab Runner Oter Images +# runs-on: ubuntu-24.04 +# needs: build-glr-main-images +# +# steps: +# - uses: actions/checkout@v4 +# - name: Log into registry +# run: echo "${{ secrets.DOCKER_SERVER_KEY }}" | docker login -u "${{ secrets.DOCKER_SERVER_LOGIN }}" --password-stdin +# +# - name: Install buildah +# run: | +# buildah --version +# buildah info +# +# - name: Test Make +# run: make +# +# - name: Install requirements.txt +# run: make pip +# +# - name: "Build and Deploy Gitlab Runner amxX 1.9 SDK Image:" +# run: cd linux/ecosystem/gitlab/runner/amxx-sdk/1.9 && pwd && make build && make deploy +# +# - name: "Build and Deploy Gitlab Runner amxX 1.10 SDK Image:" +# run: cd linux/ecosystem/gitlab/runner/amxx-sdk/1.10 && pwd && make build && make deploy +# +################################################################################### +# +# - name: Cleanup +# run: make clean +# +################################################################################### +# +# - name: "Build and Deploy Gitlab Runner Android SDK Image (jdk8):" +# run: cd linux/ecosystem/gitlab/runner/android-sdk/jdk8 && pwd && make build && make deploy +# +################################################################################### +# +# - name: Cleanup +# run: make clean +# +################################################################################### +# +# - name: "Build and Deploy Gitlab Runner Android SDK Image (jdk11):" +# run: cd linux/ecosystem/gitlab/runner/android-sdk/jdk11 && pwd && make build && make deploy +# +################################################################################### +# +# - name: Cleanup +# run: make clean +# +################################################################################### +# +# - name: "Build and Deploy Gitlab Runner Android SDK Image (jdk17):" +# run: cd linux/ecosystem/gitlab/runner/android-sdk/jdk17 && pwd && make build && make deploy +# +################################################################################### +# +# - name: Cleanup +# run: make clean +# +################################################################################### +# +# - name: "Build and Deploy Gitlab Runner Atlassian SDK Image:" +# run: cd linux/ecosystem/gitlab/runner/atlassian-sdk && pwd && make build && make deploy +# +################################################################################### +# +# - name: Cleanup +# run: make clean +# +################################################################################### +# +# - name: "Build and Deploy Gitlab Runner dotNet SDK Image:" +# run: cd linux/ecosystem/gitlab/runner/dotnet-sdk && pwd && make build && make deploy +# +# - name: "Build and Deploy Gitlab Runner node0.12 Image:" +# run: cd linux/ecosystem/gitlab/runner/node0.12 && pwd && make build && make deploy +# +# - name: "Build and Deploy Gitlab Runner node4 Image:" +# run: cd linux/ecosystem/gitlab/runner/node4 && pwd && make build && make deploy +# +################################################################################### +# +# - name: Cleanup +# run: make clean +# +################################################################################### +## +## - name: "Build and Deploy Gitlab Runner node5 Image:" +## run: cd linux/ecosystem/gitlab/runner/node5 && pwd && make build && make deploy +## +## - name: "Build and Deploy Gitlab Runner node6 Image:" +## run: cd linux/ecosystem/gitlab/runner/node6 && pwd && make build && make deploy +## +## - name: "Build and Deploy Gitlab Runner node7 Image:" +## run: cd linux/ecosystem/gitlab/runner/node7 && pwd && make build && make deploy +## +## ################################################################################## +## +## - name: Cleanup +## run: make clean +## +## ################################################################################## +## +## - name: "Build and Deploy Gitlab Runner node8 Image:" +## run: cd linux/ecosystem/gitlab/runner/node8 && pwd && make build && make deploy +## +## - name: "Build and Deploy Gitlab Runner node9 Image:" +## run: cd linux/ecosystem/gitlab/runner/node9 && pwd && make build && make deploy +## +## - name: "Build and Deploy Gitlab Runner node10 Image:" +## run: cd linux/ecosystem/gitlab/runner/node10 && pwd && make build && make deploy +## +## ################################################################################## +## +## - name: Cleanup +## run: make clean +## +## ################################################################################## +## +## - name: "Build and Deploy Gitlab Runner node11 Image:" +## run: cd linux/ecosystem/gitlab/runner/node11 && pwd && make build && make deploy +## +## - name: "Build and Deploy Gitlab Runner node12 Image:" +## run: cd linux/ecosystem/gitlab/runner/node12 && pwd && make build && make deploy +## +## - name: "Build and Deploy Gitlab Runner node13 Image:" +## run: cd linux/ecosystem/gitlab/runner/node13 && pwd && make build && make deploy +## +## ################################################################################## +## +## - name: Cleanup +## run: make clean +## +## ################################################################################## +## +## - name: "Build and Deploy Gitlab Runner node14 Image:" +## run: cd linux/ecosystem/gitlab/runner/node14 && pwd && make build && make deploy +## +## - name: "Build and Deploy Gitlab Runner node15 Image:" +## run: cd linux/ecosystem/gitlab/runner/node15 && pwd && make build && make deploy +## +## +## ################################################################################## +## +## - name: Cleanup +## run: make clean +## +## ################################################################################## +## +## - name: "Build and Deploy Gitlab Runner node16 Image:" +## run: cd linux/ecosystem/gitlab/runner/node16 && pwd && make build && make deploy +## +## - name: "Build and Deploy Gitlab Runner node17 Image:" +## run: cd linux/ecosystem/gitlab/runner/node17 && pwd && make build && make deploy +## +## - name: "Build and Deploy Gitlab Runner node18 Image:" +## run: cd linux/ecosystem/gitlab/runner/node18 && pwd && make build && make deploy +## +## ################################################################################## +## +## - name: Cleanup +## run: make clean +## +## ################################################################################## +## +## - name: "Build and Deploy Gitlab Runner node19 Image:" +## run: cd linux/ecosystem/gitlab/runner/node19 && pwd && make build && make deploy +## +## - name: "Build and Deploy Gitlab Runner node20 Image:" +## run: cd linux/ecosystem/gitlab/runner/node20 && pwd && make build && make deploy +## +## - name: "Build and Deploy Gitlab Runner node21 Image:" +## run: cd linux/ecosystem/gitlab/runner/node21 && pwd && make build && make deploy +## +## - name: "Build and Deploy Gitlab Runner node22 Image:" +## run: cd linux/ecosystem/gitlab/runner/node22 && pwd && make build && make deploy +## +## ################################################################################## +## +## - name: Cleanup +## run: make clean +## +## ################################################################################## +## +## - name: "Build and Deploy Gitlab Runner php7.2 Image:" +## run: cd linux/ecosystem/gitlab/runner/php7.2 && pwd && make build && make deploy +## +## - name: "Build and Deploy Gitlab Runner php7.3 Image:" +## run: cd linux/ecosystem/gitlab/runner/php7.3 && pwd && make build && make deploy +## +## - name: "Build and Deploy Gitlab Runner php7.4 Image:" +## run: cd linux/ecosystem/gitlab/runner/php7.4 && pwd && make build && make deploy +## +## +## ################################################################################## +## +## - name: Cleanup +## run: make clean +## +## ################################################################################## +## +## - name: "Build and Deploy Gitlab Runner php8.0 Image:" +## run: cd linux/ecosystem/gitlab/runner/php8.0 && pwd && make build && make deploy +## +## - name: "Build and Deploy Gitlab Runner php8.1 Image:" +## run: cd linux/ecosystem/gitlab/runner/php8.1 && pwd && make build && make deploy +## +## - name: "Build and Deploy Gitlab Runner php8.2 Image:" +## run: cd linux/ecosystem/gitlab/runner/php8.2 && pwd && make build && make deploy +## +## - name: "Build and Deploy Gitlab Runner php8.3 Image:" +## run: cd linux/ecosystem/gitlab/runner/php8.3 && pwd && make build && make deploy +## +## - name: "Build and Deploy Gitlab Runner Steam SDK Image:" +## run: cd linux/ecosystem/gitlab/runner/steam-sdk && pwd && make build && make deploy +## +## ################################################################################## +# \ No newline at end of file diff --git a/.github/workflows/epicmorg.base.images.teamcity.agents.yml b/.github/workflows/epicmorg.base.images.teamcity.agents.yml index a720b6131..e5c0f26fd 100644 --- a/.github/workflows/epicmorg.base.images.teamcity.agents.yml +++ b/.github/workflows/epicmorg.base.images.teamcity.agents.yml @@ -27,7 +27,10 @@ jobs: - name: Install requirements.txt run: make pip - - name: "Build and Deploy TeamCity Agent Main Image (jdk8 + jdk11 + jdk17 + jdk21):" + - name: "Build and Deploy TeamCity Agent Minimal Image (jdk21):" + run: cd linux/ecosystem/teamcity/agent/minimal && pwd && make build && make deploy + + - name: "Build and Deploy TeamCity Agent Main Image (jdk21):" run: cd linux/ecosystem/teamcity/agent/latest && pwd && make build && make deploy ################################################################################## @@ -53,149 +56,149 @@ jobs: - name: Install requirements.txt run: make pip - - name: "Build and Deploy TeamCity Agent amxX 1.9 SDK Image:" - run: cd linux/ecosystem/teamcity/agent/amxx-sdk/1.9 && pwd && make build && make deploy - - - name: "Build and Deploy TeamCity Agent amxX 1.10 SDK Image:" - run: cd linux/ecosystem/teamcity/agent/amxx-sdk/1.10 && pwd && make build && make deploy - -################################################################################## - - - name: Cleanup - run: make clean - -################################################################################## - - - name: "Build and Deploy TeamCity Agent Android SDK (jdk8) Image:" - run: cd linux/ecosystem/teamcity/agent/android-sdk/jdk8 && pwd && make build && make deploy - -################################################################################## - - - name: Cleanup - run: make clean - -################################################################################## - - - name: "Build and Deploy TeamCity Agent Android SDK (jdk11) Image:" - run: cd linux/ecosystem/teamcity/agent/android-sdk/jdk1 && pwd && make build && make deploy - -################################################################################## - - - name: Cleanup - run: make clean - -################################################################################## - - - name: "Build and Deploy TeamCity Agent Android SDK (jdk17) Image:" - run: cd linux/ecosystem/teamcity/agent/android-sdk/jdk7 && pwd && make build && make deploy - -################################################################################## - - - name: Cleanup - run: make clean - -################################################################################## - - - name: "Build and Deploy TeamCity Agent Atlassian SDK Image:" - run: cd linux/ecosystem/teamcity/agent/atlassian-sdk && pwd && make build && make deploy - - - name: "Build and Deploy TeamCity Agent dotNet SDK Image:" - run: cd linux/ecosystem/teamcity/agent/dotnet-sdk && pwd && make build && make deploy - -################################################################################## - - - name: Cleanup - run: make clean - -################################################################################## - - - name: "Build and Deploy TeamCity Agent node0.12 Image:" - run: cd linux/ecosystem/teamcity/agent/node0.12 && pwd && make build && make deploy - - - name: "Build and Deploy TeamCity Agent node4 Image:" - run: cd linux/ecosystem/teamcity/agent/node4 && pwd && make build && make deploy - - - name: "Build and Deploy TeamCity Agent node5 Image:" - run: cd linux/ecosystem/teamcity/agent/node5 && pwd && make build && make deploy - - - name: "Build and Deploy TeamCity Agent node6 Image:" - run: cd linux/ecosystem/teamcity/agent/node6 && pwd && make build && make deploy - -################################################################################## - - - name: Cleanup - run: make clean - -################################################################################## - - - name: "Build and Deploy TeamCity Agent node7 Image:" - run: cd linux/ecosystem/teamcity/agent/node7 && pwd && make build && make deploy - - - name: "Build and Deploy TeamCity Agent node8 Image:" - run: cd linux/ecosystem/teamcity/agent/node8 && pwd && make build && make deploy - - - name: "Build and Deploy TeamCity Agent node9 Image:" - run: cd linux/ecosystem/teamcity/agent/node9 && pwd && make build && make deploy - - - name: "Build and Deploy TeamCity Agent node10 Image:" - run: cd linux/ecosystem/teamcity/agent/node10 && pwd && make build && make deploy - -################################################################################## - - - name: Cleanup - run: make clean - -################################################################################## - - - name: "Build and Deploy TeamCity Agent node11 Image:" - run: cd linux/ecosystem/teamcity/agent/node11 && pwd && make build && make deploy - - - name: "Build and Deploy TeamCity Agent node12 Image:" - run: cd linux/ecosystem/teamcity/agent/node12 && pwd && make build && make deploy - - - name: "Build and Deploy TeamCity Agent node13 Image:" - run: cd linux/ecosystem/teamcity/agent/node13 && pwd && make build && make deploy - - - name: "Build and Deploy TeamCity Agent node14 Image:" - run: cd linux/ecosystem/teamcity/agent/node14 && pwd && make build && make deploy - -################################################################################## - - - name: Cleanup - run: make clean - -################################################################################## - - - name: "Build and Deploy TeamCity Agent node15 Image:" - run: cd linux/ecosystem/teamcity/agent/node15 && pwd && make build && make deploy - - - name: "Build and Deploy TeamCity Agent node16 Image:" - run: cd linux/ecosystem/teamcity/agent/node16 && pwd && make build && make deploy - - - name: "Build and Deploy TeamCity Agent node17 Image:" - run: cd linux/ecosystem/teamcity/agent/node17 && pwd && make build && make deploy - - - name: "Build and Deploy TeamCity Agent node18 Image:" - run: cd linux/ecosystem/teamcity/agent/node18 && pwd && make build && make deploy - -################################################################################## - - - name: Cleanup - run: make clean - -################################################################################## - - - name: "Build and Deploy TeamCity Agent node19 Image:" - run: cd linux/ecosystem/teamcity/agent/node19 && pwd && make build && make deploy - - - name: "Build and Deploy TeamCity Agent node20 Image:" - run: cd linux/ecosystem/teamcity/agent/node20 && pwd && make build && make deploy - - - name: "Build and Deploy TeamCity Agent node21 Image:" - run: cd linux/ecosystem/teamcity/agent/node21 && pwd && make build && make deploy - - - name: "Build and Deploy TeamCity Agent node22 Image:" - run: cd linux/ecosystem/teamcity/agent/node22 && pwd && make build && make deploy +# - name: "Build and Deploy TeamCity Agent amxX 1.9 SDK Image:" +# run: cd linux/ecosystem/teamcity/agent/amxx-sdk/1.9 && pwd && make build && make deploy +# +# - name: "Build and Deploy TeamCity Agent amxX 1.10 SDK Image:" +# run: cd linux/ecosystem/teamcity/agent/amxx-sdk/1.10 && pwd && make build && make deploy +# +################################################################################### +# +# - name: Cleanup +# run: make clean +# +################################################################################### +# +# - name: "Build and Deploy TeamCity Agent Android SDK (jdk8) Image:" +# run: cd linux/ecosystem/teamcity/agent/android-sdk/jdk8 && pwd && make build && make deploy +# +################################################################################### +# +# - name: Cleanup +# run: make clean +# +################################################################################### +# +# - name: "Build and Deploy TeamCity Agent Android SDK (jdk11) Image:" +# run: cd linux/ecosystem/teamcity/agent/android-sdk/jdk1 && pwd && make build && make deploy +# +################################################################################### +# +# - name: Cleanup +# run: make clean +# +################################################################################### +# +# - name: "Build and Deploy TeamCity Agent Android SDK (jdk17) Image:" +# run: cd linux/ecosystem/teamcity/agent/android-sdk/jdk7 && pwd && make build && make deploy +# +################################################################################### +# +# - name: Cleanup +# run: make clean +# +################################################################################### +# +# - name: "Build and Deploy TeamCity Agent Atlassian SDK Image:" +# run: cd linux/ecosystem/teamcity/agent/atlassian-sdk && pwd && make build && make deploy +# +# - name: "Build and Deploy TeamCity Agent dotNet SDK Image:" +# run: cd linux/ecosystem/teamcity/agent/dotnet-sdk && pwd && make build && make deploy +# +################################################################################### +# +# - name: Cleanup +# run: make clean +# +################################################################################### +# +# - name: "Build and Deploy TeamCity Agent node0.12 Image:" +# run: cd linux/ecosystem/teamcity/agent/node0.12 && pwd && make build && make deploy +# +# - name: "Build and Deploy TeamCity Agent node4 Image:" +# run: cd linux/ecosystem/teamcity/agent/node4 && pwd && make build && make deploy +# +# - name: "Build and Deploy TeamCity Agent node5 Image:" +# run: cd linux/ecosystem/teamcity/agent/node5 && pwd && make build && make deploy +# +# - name: "Build and Deploy TeamCity Agent node6 Image:" +# run: cd linux/ecosystem/teamcity/agent/node6 && pwd && make build && make deploy +# +################################################################################### +# +# - name: Cleanup +# run: make clean +# +################################################################################### +# +# - name: "Build and Deploy TeamCity Agent node7 Image:" +# run: cd linux/ecosystem/teamcity/agent/node7 && pwd && make build && make deploy +# +# - name: "Build and Deploy TeamCity Agent node8 Image:" +# run: cd linux/ecosystem/teamcity/agent/node8 && pwd && make build && make deploy +# +# - name: "Build and Deploy TeamCity Agent node9 Image:" +# run: cd linux/ecosystem/teamcity/agent/node9 && pwd && make build && make deploy +# +# - name: "Build and Deploy TeamCity Agent node10 Image:" +# run: cd linux/ecosystem/teamcity/agent/node10 && pwd && make build && make deploy +# +################################################################################### +# +# - name: Cleanup +# run: make clean +# +################################################################################### +# +# - name: "Build and Deploy TeamCity Agent node11 Image:" +# run: cd linux/ecosystem/teamcity/agent/node11 && pwd && make build && make deploy +# +# - name: "Build and Deploy TeamCity Agent node12 Image:" +# run: cd linux/ecosystem/teamcity/agent/node12 && pwd && make build && make deploy +# +# - name: "Build and Deploy TeamCity Agent node13 Image:" +# run: cd linux/ecosystem/teamcity/agent/node13 && pwd && make build && make deploy +# +# - name: "Build and Deploy TeamCity Agent node14 Image:" +# run: cd linux/ecosystem/teamcity/agent/node14 && pwd && make build && make deploy +# +################################################################################### +# +# - name: Cleanup +# run: make clean +# +################################################################################### +# +# - name: "Build and Deploy TeamCity Agent node15 Image:" +# run: cd linux/ecosystem/teamcity/agent/node15 && pwd && make build && make deploy +# +# - name: "Build and Deploy TeamCity Agent node16 Image:" +# run: cd linux/ecosystem/teamcity/agent/node16 && pwd && make build && make deploy +# +# - name: "Build and Deploy TeamCity Agent node17 Image:" +# run: cd linux/ecosystem/teamcity/agent/node17 && pwd && make build && make deploy +# +# - name: "Build and Deploy TeamCity Agent node18 Image:" +# run: cd linux/ecosystem/teamcity/agent/node18 && pwd && make build && make deploy +# +################################################################################### +# +# - name: Cleanup +# run: make clean +# +################################################################################### +# +# - name: "Build and Deploy TeamCity Agent node19 Image:" +# run: cd linux/ecosystem/teamcity/agent/node19 && pwd && make build && make deploy +# +# - name: "Build and Deploy TeamCity Agent node20 Image:" +# run: cd linux/ecosystem/teamcity/agent/node20 && pwd && make build && make deploy +# +# - name: "Build and Deploy TeamCity Agent node21 Image:" +# run: cd linux/ecosystem/teamcity/agent/node21 && pwd && make build && make deploy +# +# - name: "Build and Deploy TeamCity Agent node22 Image:" +# run: cd linux/ecosystem/teamcity/agent/node22 && pwd && make build && make deploy ################################################################################## diff --git a/.github/workflows/epicmorg.base.images.web.yml b/.github/workflows/epicmorg.base.images.web.yml index 144a63215..7ac874dcf 100644 --- a/.github/workflows/epicmorg.base.images.web.yml +++ b/.github/workflows/epicmorg.base.images.web.yml @@ -30,6 +30,9 @@ jobs: # - name: "Build and Deploy Apache 2 Latest Image:" # run: cd linux/ecosystem/apache2/latest && pwd && make build && make deploy + - name: "Build and Deploy Apache 2 + PHP 5.6 Image:" + run: cd linux/ecosystem/apache2/php5.6 && pwd && make build && make deploy + - name: "Build and Deploy Apache 2 + PHP 7.0 Image:" run: cd linux/ecosystem/apache2/php7.0 && pwd && make build && make deploy @@ -71,6 +74,9 @@ jobs: - name: "Build and Deploy Apache 2 + PHP 8.3 Image:" run: cd linux/ecosystem/apache2/php8.3 && pwd && make build && make deploy + - name: "Build and Deploy Apache 2 + PHP 8.43 Image:" + run: cd linux/ecosystem/apache2/php8.4 && pwd && make build && make deploy + # ################################################################################## # # build-nginx-images: diff --git a/Makefile b/Makefile index 1f3a20671..dbf1cd893 100644 --- a/Makefile +++ b/Makefile @@ -890,7 +890,6 @@ ecosystem-debian-sid-nodejs-images: #################################################################################################################### ecosystem-php-images: -# echo "disabled temprorary" cd `pwd`/linux/ecosystem/epicmorg/debian/12-bookworm/php/php5.6 && pwd && make build && make deploy cd `pwd`/linux/ecosystem/epicmorg/debian/12-bookworm/php/php7.0 && pwd && make build && make deploy cd `pwd`/linux/ecosystem/epicmorg/debian/12-bookworm/php/php7.1 && pwd && make build && make deploy @@ -903,7 +902,32 @@ ecosystem-php-images: cd `pwd`/linux/ecosystem/epicmorg/debian/12-bookworm/php/php8.3 && pwd && make build && make deploy cd `pwd`/linux/ecosystem/epicmorg/debian/12-bookworm/php/php8.4 && pwd && make build && make deploy +testrail-prod: + cd `pwd`/linux/ecosystem/testrail/5.7.1.4028/main && pwd && make build && make deploy + cd `pwd`/linux/ecosystem/testrail/5.7.1.4028/ad && pwd && make build && make deploy + cd `pwd`/linux/ecosystem/testrail/5.7.1.4028/ldap && pwd && make build && make deploy + cd `pwd`/linux/ecosystem/testrail/6.7.2.1043/main && pwd && make build && make deploy + cd `pwd`/linux/ecosystem/testrail/6.7.2.1043/ad && pwd && make build && make deploy + cd `pwd`/linux/ecosystem/testrail/6.7.2.1043/ldap && pwd && make build && make deploy + cd `pwd`/linux/ecosystem/testrail/7.5.3.1000/main && pwd && make build && make deploy + cd `pwd`/linux/ecosystem/testrail/7.5.3.1000/ad && pwd && make build && make deploy + cd `pwd`/linux/ecosystem/testrail/7.5.3.1000/ldap && pwd && make build && make deploy + cd `pwd`/linux/ecosystem/testrail/8.0.1.1029/main && pwd && make build && make deploy + cd `pwd`/linux/ecosystem/testrail/8.0.1.1029/ad && pwd && make build && make deploy + cd `pwd`/linux/ecosystem/testrail/8.0.1.1029/ldap && pwd && make build && make deploy + cd `pwd`/linux/ecosystem/testrail/8.0.4.7036/main && pwd && make build && make deploy + cd `pwd`/linux/ecosystem/testrail/8.0.4.7036/ad && pwd && make build && make deploy + cd `pwd`/linux/ecosystem/testrail/8.0.4.7036/ldap && pwd && make build && make deploy + cd `pwd`/linux/ecosystem/testrail/8.0.6.1019/main && pwd && make build && make deploy + cd `pwd`/linux/ecosystem/testrail/8.0.6.1019/ad && pwd && make build && make deploy + cd `pwd`/linux/ecosystem/testrail/8.0.6.1019/ldap && pwd && make build && make deploy + cd `pwd`/linux/ecosystem/testrail/9.0.0.1057/main && pwd && make build && make deploy + cd `pwd`/linux/ecosystem/testrail/9.0.0.1057/ad && pwd && make build && make deploy + cd `pwd`/linux/ecosystem/testrail/9.0.0.1057/ldap && pwd && make build && make deploy + + ecosystem-apache2-images: + cd `pwd`/linux/ecosystem/apache2/php5.6 && pwd && make build && make deploy cd `pwd`/linux/ecosystem/apache2/php7.0 && pwd && make build && make deploy cd `pwd`/linux/ecosystem/apache2/php7.1 && pwd && make build && make deploy cd `pwd`/linux/ecosystem/apache2/php7.2 && pwd && make build && make deploy @@ -913,6 +937,7 @@ ecosystem-apache2-images: cd `pwd`/linux/ecosystem/apache2/php8.1 && pwd && make build && make deploy cd `pwd`/linux/ecosystem/apache2/php8.2 && pwd && make build && make deploy cd `pwd`/linux/ecosystem/apache2/php8.3 && pwd && make build && make deploy + cd `pwd`/linux/ecosystem/apache2/php8.4 && pwd && make build && make deploy ecosystem-testrail-images: cd `pwd`/linux/ecosystem/cassandra/3.11 && pwd && make build && make deploy @@ -979,6 +1004,8 @@ ecosystem-testrail-images: cd `pwd`/linux/ecosystem/testrail/8.0.1.1029/main && pwd && make build && make deploy cd `pwd`/linux/ecosystem/testrail/8.0.4.7036/main && pwd && make build && make deploy cd `pwd`/linux/ecosystem/testrail/8.0.6.1019/main && pwd && make build && make deploy + cd `pwd`/linux/ecosystem/testrail/8.1.0.6186/main && pwd && make build && make deploy + cd `pwd`/linux/ecosystem/testrail/9.0.0.1057/main && pwd && make build && make deploy cd `pwd`/linux/ecosystem/testrail/5.4.1.3669/ad && pwd && make build && make deploy cd `pwd`/linux/ecosystem/testrail/5.5.0.3727/ad && pwd && make build && make deploy @@ -1042,6 +1069,8 @@ ecosystem-testrail-images: cd `pwd`/linux/ecosystem/testrail/8.0.1.1029/ad && pwd && make build && make deploy cd `pwd`/linux/ecosystem/testrail/8.0.4.7036/ad && pwd && make build && make deploy cd `pwd`/linux/ecosystem/testrail/8.0.6.1019/ad && pwd && make build && make deploy + cd `pwd`/linux/ecosystem/testrail/8.1.0.6186/ad && pwd && make build && make deploy + cd `pwd`/linux/ecosystem/testrail/9.0.0.1057/ad && pwd && make build && make deploy cd `pwd`/linux/ecosystem/testrail/5.4.1.3669/ldap && pwd && make build && make deploy cd `pwd`/linux/ecosystem/testrail/5.5.0.3727/ldap && pwd && make build && make deploy @@ -1105,6 +1134,8 @@ ecosystem-testrail-images: cd `pwd`/linux/ecosystem/testrail/8.0.1.1029/ldap && pwd && make build && make deploy cd `pwd`/linux/ecosystem/testrail/8.0.4.7036/ldap && pwd && make build && make deploy cd `pwd`/linux/ecosystem/testrail/8.0.6.1019/ldap && pwd && make build && make deploy + cd `pwd`/linux/ecosystem/testrail/8.1.0.6186/ldap && pwd && make build && make deploy + cd `pwd`/linux/ecosystem/testrail/9.0.0.1057/ldap && pwd && make build && make deploy ecosystem-torrserver-images: cd `pwd`/linux/ecosystem/torrserver && pwd && make build && make deploy @@ -1181,6 +1212,7 @@ ecosystem-postgres-images: # cd `pwd`/linux/ecosystem/postgres/18 && pwd && make build && make deploy ecosystem-teamcity-agent-images: + cd `pwd`/linux/ecosystem/teamcity/agent/minimal && pwd && make build && make deploy cd `pwd`/linux/ecosystem/teamcity/agent/latest && pwd && make build && make deploy ecosystem-gitlab-runner-images: diff --git a/bin/ansible/roles/common/files/versions/testrail/testrail.php81.txt b/bin/ansible/roles/common/files/versions/testrail/testrail.php81.txt index ce04ec6cf..63c853342 100644 --- a/bin/ansible/roles/common/files/versions/testrail/testrail.php81.txt +++ b/bin/ansible/roles/common/files/versions/testrail/testrail.php81.txt @@ -1,4 +1,6 @@ 8.0.0.1089 8.0.1.1029 8.0.4.7036 -8.0.6.1019 \ No newline at end of file +8.0.6.1019 +8.1.0.6186 +9.0.0.1057 \ No newline at end of file diff --git a/bin/ansible/roles/gurock.testrail/tasks/main.yml b/bin/ansible/roles/gurock.testrail/tasks/main.yml index d166a49a3..2078ff2b7 100644 --- a/bin/ansible/roles/gurock.testrail/tasks/main.yml +++ b/bin/ansible/roles/gurock.testrail/tasks/main.yml @@ -1,17 +1,17 @@ #- name: "Generate images for Testrail (PHP 5.5)" # import_tasks: testrail.php55.yml - -- name: "Generate images for Testrail (PHP 7.0)" - import_tasks: testrail.php70.yml - -- name: "Generate images for Testrail (PHP 7.1)" - import_tasks: testrail.php71.yml - -- name: "Generate images for Testrail (PHP 7.2)" - import_tasks: testrail.php72.yml - -- name: "Generate images for Testrail (PHP 7.4)" - import_tasks: testrail.php74.yml +# +#- name: "Generate images for Testrail (PHP 7.0)" +# import_tasks: testrail.php70.yml +# +#- name: "Generate images for Testrail (PHP 7.1)" +# import_tasks: testrail.php71.yml +# +#- name: "Generate images for Testrail (PHP 7.2)" +# import_tasks: testrail.php72.yml +# +#- name: "Generate images for Testrail (PHP 7.4)" +# import_tasks: testrail.php74.yml - name: "Generate images for Testrail (PHP 8.1)" import_tasks: testrail.php81.yml diff --git a/linux/ecosystem/apache2/php5.5/Dockerfile b/linux/ecosystem/apache2/php5.5/Dockerfile index 70ac6510c..064e28fb6 100644 --- a/linux/ecosystem/apache2/php5.5/Dockerfile +++ b/linux/ecosystem/apache2/php5.5/Dockerfile @@ -48,6 +48,16 @@ RUN apt-get update && \ dav_fs \ alias && \ ln -sf /etc/ssl/dhparam.pem /etc/apache2/dhparam.pem && \ + phpdismod \ + xdebug \ + xcache \ + xhprof \ + tideways \ + pcov \ + swoole \ + grpc \ + uopz \ + msgpack && \ php -m && \ php -v diff --git a/linux/ecosystem/apache2/php5.6/Dockerfile b/linux/ecosystem/apache2/php5.6/Dockerfile index e4c825976..809aee16d 100644 --- a/linux/ecosystem/apache2/php5.6/Dockerfile +++ b/linux/ecosystem/apache2/php5.6/Dockerfile @@ -1,9 +1,9 @@ -FROM epicmorg/debian:bookworm-php5.5 +FROM epicmorg/debian:bookworm-php5.6 LABEL maintainer="EpicMorg DevTeam, developer@epicm.org" ARG DEBIAN_FRONTEND=noninteractive ENV PHP_VER=5.6 -ENV PHP_MODULE_PATH=/usr/local/lib/php/extensions/no-debug-non-zts-20121212 +ENV PHP_MODULE_PATH=/usr/lib/php/20131226 ENV PHP_DIR=/etc/php/${PHP_VER} ARG P4_PHP_INI=${PHP_DIR}/mods-available/perfroce.ini ARG CAS_PHP_INI=${PHP_DIR}/mods-available/cassandra.ini @@ -21,8 +21,8 @@ RUN apt-get update && \ locate \ apache2 \ apache2-utils \ - libapache2-mod-php5.5 \ - libapache2-mod-webauth \ + libapache2-mod-php5.6 \ +# libapache2-mod-webauth \ libapache2-mod-xforward \ libapache2-mod-security2 \ libmemcached-dev && \ @@ -47,6 +47,41 @@ RUN apt-get update && \ dav_fs \ alias && \ ln -sf /etc/ssl/dhparam.pem /etc/apache2/dhparam.pem && \ + apt-get remove -y \ +# php5.6* \ + php7.0* \ + php7.1* \ + php7.2* \ + php7.3* \ + php7.4* \ + php8.0* \ + php8.1* \ + php8.2* \ + php8.3* \ + php8.4* && \ + phpdismod \ + xdebug \ + xcache \ + xhprof \ + tideways \ + pcov \ + swoole \ + grpc \ + uopz \ + msgpack && \ + apt-get remove -y \ +# php5.6* \ + php7.0* \ + php7.1* \ + php7.2* \ + php7.3* \ + php7.4* \ + php8.0* \ + php8.1* \ + php8.2* \ + php8.3* \ + php8.4* && \ + rm -rfv /etc/php/{7.0,7.1,7.2,7.3,7.4,8.0,8.1,8.2,8.3,8.4} && \ php -m && \ php -v diff --git a/linux/ecosystem/apache2/php7.0/Dockerfile b/linux/ecosystem/apache2/php7.0/Dockerfile index a31404db9..dc180749b 100644 --- a/linux/ecosystem/apache2/php7.0/Dockerfile +++ b/linux/ecosystem/apache2/php7.0/Dockerfile @@ -47,6 +47,29 @@ RUN apt-get update && \ dav_fs \ alias && \ ln -sf /etc/ssl/dhparam.pem /etc/apache2/dhparam.pem && \ + phpdismod \ + xdebug \ + xcache \ + xhprof \ + tideways \ + pcov \ + swoole \ + grpc \ + uopz \ + msgpack && \ + apt-get remove -y \ + php5.6* \ +# php7.0* \ + php7.1* \ + php7.2* \ + php7.3* \ + php7.4* \ + php8.0* \ + php8.1* \ + php8.2* \ + php8.3* \ + php8.4* && \ + rm -rfv /etc/php/{5.6,7.1,7.2,7.3,7.4,8.0,8.1,8.2,8.3,8.4} && \ php -m && \ php -v diff --git a/linux/ecosystem/apache2/php7.1/Dockerfile b/linux/ecosystem/apache2/php7.1/Dockerfile index 5a5970819..a7bfd08b8 100644 --- a/linux/ecosystem/apache2/php7.1/Dockerfile +++ b/linux/ecosystem/apache2/php7.1/Dockerfile @@ -47,6 +47,29 @@ RUN apt-get update && \ dav_fs \ alias && \ ln -sf /etc/ssl/dhparam.pem /etc/apache2/dhparam.pem && \ + phpdismod \ + xdebug \ + xcache \ + xhprof \ + tideways \ + pcov \ + swoole \ + grpc \ + uopz \ + msgpack && \ + apt-get remove -y \ + php5.6* \ + php7.0* \ +# php7.1* \ + php7.2* \ + php7.3* \ + php7.4* \ + php8.0* \ + php8.1* \ + php8.2* \ + php8.3* \ + php8.4* && \ + rm -rfv /etc/php/{5.6,7.0,7.2,7.3,7.4,8.0,8.1,8.2,8.3,8.4} && \ php -m && \ php -v diff --git a/linux/ecosystem/apache2/php7.2/Dockerfile b/linux/ecosystem/apache2/php7.2/Dockerfile index 9de0a9dbd..4bc2c1f2d 100644 --- a/linux/ecosystem/apache2/php7.2/Dockerfile +++ b/linux/ecosystem/apache2/php7.2/Dockerfile @@ -47,6 +47,29 @@ RUN apt-get update && \ dav_fs \ alias && \ ln -sf /etc/ssl/dhparam.pem /etc/apache2/dhparam.pem && \ + phpdismod \ + xdebug \ + xcache \ + xhprof \ + tideways \ + pcov \ + swoole \ + grpc \ + uopz \ + msgpack && \ + apt-get remove -y \ + php5.6* \ + php7.0* \ + php7.1* \ +# php7.2* \ + php7.3* \ + php7.4* \ + php8.0* \ + php8.1* \ + php8.2* \ + php8.3* \ + php8.4* && \ + rm -rfv /etc/php/{5.6,7.0,7.1,7.3,7.4,8.0,8.1,8.2,8.3,8.4} && \ php -m && \ php -v diff --git a/linux/ecosystem/apache2/php7.3/Dockerfile b/linux/ecosystem/apache2/php7.3/Dockerfile index 0626de66f..be0068832 100644 --- a/linux/ecosystem/apache2/php7.3/Dockerfile +++ b/linux/ecosystem/apache2/php7.3/Dockerfile @@ -47,6 +47,29 @@ RUN apt-get update && \ dav_fs \ alias && \ ln -sf /etc/ssl/dhparam.pem /etc/apache2/dhparam.pem && \ + phpdismod \ + xdebug \ + xcache \ + xhprof \ + tideways \ + pcov \ + swoole \ + grpc \ + uopz \ + msgpack && \ + apt-get remove -y \ + php5.6* \ + php7.0* \ + php7.1* \ + php7.2* \ +# php7.3* \ + php7.4* \ + php8.0* \ + php8.1* \ + php8.2* \ + php8.3* \ + php8.4* && \ + rm -rfv /etc/php/{5.6,7.0,7.1,7.2,7.4,8.0,8.1,8.2,8.3,8.4} && \ php -m && \ php -v diff --git a/linux/ecosystem/apache2/php7.4/Dockerfile b/linux/ecosystem/apache2/php7.4/Dockerfile index 916d48850..b2b1375c2 100644 --- a/linux/ecosystem/apache2/php7.4/Dockerfile +++ b/linux/ecosystem/apache2/php7.4/Dockerfile @@ -47,6 +47,29 @@ RUN apt-get update && \ dav_fs \ alias && \ ln -sf /etc/ssl/dhparam.pem /etc/apache2/dhparam.pem && \ + phpdismod \ + xdebug \ + xcache \ + xhprof \ + tideways \ + pcov \ + swoole \ + grpc \ + uopz \ + msgpack && \ + apt-get remove -y \ + php5.6* \ + php7.0* \ + php7.1* \ + php7.2* \ + php7.3* \ +# php7.4* \ + php8.0* \ + php8.1* \ + php8.2* \ + php8.3* \ + php8.4* && \ + rm -rfv /etc/php/{5.6,7.0,7.1,7.2,7.3,8.0,8.1,8.2,8.3,8.4} && \ php -m && \ php -v diff --git a/linux/ecosystem/apache2/php8.0/Dockerfile b/linux/ecosystem/apache2/php8.0/Dockerfile index 1c6c37649..dd69240f5 100644 --- a/linux/ecosystem/apache2/php8.0/Dockerfile +++ b/linux/ecosystem/apache2/php8.0/Dockerfile @@ -48,6 +48,29 @@ RUN apt-get update && \ dav_fs \ alias && \ ln -sf /etc/ssl/dhparam.pem /etc/apache2/dhparam.pem && \ + phpdismod \ + xdebug \ + xcache \ + xhprof \ + tideways \ + pcov \ + swoole \ + grpc \ + uopz \ + msgpack && \ + apt-get remove -y \ + php5.6* \ + php7.0* \ + php7.1* \ + php7.2* \ + php7.3* \ + php7.4* \ +# php8.0* \ + php8.1* \ + php8.2* \ + php8.3* \ + php8.4* && \ + rm -rfv /etc/php/{5.6,7.0,7.1,7.2,7.3,7.4,8.1,8.2,8.3,8.4} && \ php -m && \ php -v @@ -94,10 +117,11 @@ RUN echo "extension = ${PHP_MODULE_PATH}/phpBolt-extension-1.0.5-php80.so" >> ${ ################################################################## # Installing IOnCube addon -################################################################## -RUN echo "zend_extension = ${PHP_MODULE_PATH}/ioncube_loader_lin_8.0.so" >> ${PHP_DIR}/apache2/php.ini && \ - php -m && \ - php -v +################################################################# +# NOT OFFICIALLY SUPPORTED +#RUN echo "zend_extension = ${PHP_MODULE_PATH}/ioncube_loader_lin_8.0.so" >> ${PHP_DIR}/apache2/php.ini && \ +# php -m && \ +# php -v ################################################################## # Installing P4 addon diff --git a/linux/ecosystem/apache2/php8.1/Dockerfile b/linux/ecosystem/apache2/php8.1/Dockerfile index 239b650af..f9605f2b7 100644 --- a/linux/ecosystem/apache2/php8.1/Dockerfile +++ b/linux/ecosystem/apache2/php8.1/Dockerfile @@ -48,6 +48,29 @@ RUN apt-get update && \ dav_fs \ alias && \ ln -sf /etc/ssl/dhparam.pem /etc/apache2/dhparam.pem && \ + phpdismod \ + xdebug \ + xcache \ + xhprof \ + tideways \ + pcov \ + swoole \ + grpc \ + uopz \ + msgpack && \ + apt-get remove -y \ + php5.6* \ + php7.0* \ + php7.1* \ + php7.2* \ + php7.3* \ + php7.4* \ + php8.0* \ +# php8.1* \ + php8.2* \ + php8.3* \ + php8.4* && \ + rm -rfv /etc/php/{5.6,7.0,7.1,7.2,7.3,7.4,8.0,8.2,8.3,8.4} && \ php -m && \ php -v diff --git a/linux/ecosystem/apache2/php8.2/Dockerfile b/linux/ecosystem/apache2/php8.2/Dockerfile index 0376d7802..91783b68c 100644 --- a/linux/ecosystem/apache2/php8.2/Dockerfile +++ b/linux/ecosystem/apache2/php8.2/Dockerfile @@ -48,6 +48,29 @@ RUN apt-get update && \ dav_fs \ alias && \ ln -sf /etc/ssl/dhparam.pem /etc/apache2/dhparam.pem && \ + phpdismod \ + xdebug \ + xcache \ + xhprof \ + tideways \ + pcov \ + swoole \ + grpc \ + uopz \ + msgpack && \ + apt-get remove -y \ + php5.6* \ + php7.0* \ + php7.1* \ + php7.2* \ + php7.3* \ + php7.4* \ + php8.0* \ + php8.1* \ +# php8.2* \ + php8.3* \ + php8.4* && \ + rm -rfv /etc/php/{5.6,7.0,7.1,7.2,7.3,7.4,8.0,8.1,8.3,8.4} && \ php -m && \ php -v diff --git a/linux/ecosystem/apache2/php8.3/Dockerfile b/linux/ecosystem/apache2/php8.3/Dockerfile index 194d4febe..14e55ca61 100644 --- a/linux/ecosystem/apache2/php8.3/Dockerfile +++ b/linux/ecosystem/apache2/php8.3/Dockerfile @@ -48,6 +48,29 @@ RUN apt-get update && \ dav_fs \ alias && \ ln -sf /etc/ssl/dhparam.pem /etc/apache2/dhparam.pem && \ + phpdismod \ + xdebug \ + xcache \ + xhprof \ + tideways \ + pcov \ + swoole \ + grpc \ + uopz \ + msgpack && \ + apt-get remove -y \ + php5.6* \ + php7.0* \ + php7.1* \ + php7.2* \ + php7.3* \ + php7.4* \ + php8.0* \ + php8.1* \ + php8.2* \ +# php8.3* \ + php8.4* && \ + rm -rfv /etc/php/{5.6,7.0,7.1,7.2,7.3,7.4,8.0,8.1,8.2,8.4} && \ php -m && \ php -v diff --git a/linux/ecosystem/apache2/php8.4/Dockerfile b/linux/ecosystem/apache2/php8.4/Dockerfile index b4dda4234..14a089ade 100644 --- a/linux/ecosystem/apache2/php8.4/Dockerfile +++ b/linux/ecosystem/apache2/php8.4/Dockerfile @@ -2,9 +2,9 @@ FROM epicmorg/debian:bookworm-php8.4 LABEL maintainer="EpicMorg DevTeam, developer@epicm.org" ARG DEBIAN_FRONTEND=noninteractive +ENV PHP_VER=8.4 ENV PHP_MODULE_VER=20240924 ENV PHP_MODULE_PATH=/usr/lib/php/${PHP_MODULE_VER} -ENV PHP_VER=8.4 ENV PHP_DIR=/etc/php/${PHP_VER} ARG P4_PHP_INI=${PHP_DIR}/mods-available/perfroce.ini ARG SMB_PHP_INI=${PHP_DIR}/mods-available/smbclient.ini @@ -28,7 +28,7 @@ RUN apt-get update && \ libapache2-mod-xforward \ libapache2-mod-security2 && \ a2enmod \ - php8.3 \ + php8.4 \ rewrite \ ldap \ heartmonitor \ @@ -48,6 +48,29 @@ RUN apt-get update && \ dav_fs \ alias && \ ln -sf /etc/ssl/dhparam.pem /etc/apache2/dhparam.pem && \ + phpdismod \ + xdebug \ + xcache \ + xhprof \ + tideways \ + pcov \ + swoole \ + grpc \ + uopz \ + msgpack && \ + apt-get remove -y \ + php5.6* \ + php7.0* \ + php7.1* \ + php7.2* \ + php7.3* \ + php7.4* \ + php8.0* \ + php8.1* \ + php8.2* \ + php8.3* && \ +# php8.4* && \ + rm -rfv /etc/php/{5.6,7.0,7.1,7.2,7.3,7.4,8.0,8.1,8.2,8.3} && \ php -m && \ php -v @@ -76,7 +99,7 @@ RUN mkdir -p /etc/ldap && \ ################################################################## # Installing Bolt addon ################################################################## -#RUN echo "extension = ${PHP_MODULE_PATH}/phpBolt-extension-1.0.5-php83.so" >> ${PHP_DIR}/apache2/php.ini +#RUN echo "extension = ${PHP_MODULE_PATH}/phpBolt-extension-1.0.5-php84.so" >> ${PHP_DIR}/apache2/php.ini ################################################################## # Installing IOnCube addon diff --git a/linux/ecosystem/epicmorg/debian/12-bookworm/php/php5.6/Dockerfile b/linux/ecosystem/epicmorg/debian/12-bookworm/php/php5.6/Dockerfile index 96e7af30f..4e767f378 100644 --- a/linux/ecosystem/epicmorg/debian/12-bookworm/php/php5.6/Dockerfile +++ b/linux/ecosystem/epicmorg/debian/12-bookworm/php/php5.6/Dockerfile @@ -8,25 +8,14 @@ ENV PHP_DIR=/etc/php/${PHP_VER} ARG P4_PHP_INI=${PHP_DIR}/mods-available/perfroce.ini ARG CAS_PHP_INI=${PHP_DIR}/mods-available/cassandra.ini -#Install base packages -RUN apt-get update && \ - apt-get install -y --allow-unauthenticated \ - libmagickwand-dev \ - libmemcached-dev \ - imagemagick \ - libncurses5 \ - autoconf - ################################################################## -# Installing PHP5.5 +# Installing PHP5.6 ################################################################## RUN wget -O /etc/apt/trusted.gpg.d/php.gpg https://packages.sury.su/php/apt.gpg RUN sh -c 'echo "deb [trusted=yes] https://packages.sury.su/php/ $(lsb_release -sc) main" > /etc/apt/sources.list.d/php.list' RUN apt-get update && \ apt-get install -y --allow-unauthenticated \ - libmemcached-dev \ - libgmp-dev \ # php-pear \ php5.6 \ php5.6-cli \ @@ -73,7 +62,7 @@ RUN apt-get update && \ php5.6-mysqlnd-ms \ php5.6-oauth \ php5.6-odbc \ -# php5.6-opcache \ + php5.6-opcache \ php5.6-pgsql \ php5.6-phpdbg \ php5.6-propro \ @@ -97,7 +86,7 @@ RUN apt-get update && \ php5.6-tidy \ php5.6-uploadprogress \ # php5.6-xcache \ -# php5.6-xdebug \ + php5.6-xdebug \ php5.6-xhprof \ php5.6-xml \ php5.6-xmlrpc \ @@ -106,9 +95,23 @@ RUN apt-get update && \ php5.6-yaml \ php5.6-zip \ php5.6-zmq \ - smbclient libsmbclient \ + smbclient \ + libsmbclient \ sendmail && \ ln -sfv /etc/ssl/dhparam.pem /etc/php/dhparam.pem && \ + apt-get remove -y \ +# php5.6* \ + php7.0* \ + php7.1* \ + php7.2* \ + php7.3* \ + php7.4* \ + php8.0* \ + php8.1* \ + php8.2* \ + php8.3* \ + php8.4* && \ + rm -rfv /etc/php/{7.0,7.1,7.2,7.3,7.4,8.0,8.1,8.2,8.3,8.4} && \ update-alternatives --set php /usr/bin/php5.6 && \ # pear clear-cache && \ pear update-channels && \ @@ -158,6 +161,16 @@ RUN phpenmod \ xmlwriter \ xsl \ yaml && \ + phpdismod \ + xdebug \ + xcache \ + xhprof \ + tideways \ + pcov \ + swoole \ + grpc \ + uopz \ + msgpack && \ php -m && \ php -v diff --git a/linux/ecosystem/epicmorg/debian/12-bookworm/php/php7.0/Dockerfile b/linux/ecosystem/epicmorg/debian/12-bookworm/php/php7.0/Dockerfile index 80c50885d..34c0ae8e7 100644 --- a/linux/ecosystem/epicmorg/debian/12-bookworm/php/php7.0/Dockerfile +++ b/linux/ecosystem/epicmorg/debian/12-bookworm/php/php7.0/Dockerfile @@ -159,7 +159,7 @@ RUN apt-get update && \ php7.0-mysql \ php7.0-oauth \ php7.0-odbc \ -# php7.0-opcache \ + php7.0-opcache \ php7.0-pgsql \ php7.0-phpdbg \ php7.0-pinba \ @@ -189,7 +189,7 @@ RUN apt-get update && \ php7.0-uploadprogress \ php7.0-uuid \ php7.0-vips \ -# php7.0-xdebug \ + php7.0-xdebug \ php7.0-xhprof \ php7.0-xml \ php7.0-xmlrpc \ @@ -199,9 +199,23 @@ RUN apt-get update && \ php7.0-zip \ php7.0-zmq \ php7.0-zstd \ - smbclient libsmbclient \ + smbclient \ + libsmbclient \ sendmail && \ ln -sfv /etc/ssl/dhparam.pem /etc/php/dhparam.pem && \ + apt-get remove -y \ + php5.6* \ +# php7.0* \ + php7.1* \ + php7.2* \ + php7.3* \ + php7.4* \ + php8.0* \ + php8.1* \ + php8.2* \ + php8.3* \ + php8.4* && \ + rm -rfv /etc/php/{5.6,7.1,7.2,7.3,7.4,8.0,8.1,8.2,8.3,8.4} && \ update-alternatives --set php /usr/bin/php7.0 && \ # pear clear-cache && \ pear update-channels && \ @@ -251,6 +265,16 @@ RUN phpenmod \ xmlwriter \ xsl \ yaml && \ + phpdismod \ + xdebug \ + xcache \ + xhprof \ + tideways \ + pcov \ + swoole \ + grpc \ + uopz \ + msgpack && \ php -m && \ php -v diff --git a/linux/ecosystem/epicmorg/debian/12-bookworm/php/php7.1/Dockerfile b/linux/ecosystem/epicmorg/debian/12-bookworm/php/php7.1/Dockerfile index 2ee8896c1..78c29f3d8 100644 --- a/linux/ecosystem/epicmorg/debian/12-bookworm/php/php7.1/Dockerfile +++ b/linux/ecosystem/epicmorg/debian/12-bookworm/php/php7.1/Dockerfile @@ -159,7 +159,7 @@ RUN apt-get update && \ php7.1-mysql \ php7.1-oauth \ php7.1-odbc \ -# php7.1-opcache \ + php7.1-opcache \ php7.1-pcov \ php7.1-pgsql \ php7.1-phpdbg \ @@ -187,11 +187,11 @@ RUN apt-get update && \ php7.1-sybase \ php7.1-tideways \ php7.1-tidy \ -# php7.1-uopz \ + php7.1-uopz \ php7.1-uploadprogress \ php7.1-uuid \ php7.1-vips \ -# php7.1-xdebug \ + php7.1-xdebug \ php7.1-xhprof \ php7.1-xml \ php7.1-xmlrpc \ @@ -201,9 +201,23 @@ RUN apt-get update && \ php7.1-zip \ php7.1-zmq \ php7.1-zstd \ - smbclient libsmbclient \ + smbclient \ + libsmbclient \ sendmail && \ ln -sfv /etc/ssl/dhparam.pem /etc/php/dhparam.pem && \ + apt-get remove -y \ + php5.6* \ + php7.0* \ +# php7.1* \ + php7.2* \ + php7.3* \ + php7.4* \ + php8.0* \ + php8.1* \ + php8.2* \ + php8.3* \ + php8.4* && \ + rm -rfv /etc/php/{5.6,7.0,7.2,7.3,7.4,8.0,8.1,8.2,8.3,8.4} && \ update-alternatives --set php /usr/bin/php7.1 && \ # pear clear-cache && \ pear update-channels && \ @@ -253,6 +267,16 @@ RUN phpenmod \ xmlwriter \ xsl \ yaml && \ + phpdismod \ + xdebug \ + xcache \ + xhprof \ + tideways \ + pcov \ + swoole \ + grpc \ + uopz \ + msgpack && \ php -m && \ php -v diff --git a/linux/ecosystem/epicmorg/debian/12-bookworm/php/php7.2/Dockerfile b/linux/ecosystem/epicmorg/debian/12-bookworm/php/php7.2/Dockerfile index e7abcdacb..9cd2fa9a5 100644 --- a/linux/ecosystem/epicmorg/debian/12-bookworm/php/php7.2/Dockerfile +++ b/linux/ecosystem/epicmorg/debian/12-bookworm/php/php7.2/Dockerfile @@ -160,7 +160,7 @@ RUN apt-get update && \ php7.2-mysql \ php7.2-oauth \ php7.2-odbc \ -# php7.2-opcache \ + php7.2-opcache \ php7.2-pcov \ php7.2-pgsql \ # php7.2-phalcon4 \ @@ -188,11 +188,11 @@ RUN apt-get update && \ php7.2-sybase \ php7.2-tideways \ php7.2-tidy \ -# php7.2-uopz \ + php7.2-uopz \ php7.2-uploadprogress \ php7.2-uuid \ php7.2-vips \ -# php7.2-xdebug \ + php7.2-xdebug \ php7.2-xhprof \ php7.2-xml \ php7.2-xmlrpc \ @@ -202,9 +202,23 @@ RUN apt-get update && \ php7.2-zip \ php7.2-zmq \ php7.2-zstd \ - smbclient libsmbclient \ + smbclient \ + libsmbclient \ sendmail && \ ln -sfv /etc/ssl/dhparam.pem /etc/php/dhparam.pem && \ + apt-get remove -y \ + php5.6* \ + php7.0* \ + php7.1* \ +# php7.2* \ + php7.3* \ + php7.4* \ + php8.0* \ + php8.1* \ + php8.2* \ + php8.3* \ + php8.4* && \ + rm -rfv /etc/php/{5.6,7.0,7.1,7.3,7.4,8.0,8.1,8.2,8.3,8.4} && \ update-alternatives --set php /usr/bin/php7.2 && \ # pear clear-cache && \ pear update-channels && \ @@ -254,6 +268,16 @@ RUN phpenmod \ xmlwriter \ xsl \ yaml && \ + phpdismod \ + xdebug \ + xcache \ + xhprof \ + tideways \ + pcov \ + swoole \ + grpc \ + uopz \ + msgpack && \ php -m && \ php -v diff --git a/linux/ecosystem/epicmorg/debian/12-bookworm/php/php7.3/Dockerfile b/linux/ecosystem/epicmorg/debian/12-bookworm/php/php7.3/Dockerfile index f4969b6d1..b187168e1 100644 --- a/linux/ecosystem/epicmorg/debian/12-bookworm/php/php7.3/Dockerfile +++ b/linux/ecosystem/epicmorg/debian/12-bookworm/php/php7.3/Dockerfile @@ -160,7 +160,7 @@ RUN apt-get update && \ php7.3-mysql \ php7.3-oauth \ php7.3-odbc \ -# php7.3-opcache \ + php7.3-opcache \ php7.3-pcov \ php7.3-pgsql \ # php7.3-phalcon4 \ @@ -189,11 +189,11 @@ RUN apt-get update && \ php7.3-sybase \ php7.3-tideways \ php7.3-tidy \ -# php7.3-uopz \ + php7.3-uopz \ php7.3-uploadprogress \ php7.3-uuid \ php7.3-vips \ -# php7.3-xdebug \ + php7.3-xdebug \ php7.3-xhprof \ php7.3-xml \ php7.3-xmlrpc \ @@ -203,9 +203,23 @@ RUN apt-get update && \ php7.3-zip \ php7.3-zmq \ php7.3-zstd \ - smbclient libsmbclient \ + smbclient \ + libsmbclient \ sendmail && \ ln -sfv /etc/ssl/dhparam.pem /etc/php/dhparam.pem && \ + apt-get remove -y \ + php5.6* \ + php7.0* \ + php7.1* \ + php7.2* \ +# php7.3* \ + php7.4* \ + php8.0* \ + php8.1* \ + php8.2* \ + php8.3* \ + php8.4* && \ + rm -rfv /etc/php/{5.6,7.0,7.1,7.2,7.4,8.0,8.1,8.2,8.3,8.4} && \ update-alternatives --set php /usr/bin/php7.3 && \ # pear clear-cache && \ pear update-channels && \ @@ -259,6 +273,16 @@ RUN phpenmod \ xmlwriter \ xsl \ yaml && \ + phpdismod \ + xdebug \ + xcache \ + xhprof \ + tideways \ + pcov \ + swoole \ + grpc \ + uopz \ + msgpack && \ php -m && \ php -v diff --git a/linux/ecosystem/epicmorg/debian/12-bookworm/php/php7.4/Dockerfile b/linux/ecosystem/epicmorg/debian/12-bookworm/php/php7.4/Dockerfile index 886d649a4..03519c723 100644 --- a/linux/ecosystem/epicmorg/debian/12-bookworm/php/php7.4/Dockerfile +++ b/linux/ecosystem/epicmorg/debian/12-bookworm/php/php7.4/Dockerfile @@ -167,19 +167,19 @@ RUN apt-get update && \ php7.4-mysql \ php7.4-oauth \ php7.4-odbc \ -# php7.4-opcache \ + php7.4-opcache \ php7.4-pcov \ php7.4-pgsql \ php7.4-phalcon4 \ # php7.4-phalcon5 \ php7.4-phpdbg \ php7.4-pinba \ -# php7.4-pq \ + php7.4-pq \ php7.4-propro \ php7.4-protobuf \ php7.4-ps \ php7.4-pspell \ -# php7.4-psr \ + php7.4-psr \ php7.4-radius \ php7.4-raphf \ php7.4-rdkafka \ @@ -196,11 +196,11 @@ RUN apt-get update && \ php7.4-sybase \ php7.4-tideways \ php7.4-tidy \ -# php7.4-uopz \ + php7.4-uopz \ php7.4-uploadprogress \ php7.4-uuid \ php7.4-vips \ -# php7.4-xdebug \ + php7.4-xdebug \ php7.4-xhprof \ php7.4-xml \ php7.4-xmlrpc \ @@ -210,9 +210,23 @@ RUN apt-get update && \ php7.4-zip \ php7.4-zmq \ php7.4-zstd \ - smbclient libsmbclient \ + smbclient \ + libsmbclient \ sendmail && \ ln -sfv /etc/ssl/dhparam.pem /etc/php/dhparam.pem && \ + apt-get remove -y \ + php5.6* \ + php7.0* \ + php7.1* \ + php7.2* \ + php7.3* \ +# php7.4* \ + php8.0* \ + php8.1* \ + php8.2* \ + php8.3* \ + php8.4* && \ + rm -rfv /etc/php/{5.6,7.0,7.1,7.2,7.3,8.0,8.1,8.2,8.3,8.4} && \ update-alternatives --set php /usr/bin/php7.4 && \ # pear clear-cache && \ pear update-channels && \ @@ -266,6 +280,16 @@ RUN phpenmod \ xmlwriter \ xsl \ yaml && \ + phpdismod \ + xdebug \ + xcache \ + xhprof \ + tideways \ + pcov \ + swoole \ + grpc \ + uopz \ + msgpack && \ php -m && \ php -v diff --git a/linux/ecosystem/epicmorg/debian/12-bookworm/php/php8.0/Dockerfile b/linux/ecosystem/epicmorg/debian/12-bookworm/php/php8.0/Dockerfile index 56bb0c09f..7fff26ef3 100644 --- a/linux/ecosystem/epicmorg/debian/12-bookworm/php/php8.0/Dockerfile +++ b/linux/ecosystem/epicmorg/debian/12-bookworm/php/php8.0/Dockerfile @@ -66,7 +66,7 @@ RUN apt-get update && \ php8.0-mysql \ php8.0-oauth \ php8.0-odbc \ -# php8.0-opcache \ + php8.0-opcache \ php8.0-pcov \ php8.0-pgsql \ php8.0-phalcon5 \ @@ -94,11 +94,11 @@ RUN apt-get update && \ php8.0-sybase \ php8.0-tideways \ php8.0-tidy \ -# php8.0-uopz \ + php8.0-uopz \ php8.0-uploadprogress \ php8.0-uuid \ php8.0-vips \ -# php8.0-xdebug \ + php8.0-xdebug \ php8.0-xhprof \ php8.0-xml \ php8.0-xmlrpc \ @@ -108,9 +108,23 @@ RUN apt-get update && \ php8.0-zip \ php8.0-zmq \ php8.0-zstd \ - smbclient libsmbclient \ + smbclient \ + libsmbclient \ sendmail && \ ln -sfv /etc/ssl/dhparam.pem /etc/php/dhparam.pem && \ + apt-get remove -y \ + php5.6* \ + php7.0* \ + php7.1* \ + php7.2* \ + php7.3* \ + php7.4* \ +# php8.0* \ + php8.1* \ + php8.2* \ + php8.3* \ + php8.4* && \ + rm -rfv /etc/php/{5.6,7.0,7.1,7.2,7.3,7.4,8.1,8.2,8.3,8.4} && \ update-alternatives --set php /usr/bin/php8.0 && \ # pear clear-cache && \ pear update-channels && \ @@ -164,6 +178,16 @@ RUN phpenmod \ xmlwriter \ xsl \ yaml && \ + phpdismod \ + xdebug \ + xcache \ + xhprof \ + tideways \ + pcov \ + swoole \ + grpc \ + uopz \ + msgpack && \ php -m && \ php -v @@ -241,6 +265,21 @@ RUN echo "extension = ${PHP_MODULE_PATH}/perforce_php80-ssl1.1.1.so" > ${P4_PHP_ ln -sf ${P4_PHP_INI} ${PHP_DIR}/fpm/conf.d/perforce.ini && \ php -m && \ php -v + +################################################################## +# Installing IOnCube addon +################################################################# +# NOT OFFICIALLY SUPPORTED +# +#ADD https://downloads.ioncube.com/loader_downloads/ioncube_loaders_lin_x86-64.tar.gz /tmp/ioncube.tar.gz +#RUN tar -C /tmp -xvf /tmp/ioncube.tar.gz && \ +# cp /tmp/ioncube/ioncube_loader_lin_8.0.so ${PHP_MODULE_PATH} && \ +## echo "zend_extension = ${PHP_MODULE_PATH}/ioncube_loader_lin_8.0.so" >> ${PHP_DIR}/apache2/php.ini && \ +# echo "zend_extension = ${PHP_MODULE_PATH}/ioncube_loader_lin_8.0.so" >> ${PHP_DIR}/cgi/php.ini && \ +# echo "zend_extension = ${PHP_MODULE_PATH}/ioncube_loader_lin_8.0.so" >> ${PHP_DIR}/cli/php.ini && \ +# echo "zend_extension = ${PHP_MODULE_PATH}/ioncube_loader_lin_8.0.so" >> ${PHP_DIR}/fpm/php.ini && \ +# php -m && \ +# php -v ################################################################## # Installing Composer addon diff --git a/linux/ecosystem/epicmorg/debian/12-bookworm/php/php8.1/Dockerfile b/linux/ecosystem/epicmorg/debian/12-bookworm/php/php8.1/Dockerfile index a959a8d41..00a58dbcd 100644 --- a/linux/ecosystem/epicmorg/debian/12-bookworm/php/php8.1/Dockerfile +++ b/linux/ecosystem/epicmorg/debian/12-bookworm/php/php8.1/Dockerfile @@ -66,7 +66,7 @@ RUN apt-get update && \ php8.1-mysql \ php8.1-oauth \ php8.1-odbc \ -# php8.1-opcache \ + php8.1-opcache \ php8.1-pcov \ php8.1-pgsql \ # php8.1-phalcon5 \ @@ -94,11 +94,11 @@ RUN apt-get update && \ php8.1-sybase \ php8.1-tideways \ php8.1-tidy \ -# php8.1-uopz \ + php8.1-uopz \ php8.1-uploadprogress \ php8.1-uuid \ php8.1-vips \ -# php8.1-xdebug \ + php8.1-xdebug \ php8.1-xhprof \ php8.1-xml \ php8.1-xmlrpc \ @@ -108,9 +108,23 @@ RUN apt-get update && \ php8.1-zip \ php8.1-zmq \ php8.1-zstd \ - smbclient libsmbclient \ + smbclient \ + libsmbclient \ sendmail && \ ln -sfv /etc/ssl/dhparam.pem /etc/php/dhparam.pem && \ + apt-get remove -y \ + php5.6* \ + php7.0* \ + php7.1* \ + php7.2* \ + php7.3* \ + php7.4* \ + php8.0* \ +# php8.1* \ + php8.2* \ + php8.3* \ + php8.4* && \ + rm -rfv /etc/php/{5.6,7.0,7.1,7.2,7.3,7.4,8.0,8.2,8.3,8.4} && \ update-alternatives --set php /usr/bin/php8.1 && \ # pear clear-cache && \ pear update-channels && \ @@ -164,6 +178,16 @@ RUN phpenmod \ xmlwriter \ xsl \ yaml && \ + phpdismod \ + xdebug \ + xcache \ + xhprof \ + tideways \ + pcov \ + swoole \ + grpc \ + uopz \ + msgpack && \ php -m && \ php -v diff --git a/linux/ecosystem/epicmorg/debian/12-bookworm/php/php8.2/Dockerfile b/linux/ecosystem/epicmorg/debian/12-bookworm/php/php8.2/Dockerfile index f26832c47..39a08c08f 100644 --- a/linux/ecosystem/epicmorg/debian/12-bookworm/php/php8.2/Dockerfile +++ b/linux/ecosystem/epicmorg/debian/12-bookworm/php/php8.2/Dockerfile @@ -66,7 +66,7 @@ RUN apt-get update && \ php8.2-mysql \ php8.2-oauth \ php8.2-odbc \ -# php8.2-opcache \ + php8.2-opcache \ php8.2-pcov \ php8.2-pgsql \ # php8.2-phalcon5 \ @@ -94,11 +94,11 @@ RUN apt-get update && \ php8.2-sybase \ php8.2-tideways \ php8.2-tidy \ -# php8.2-uopz \ + php8.2-uopz \ php8.2-uploadprogress \ php8.2-uuid \ php8.2-vips \ -# php8.2-xdebug \ + php8.2-xdebug \ php8.2-xhprof \ php8.2-xml \ php8.2-xmlrpc \ @@ -108,9 +108,23 @@ RUN apt-get update && \ php8.2-zip \ php8.2-zmq \ php8.2-zstd \ - smbclient libsmbclient \ + smbclient \ + libsmbclient \ sendmail && \ ln -sfv /etc/ssl/dhparam.pem /etc/php/dhparam.pem && \ + apt-get remove -y \ + php5.6* \ + php7.0* \ + php7.1* \ + php7.2* \ + php7.3* \ + php7.4* \ + php8.0* \ + php8.1* \ +# php8.2* \ + php8.3* \ + php8.4* && \ + rm -rfv /etc/php/{5.6,7.0,7.1,7.2,7.3,7.4,8.0,8.1,8.3,8.4} && \ update-alternatives --set php /usr/bin/php8.2 && \ # pear clear-cache && \ pear update-channels && \ @@ -164,6 +178,16 @@ RUN phpenmod \ xmlwriter \ xsl \ yaml && \ + phpdismod \ + xdebug \ + xcache \ + xhprof \ + tideways \ + pcov \ + swoole \ + grpc \ + uopz \ + msgpack && \ php -m && \ php -v diff --git a/linux/ecosystem/epicmorg/debian/12-bookworm/php/php8.3/Dockerfile b/linux/ecosystem/epicmorg/debian/12-bookworm/php/php8.3/Dockerfile index 413d822d6..121580831 100644 --- a/linux/ecosystem/epicmorg/debian/12-bookworm/php/php8.3/Dockerfile +++ b/linux/ecosystem/epicmorg/debian/12-bookworm/php/php8.3/Dockerfile @@ -65,7 +65,7 @@ RUN apt-get update && \ php8.3-mysql \ php8.3-oauth \ php8.3-odbc \ -# php8.3-opcache \ + php8.3-opcache \ php8.3-pcov \ php8.3-pgsql \ # php8.3-phalcon5 \ @@ -91,11 +91,11 @@ RUN apt-get update && \ php8.3-swoole \ php8.3-sybase \ php8.3-tidy \ -# php8.3-uopz \ + php8.3-uopz \ php8.3-uploadprogress \ php8.3-uuid \ php8.3-vips \ -# php8.3-xdebug \ + php8.3-xdebug \ php8.3-xhprof \ php8.3-xml \ php8.3-xmlrpc \ @@ -105,9 +105,23 @@ RUN apt-get update && \ php8.3-zip \ php8.3-zmq \ php8.3-zstd \ - smbclient libsmbclient \ + smbclient \ + libsmbclient \ sendmail && \ ln -sfv /etc/ssl/dhparam.pem /etc/php/dhparam.pem && \ + apt-get remove -y \ + php5.6* \ + php7.0* \ + php7.1* \ + php7.2* \ + php7.3* \ + php7.4* \ + php8.0* \ + php8.1* \ + php8.2* \ +# php8.3* \ + php8.4* && \ + rm -rfv /etc/php/{5.6,7.0,7.1,7.2,7.3,7.4,8.0,8.1,8.2,8.4} && \ update-alternatives --set php /usr/bin/php8.3 && \ # pear clear-cache && \ pear update-channels && \ @@ -161,6 +175,16 @@ RUN phpenmod \ xmlwriter \ xsl \ yaml && \ + phpdismod \ + xdebug \ + xcache \ + xhprof \ + tideways \ + pcov \ + swoole \ + grpc \ + uopz \ + msgpack && \ php -m && \ php -v diff --git a/linux/ecosystem/epicmorg/debian/12-bookworm/php/php8.4/Dockerfile b/linux/ecosystem/epicmorg/debian/12-bookworm/php/php8.4/Dockerfile index ac0f4b7c5..a2abc9682 100644 --- a/linux/ecosystem/epicmorg/debian/12-bookworm/php/php8.4/Dockerfile +++ b/linux/ecosystem/epicmorg/debian/12-bookworm/php/php8.4/Dockerfile @@ -40,7 +40,7 @@ RUN apt-get update && \ php8.4-mbstring \ php8.4-mysql \ php8.4-odbc \ -# php8.4-opcache \ + php8.4-opcache \ php8.4-pgsql \ php8.4-phpdbg \ php8.4-readline \ @@ -52,9 +52,23 @@ RUN apt-get update && \ php8.4-xml \ php8.4-xsl \ php8.4-zip \ - smbclient libsmbclient \ + smbclient \ + libsmbclient \ sendmail && \ ln -sfv /etc/ssl/dhparam.pem /etc/php/dhparam.pem && \ + apt-get remove -y \ + php5.6* \ + php7.0* \ + php7.1* \ + php7.2* \ + php7.3* \ + php7.4* \ + php8.0* \ + php8.1* \ + php8.2* \ + php8.3* && \ +# php8.4* && \ + rm -rfv /etc/php/{5.6,7.0,7.1,7.2,7.3,7.4,8.0,8.1,8.2,8.3} && \ update-alternatives --set php /usr/bin/php8.4 && \ # pear clear-cache && \ pear update-channels && \ @@ -108,6 +122,16 @@ RUN phpenmod \ xmlwriter \ xsl \ yaml && \ + phpdismod \ + xdebug \ + xcache \ + xhprof \ + tideways \ + pcov \ + swoole \ + grpc \ + uopz \ + msgpack && \ php -m && \ php -v @@ -138,7 +162,7 @@ RUN cd /tmp/cassandra-php-driver && \ # Cassandra PHP Drivers Install ############################################################################## #RUN pecl install cassandra && \ -#COPY usr/lib/php/20220829/cassandra.so ${PHP_MODULE_PATH}/cassandra.so +#COPY usr/lib/php/20240924/cassandra.so ${PHP_MODULE_PATH}/cassandra.so #RUN echo "extension = ${PHP_MODULE_PATH}/cassandra.so" > ${CAS_PHP_INI} && \ # ln -sf ${CAS_PHP_INI} ${PHP_DIR}/cgi/conf.d/cassandra.ini && \ # ln -sf ${CAS_PHP_INI} ${PHP_DIR}/cli/conf.d/cassandra.ini && \ @@ -175,11 +199,11 @@ RUN cd /tmp/cassandra-php-driver && \ ################################################################# ADD https://downloads.ioncube.com/loader_downloads/ioncube_loaders_lin_x86-64.tar.gz /tmp/ioncube.tar.gz RUN tar -C /tmp -xvf /tmp/ioncube.tar.gz && \ - cp /tmp/ioncube/ioncube_loader_lin_8.3.so ${PHP_MODULE_PATH} && \ -## echo "zend_extension = ${PHP_MODULE_PATH}/ioncube_loader_lin_8.3.so" >> ${PHP_DIR}/apache2/php.ini && \ - echo "zend_extension = ${PHP_MODULE_PATH}/ioncube_loader_lin_8.3.so" >> ${PHP_DIR}/cgi/php.ini && \ - echo "zend_extension = ${PHP_MODULE_PATH}/ioncube_loader_lin_8.3.so" >> ${PHP_DIR}/cli/php.ini && \ - echo "zend_extension = ${PHP_MODULE_PATH}/ioncube_loader_lin_8.3.so" >> ${PHP_DIR}/fpm/php.ini && \ + cp /tmp/ioncube/ioncube_loader_lin_8.4.so ${PHP_MODULE_PATH} && \ +## echo "zend_extension = ${PHP_MODULE_PATH}/ioncube_loader_lin_8.4.so" >> ${PHP_DIR}/apache2/php.ini && \ + echo "zend_extension = ${PHP_MODULE_PATH}/ioncube_loader_lin_8.4.so" >> ${PHP_DIR}/cgi/php.ini && \ + echo "zend_extension = ${PHP_MODULE_PATH}/ioncube_loader_lin_8.4.so" >> ${PHP_DIR}/cli/php.ini && \ + echo "zend_extension = ${PHP_MODULE_PATH}/ioncube_loader_lin_8.4.so" >> ${PHP_DIR}/fpm/php.ini && \ php -m && \ php -v diff --git a/linux/ecosystem/nginx/latest/mainline/php/Dockerfile b/linux/ecosystem/nginx/latest/mainline/php/Dockerfile index 23b876bd2..1b6e9b7bd 100644 --- a/linux/ecosystem/nginx/latest/mainline/php/Dockerfile +++ b/linux/ecosystem/nginx/latest/mainline/php/Dockerfile @@ -159,9 +159,22 @@ RUN apt-get update && \ php7.4-smbclient \ php7.4-yaml \ php7.4-geoip \ - smbclient libsmbclient \ + smbclient \ + libsmbclient \ sendmail && \ ln -sfv /etc/ssl/dhparam.pem /etc/php/dhparam.pem && \ + apt-get remove -y \ + php5.6* \ + php7.0* \ + php7.1* \ + php7.2* \ + php7.3* \ +# php7.4* \ + php8.0* \ + php8.1* \ + php8.2* \ + php8.3* \ + php8.4* && \ update-alternatives --set php /usr/bin/php7.4 && \ pear upgrade && \ pear update-channels && \ @@ -209,6 +222,16 @@ RUN phpenmod \ xmlwriter \ xsl \ yaml && \ + phpdismod \ + xdebug \ + xcache \ + xhprof \ + tideways \ + pcov \ + swoole \ + grpc \ + uopz \ + msgpack && \ php -m && \ php -v diff --git a/linux/ecosystem/teamcity/agent/latest/Dockerfile b/linux/ecosystem/teamcity/agent/latest/Dockerfile index c31b699d7..7eefbec05 100644 --- a/linux/ecosystem/teamcity/agent/latest/Dockerfile +++ b/linux/ecosystem/teamcity/agent/latest/Dockerfile @@ -1,41 +1,11 @@ -FROM epicmorg/debian:bookworm-develop-jdk21 +FROM epicmorg/teamcity-agent:minimal LABEL maintainer="EpicMorg DevTeam, developer@epicm.org" ARG DEBIAN_FRONTEND=noninteractive ################################################################## -# teamcity minimal agent +# OCI setup: Buildah, Podman, Kaniko, Docker ################################################################## -LABEL dockerImage.teamcity.version="latest" \ - dockerImage.teamcity.buildNumber="latest" - -VOLUME /data/teamcity_agent/conf - -ENV CONFIG_FILE=/data/teamcity_agent/conf/buildAgent.properties -ENV GIT_SSH_VARIANT=ssh - -COPY run-agent.sh /run-agent.sh -RUN chmod +x /run-agent.sh && \ - sync - -COPY run-services.sh /run-services.sh -RUN chmod +x /run-services.sh && \ - sync - -ARG TC_AGENT_URL=https://teamcity.jetbrains.com/update/buildAgent.zip -ADD ${TC_AGENT_URL} /tmp -RUN unzip -q /tmp/buildAgent.zip -d /opt/buildagent && \ - mv /opt/buildagent/conf /opt/buildagent/conf_dist && \ - rm -rfv /tmp/buildAgent.zip - -RUN useradd -m buildagent && \ - chmod +x /opt/buildagent/bin/*.sh && \ - chmod +x /run-agent.sh /run-services.sh && sync - -################################################################## -# teamcity docker setup -################################################################## - -#Install packages +# https://docs.docker.com/build/architecture/#install-buildx RUN install -m 0755 -d /etc/apt/keyrings && \ curl -fsSL https://download.docker.com/linux/debian/gpg -o /etc/apt/keyrings/docker.asc && \ chmod a+r /etc/apt/keyrings/docker.asc && \ @@ -47,45 +17,61 @@ RUN install -m 0755 -d /etc/apt/keyrings && \ containerd.io \ docker-buildx-plugin \ docker-compose-plugin \ - buildah \ - fuse-overlayfs \ - systemd && \ + containerd.io \ + buildah \ + podman \ + podman-compose \ + fuse-overlayfs && \ + pip3 install --break-system-packages --no-cache-dir \ + kaniko-wrapper \ + buildah-wrapper && \ systemctl disable docker && \ - docker --version && \ - buildah --version - -# A better fix for TW-52939 Dockerfile build fails because of aufs -VOLUME ["/var/lib/docker", "/var/lib/containers"] - -COPY run-docker.sh /services/run-docker.sh -COPY etc/containers/registries.conf /etc/containers/registries.conf -COPY etc/containers/storage.conf /etc/containers/storage.conf -RUN chmod +x /services/run-docker.sh && \ - sync - -################################################################## -# teamcity docker compose setup -################################################################## - -#Install packages -RUN export DOCKER_COMPOSE_VERSION=`curl --silent https://api.github.com/repos/docker/compose/releases/latest | jq .name -r` && \ + systemctl disable podman && \ + rm -rf /bin/docker-compose && \ + rm -rf /sbin/docker-compose && \ + rm -rf /usr/bin/docker-compose && \ + rm -rf /usr/sbin/docker-compose && \ + rm -rf /usr/local/bin/docker-compose && \ + rm -rf /usr/local/sbin/docker-compose && \ + export DOCKER_COMPOSE_VERSION=`curl --silent https://api.github.com/repos/docker/compose/releases/latest | jq .name -r` && \ echo "Latest compose is: ${DOCKER_COMPOSE_VERSION}" && \ curl -SL https://github.com/docker/compose/releases/download/${DOCKER_COMPOSE_VERSION}/docker-compose-Linux-x86_64 -o /usr/local/bin/docker-compose && \ - chmod +x /usr/local/bin/docker-compose - -################################################################## -# cleaninig up -################################################################## -RUN apt clean -y && \ + chmod +x /usr/local/bin/docker-compose && \ +# cleanup + apt clean -y && \ apt-get clean all && \ apt autoclean -y && \ rm -rfv /var/lib/apt/lists/* && \ rm -rfv /var/cache/apt/archives/*.deb && \ + rm -rfv /tmp/* + +################################################################## +# TeamCity Agent post-setup +################################################################## +ENV BUILDAH_FORMAT=docker +ENV BUILDAH_ISOLATION=docker +ENV DOCKER_HOST="unix:///var/run/docker.sock" +ENV PODMAN_HOST="unix:///var/run/docker.sock" + +COPY etc/ /etc/ + +################################################################## +# Cleanup +################################################################## +RUN echo "clean up" && \ + apt-get clean -y && \ + apt-get autoclean -y && \ + rm -rfv /var/lib/apt/lists/* && \ + rm -rfv /var/cache/apt/archives/*.deb && \ rm -rfv /root/tmp/* && \ rm -rfv /tmp/* -CMD ["/run-services.sh"] +################################################################## +# final config +################################################################## +WORKDIR ${AGENT_DIST} -EXPOSE 9090 +# A better fix for TW-52939 Dockerfile build fails because of aufs +VOLUME ["/var/lib/docker", "/var/lib/containers", "/var/tmp"] RUN updatedb diff --git a/linux/ecosystem/teamcity/agent/latest/etc/supervisor/conf.d/docker-service.conf b/linux/ecosystem/teamcity/agent/latest/etc/supervisor/conf.d/docker-service.conf new file mode 100644 index 000000000..faaafcaf4 --- /dev/null +++ b/linux/ecosystem/teamcity/agent/latest/etc/supervisor/conf.d/docker-service.conf @@ -0,0 +1,13 @@ +[program:dockerd] +command=/usr/bin/dockerd --host unix:///var/run/docker.sock --experimental --iptables=false --bridge=none --log-level=warn +autostart=true +autorestart=true +killasgroup=true +stopasgroup=true +stdout_logfile=/var/log/supervisor/dockerd.out.log +stdout_logfile_maxbytes=128MB +stderr_logfile=/var/log/supervisor/dockerd.err.log +stderr_logfile_maxbytes=128MB +user=root +priority=1 +startretries=5 diff --git a/linux/ecosystem/teamcity/agent/latest/run-docker.sh b/linux/ecosystem/teamcity/agent/latest/run-docker.sh deleted file mode 100755 index 41b5e68e5..000000000 --- a/linux/ecosystem/teamcity/agent/latest/run-docker.sh +++ /dev/null @@ -1,7 +0,0 @@ -#!/bin/bash - -if [ "$DOCKER_IN_DOCKER" = "start" ] ; then - rm /var/run/docker.pid 2>/dev/null - service docker start - echo "Docker daemon started" -fi diff --git a/linux/ecosystem/teamcity/agent/latest/run-services.sh b/linux/ecosystem/teamcity/agent/latest/run-services.sh deleted file mode 100755 index a574dd68a..000000000 --- a/linux/ecosystem/teamcity/agent/latest/run-services.sh +++ /dev/null @@ -1,15 +0,0 @@ -#!/bin/bash - -echo '/run-services.sh' - -for entry in /services/*.sh -do - if [[ -f "$entry" ]]; then - echo "$entry" - [[ ! -x "$entry" ]] && (chmod +x "$entry"; sync) - "$entry" - fi -done - -echo '/run-agent.sh' -exec '/run-agent.sh' diff --git a/linux/ecosystem/teamcity/agent/minimal/Dockerfile b/linux/ecosystem/teamcity/agent/minimal/Dockerfile new file mode 100644 index 000000000..5cb75b27c --- /dev/null +++ b/linux/ecosystem/teamcity/agent/minimal/Dockerfile @@ -0,0 +1,56 @@ +FROM epicmorg/debian:bookworm-develop-jdk21 +LABEL maintainer="EpicMorg DevTeam, developer@epicm.org" +ARG DEBIAN_FRONTEND=noninteractive + +################################################################## +# TeamCity Agent setup +################################################################## +LABEL dockerImage.teamcity.version="latest" \ + dockerImage.teamcity.buildNumber="latest" + +USER root + +ENV LANG=C.UTF-8 +ENV GIT_SSH_VARIANT=ssh +# TeamCity Agent dirs +ENV AGENT_DIST=${EMG_LOCAL_BASE_DIR}/teamcity/agent +ENV CONFIG_DIR=${AGENT_DIST}/conf +ENV CONFIG_FILE=${AGENT_DIST}/conf/buildAgent.properties +ENV LOG_DIR=${AGENT_DIST}/logs + +COPY etc/ /etc/ +COPY usr/local/share/epicmorg/ /usr/local/share/epicmorg/ + +ADD https://teamcity.jetbrains.com/update/buildAgent.zip /tmp/buildAgent.zip +RUN apt-get update && \ + apt-get install -y --no-install-recommends --allow-unauthenticated \ + supervisor && \ + unzip -q /tmp/buildAgent.zip -d ${AGENT_DIST} && \ + mv -fv ${AGENT_DIST}/conf ${AGENT_DIST}/conf_dist && \ + rm -rfv /tmp/buildAgent.zip && \ + useradd -m buildagent && \ + chmod +x ${AGENT_DIST}/bin/*.sh && \ + chmod +x ${AGENT_DIST}/sbin/*.sh && \ + sync + +################################################################## +# Cleanup +################################################################## +RUN echo "clean up" && \ + apt-get clean -y && \ + apt-get autoclean -y && \ + rm -rfv /var/lib/apt/lists/* && \ + rm -rfv /var/cache/apt/archives/*.deb && \ + rm -rfv /root/tmp/* && \ + rm -rfv /tmp/* + +################################################################## +# final config +################################################################## +WORKDIR ${AGENT_DIST} + +VOLUME ["${AGENT_DIST}/conf", "${AGENT_DIST}/work", "${AGENT_DIST}/logs", "/var/log/supervisor"] + +CMD ["/usr/bin/supervisord"] + +RUN updatedb diff --git a/linux/ecosystem/teamcity/agent/minimal/Makefile b/linux/ecosystem/teamcity/agent/minimal/Makefile new file mode 100644 index 000000000..1e4371492 --- /dev/null +++ b/linux/ecosystem/teamcity/agent/minimal/Makefile @@ -0,0 +1,44 @@ +all: app + +app: + make pip + make build + make deploy + make clean + +build: + make build-buildah + +deploy: + make deploy-buildah + +build-buildah: + buildah-wrapper --build + +deploy-buildah: + buildah-wrapper --deploy + +build-kaniko: + kaniko-wrapper --kaniko-image gcr.io/kaniko-project/executor:debug --dry-run + +deploy-kaniko: + kaniko-wrapper --deploy --kaniko-image gcr.io/kaniko-project/executor:debug + +build-compose: + docker-compose build --compress --parallel --progress plain + +deploy-compose: + docker-compose push + +clean: + docker container prune -f + docker image prune -f + docker network prune -f + docker volume prune -f + docker system prune -af + buildah rm -a + buildah rmi -a + +pip: + pip3 install --break-system-packages --no-cache-dir kaniko-wrapper buildah-wrapper + pip install --break-system-packages --no-cache-dir kaniko-wrapper buildah-wrapper \ No newline at end of file diff --git a/linux/ecosystem/teamcity/agent/minimal/README.md b/linux/ecosystem/teamcity/agent/minimal/README.md new file mode 100644 index 000000000..b53fe01e8 --- /dev/null +++ b/linux/ecosystem/teamcity/agent/minimal/README.md @@ -0,0 +1,93 @@ +## TeamCity Minimal Build Agent + +[](https://confluence.jetbrains.com/display/ALL/JetBrains+on+GitHub) + +This is an official [JetBrains TeamCity](https://www.jetbrains.com/teamcity/) minimal build agent image. + + More details about tags and components are [here](https://github.com/JetBrains/teamcity-docker-images/blob/master/generated/teamcity-minimal-agent.md). + +The [TeamCity build agent](https://www.jetbrains.com/help/teamcity/build-agent.html) connects to the TeamCity server and spawns the actual build processes. +You can use the ```jetbrains/teamcity-server``` image to run a TeamCity server. + +This minimal image adds just a TeamCity agent without any tools like VCS clients, etc. It is suitable for simple builds and can serve as a base for your custom images. For Java or .NET development we recommend using the default build agent image [jetbrains/teamcity-agent](https://hub.docker.com/r/jetbrains/teamcity-agent/). + +## How to Use This Image + +Pull the TeamCity minimal image from the Docker Hub Repository: + +``` +jetbrains/teamcity-minimal-agent +``` +  +and use the following command to start a container with TeamCity agent running inside +a Linux container: + +``` +docker run -it -e SERVER_URL="" \ + -v :/data/teamcity_agent/conf \ + jetbrains/teamcity-minimal-agent +``` +  +or a Windows container: +``` +docker run -it -e SERVER_URL="" + -v :C:/BuildAgent/conf + jetbrains/teamcity-minimal-agent +``` +where `` is the full URL for TeamCity server, accessible by the agent. Note that `localhost` will not generally not work as it will refer to the `localhost` inside the container. +`` is the host machine directory to serve as the TeamCity agent config directory. We recommend providing this binding in order to persist the agent configuration, e.g. authorization on the server. Note that you should map a different folder for every new agent you create. + +Since version 2020.1, TeamCity agent Docker images __run under a non-root user__. Refer to our [upgrade notes](https://www.jetbrains.com/help/teamcity/upgrade-notes.html#UpgradeNotes-AgentDockerimagesrunundernon-rootuser) for information on possible affected use cases. + +When you run the agent for the first time, you should authorize it via the TeamCity server UI: go to the **Unauthorized Agents** page in your browser. See [more details](https://www.jetbrains.com/help/teamcity/build-agent.html). + +All information about agent authorization is stored in agent's configuration folder. If you stop the container with the agent and then start a new one with the same config folder, the agent's name and authorization state will be preserved. + +TeamCity agent does not need manual upgrade: it will upgrade itself automatically on connecting to an upgraded server. + +### Agent Image Environment Variables + +- **SERVER_URL** - URL of the TeamCity server agent will connect to +- **AGENT_NAME** - (optional) Name of the agent in TeamCity UI, autogenerated if omitted +- **AGENT_TOKEN** - (optional) Agent authorization token, if unset, the agent should be [authorized](https://www.jetbrains.com/help/teamcity/build-agent.html#BuildAgent-BuildAgentStatus) via TeamCity UI. +- **OWN_ADDRESS** - (optional, linux only) IP address build agent binds to, autodetected +- **OWN_PORT** - (optional, linux only) Port build agent binds to, 9090 by default + +### Windows Containers Limitations + +The details on the known problems in Windows containers are available in the [TeamCity documentation](https://www.jetbrains.com/help/teamcity/known-issues.html#KnownIssues-WindowsDockerContainers). + +## Customization + +You can customize the image via the usual Docker procedure: + +1. Run the image +``` +docker run -it -e SERVER_URL="" \ + -v :/data/teamcity_agent/conf \ + --name="my-customized-agent" \ + jetbrains/teamcity-minimal-agent \ +``` +2. Enter the container +``` +docker exec -it my-customized-agent bash +``` + +3. Change whatever you need +4. Exit and [create a new image](https://docs.docker.com/engine/reference/commandline/commit/) from the container +``` +docker commit my-customized-agent +``` + +## License + +The image is available under the [TeamCity license](https://www.jetbrains.com/teamcity/buy/license.html). +TeamCity is free for perpetual use with the limitation of 100 build configurations (jobs) and 3 agents. [Licensing details](https://www.jetbrains.com/help/teamcity/licensing-policy.html). + +## Feedback + +Report issues of suggestions to the official TeamCity [issue tracker](https://youtrack.jetbrains.com/issues/TW). + +## Other TeamCity Images +* [TeamCity Server](https://hub.docker.com/r/jetbrains/teamcity-server/) +* [Build Agent](https://hub.docker.com/r/jetbrains/teamcity-agent/) diff --git a/linux/ecosystem/teamcity/agent/minimal/docker-compose.yml b/linux/ecosystem/teamcity/agent/minimal/docker-compose.yml new file mode 100644 index 000000000..1f146da71 --- /dev/null +++ b/linux/ecosystem/teamcity/agent/minimal/docker-compose.yml @@ -0,0 +1,9 @@ +services: + app-jdk21: + image: "epicmorg/teamcity-agent:minimal-jdk21" + build: + context: . + app: + image: "epicmorg/teamcity-agent:minimal" + build: + context: . diff --git a/linux/ecosystem/teamcity/agent/minimal/etc/supervisor/conf.d/supervisord.conf b/linux/ecosystem/teamcity/agent/minimal/etc/supervisor/conf.d/supervisord.conf new file mode 100644 index 000000000..591277381 --- /dev/null +++ b/linux/ecosystem/teamcity/agent/minimal/etc/supervisor/conf.d/supervisord.conf @@ -0,0 +1,5 @@ +[supervisord] +nodaemon=true + +#[inet_http_server] +#port = 1337 diff --git a/linux/ecosystem/teamcity/agent/minimal/etc/supervisor/conf.d/teamcity-agent.conf b/linux/ecosystem/teamcity/agent/minimal/etc/supervisor/conf.d/teamcity-agent.conf new file mode 100644 index 000000000..94e328311 --- /dev/null +++ b/linux/ecosystem/teamcity/agent/minimal/etc/supervisor/conf.d/teamcity-agent.conf @@ -0,0 +1,15 @@ +[program:teamcity-agent] +command=/usr/local/share/epicmorg/teamcity/agent/sbin/entrypoint.sh +autostart=true +autorestart=true +killasgroup=true +stopasgroup=true +#stdout_logfile=/var/log/supervisor/teamcity-agent.out.log +#stderr_logfile=/var/log/supervisor/teamcity-agent.err.log +stdout_logfile=/dev/fd/1 +stdout_logfile_maxbytes=0 +stderr_logfile=/dev/fd/2 +stderr_logfile_maxbytes=0 +user=root +priority=10 +startretries=5 diff --git a/linux/ecosystem/teamcity/agent/latest/run-agent.sh b/linux/ecosystem/teamcity/agent/minimal/usr/local/share/epicmorg/teamcity/agent/sbin/entrypoint.sh old mode 100755 new mode 100644 similarity index 75% rename from linux/ecosystem/teamcity/agent/latest/run-agent.sh rename to linux/ecosystem/teamcity/agent/minimal/usr/local/share/epicmorg/teamcity/agent/sbin/entrypoint.sh index a9ded1d14..61de40c45 --- a/linux/ecosystem/teamcity/agent/latest/run-agent.sh +++ b/linux/ecosystem/teamcity/agent/minimal/usr/local/share/epicmorg/teamcity/agent/sbin/entrypoint.sh @@ -1,5 +1,16 @@ #!/bin/bash +# defaults ef env is null +# : ${SERVER_URL:=} +# : ${AGENT_TOKEN:=} +# : ${AGENT_NAME:=} +# : ${AGENT_DIST:=} +# : ${LOG_DIR:=} +# : ${OWN_ADDRESS:=} +# : ${OWN_PORT:=} +# : ${CONFIG_DIR:=} +# : ${CONFIG_FILE:=} + check() { if [[ $? != 0 ]]; then echo "Error! Stopping the script." @@ -28,32 +39,26 @@ reconfigure() { done configure "${opts[@]}" echo "File buildAgent.properties was updated" + fi for AGENT_OPT in ${AGENT_OPTS}; do echo ${AGENT_OPT} >> ${CONFIG_DIR}/buildAgent.properties done + } prepare_conf() { echo "Will prepare agent config" ; - cp -p ${AGENT_DIST}/conf_dist/*.* ${CONFIG_DIR}/; check + cp -p ${AGENT_DIST}/conf/*.* ${CONFIG_DIR}/; check cp -p ${CONFIG_DIR}/buildAgent.dist.properties ${CONFIG_DIR}/buildAgent.properties; check reconfigure echo "File buildAgent.properties was created and updated" ; } -AGENT_DIST=/opt/buildagent - -CONFIG_DIR=/data/teamcity_agent/conf - -LOG_DIR=/opt/buildagent/logs - - rm -f ${LOG_DIR}/*.pid if [ -f ${CONFIG_DIR}/buildAgent.properties ] ; then - echo "File buildAgent.properties was found in ${CONFIG_DIR}" ; - reconfigure + echo "File buildAgent.properties was found in ${CONFIG_DIR}. Will start the agent using it." ; else echo "Will create new buildAgent.properties using distributive" ; if [[ -n "${SERVER_URL}" ]]; then @@ -65,18 +70,7 @@ else prepare_conf fi -if [ -z "$RUN_AS_BUILDAGENT" -o "$RUN_AS_BUILDAGENT" = "false" -o "$RUN_AS_BUILDAGENT" = "no" ]; then - ${AGENT_DIST}/bin/agent.sh start -else - echo "Make sure build agent directory ${AGENT_DIST} is owned by buildagent user" - chown -R buildagent:buildagent ${AGENT_DIST} - check; sync - - echo "Start build agent under buildagent user" - sudo -E -u buildagent HOME=/home/buildagent ${AGENT_DIST}/bin/agent.sh start -fi - - +${AGENT_DIST}/bin/agent.sh start while [ ! -f ${LOG_DIR}/teamcity-agent.log ]; do @@ -87,4 +81,4 @@ done trap '${AGENT_DIST}/bin/agent.sh stop force; while ps -p $(cat $(ls -1 ${LOG_DIR}/*.pid)) &>/dev/null; do sleep 1; done; kill %%' SIGINT SIGTERM SIGHUP tail -qF ${LOG_DIR}/teamcity-agent.log & -wait +wait \ No newline at end of file diff --git a/linux/ecosystem/testrail/8.1.0.6186/ad/Dockerfile b/linux/ecosystem/testrail/8.1.0.6186/ad/Dockerfile new file mode 100644 index 000000000..c4e3531f8 --- /dev/null +++ b/linux/ecosystem/testrail/8.1.0.6186/ad/Dockerfile @@ -0,0 +1,13 @@ +FROM epicmorg/testrail:8.1.0.6186 + +ENV TESTRAIL_PLUGIN_VERSION=1.4 +ENV TESTRAIL_PLUGIN_NAME=ad +ENV TESTRAIL_PLUGIN_FULLNAME=testrail-auth-${TESTRAIL_PLUGIN_NAME}-${TESTRAIL_PLUGIN_VERSION} +ENV TESTRAIL_PLUGIN_FILE=${TESTRAIL_PLUGIN_FULLNAME}.zip +ENV TESTRAIL_PLUGIN_DONWLOAD_URL=https://media.gurock.com/gk-media/downloads/${TESTRAIL_PLUGIN_FILE} +ENV TESTRAIL_PLUGIN_TEMP=${TESTRAIL_RELEASE_DIR}/${TESTRAIL_PLUGIN_FILE} + +RUN rm -rfv /usr/bin/docker-entrypoint.sh +COPY docker-entrypoint.sh /usr/bin/docker-entrypoint.sh + +RUN wget --no-check-certificate -O ${TESTRAIL_PLUGIN_TEMP} ${TESTRAIL_PLUGIN_DONWLOAD_URL} diff --git a/linux/ecosystem/testrail/8.1.0.6186/ad/Makefile b/linux/ecosystem/testrail/8.1.0.6186/ad/Makefile new file mode 100644 index 000000000..1e4371492 --- /dev/null +++ b/linux/ecosystem/testrail/8.1.0.6186/ad/Makefile @@ -0,0 +1,44 @@ +all: app + +app: + make pip + make build + make deploy + make clean + +build: + make build-buildah + +deploy: + make deploy-buildah + +build-buildah: + buildah-wrapper --build + +deploy-buildah: + buildah-wrapper --deploy + +build-kaniko: + kaniko-wrapper --kaniko-image gcr.io/kaniko-project/executor:debug --dry-run + +deploy-kaniko: + kaniko-wrapper --deploy --kaniko-image gcr.io/kaniko-project/executor:debug + +build-compose: + docker-compose build --compress --parallel --progress plain + +deploy-compose: + docker-compose push + +clean: + docker container prune -f + docker image prune -f + docker network prune -f + docker volume prune -f + docker system prune -af + buildah rm -a + buildah rmi -a + +pip: + pip3 install --break-system-packages --no-cache-dir kaniko-wrapper buildah-wrapper + pip install --break-system-packages --no-cache-dir kaniko-wrapper buildah-wrapper \ No newline at end of file diff --git a/linux/ecosystem/testrail/8.1.0.6186/ad/README.md b/linux/ecosystem/testrail/8.1.0.6186/ad/README.md new file mode 100644 index 000000000..7d4a410aa --- /dev/null +++ b/linux/ecosystem/testrail/8.1.0.6186/ad/README.md @@ -0,0 +1,35 @@ +## Testrail + +* Based on `websites:php8.1` of our ecosystem. + +# Compose example + +```yml +services: + testrail: + image: epicmorg/testrail-ad-:8.1.0.6186 +# 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 +``` diff --git a/linux/ecosystem/testrail/8.1.0.6186/ad/docker-compose.yml b/linux/ecosystem/testrail/8.1.0.6186/ad/docker-compose.yml new file mode 100644 index 000000000..00ead6c94 --- /dev/null +++ b/linux/ecosystem/testrail/8.1.0.6186/ad/docker-compose.yml @@ -0,0 +1,5 @@ +services: + app: + image: "epicmorg/testrail:auth-ad-8.1.0.6186" + build: + context: . diff --git a/linux/ecosystem/testrail/8.1.0.6186/ad/docker-entrypoint.sh b/linux/ecosystem/testrail/8.1.0.6186/ad/docker-entrypoint.sh new file mode 100755 index 000000000..b6df4136b --- /dev/null +++ b/linux/ecosystem/testrail/8.1.0.6186/ad/docker-entrypoint.sh @@ -0,0 +1,80 @@ +#!/bin/bash + +echo "[testrail] Welcome to Testrail 8.1.0.6186 with Active Directory plugin" + +echo "[testrail] Starting testrail service" + +################################################################################# +# Function for creating directories with rights for www-data +function createOptDirectory { + if [ ! -d "$1" ]; then + echo "[testrail] Creating $1" + mkdir -p "$1" + fi + + chown -R www-data:www-data "$1" +} + +################################################################################# +# Copy Apache Configuration +/bin/cp -rf "${TESTRAIL_RELEASE_DIR}/apache-conf/000-default.conf" "/etc/apache2/sites-enabled/000-default.conf" + +################################################################################# +# Unpacking TestRail +if [ -f "${TESTRAIL_RELEASE_DIR}/testrail-${TESTRAIL_VERSION}-ion70.zip" ]; then + echo "[testrail] Unzipping testrail service" + unzip -q -o "${TESTRAIL_RELEASE_DIR}/testrail-${TESTRAIL_VERSION}-ion70.zip" -d /var/www/ + echo "[testrail] Testrail extracted" +else + echo "[testrail] Error: testrail-${TESTRAIL_VERSION}-ion70.zip not found in ${TESTRAIL_RELEASE_DIR}" + exit 1 +fi + +################################################################################# +# Creating the necessary directories +createOptDirectory "${TR_DEFAULT_LOG_DIR}" +createOptDirectory "${TR_DEFAULT_AUDIT_DIR}" +createOptDirectory "${TR_DEFAULT_REPORT_DIR}" +createOptDirectory "${TR_DEFAULT_ATTACHMENT_DIR}" + +chown -R www-data:www-data "${TR_CONFIG_DIR}" +chown -R www-data:www-data "${TR_CONFIGPATH}" + +################################################################################# +# Waiting for task.php file to appear +TASK_FILE="/var/www/testrail/task.php" +echo "[testrail] Waiting for background task file" +while [ ! -f "$TASK_FILE" ]; do + sleep 2 +done + +echo "[testrail] Starting background task" +# Removing the memory limit for executing a PHP task +while /bin/true; do + php -d memory_limit=-1 "$TASK_FILE" || true + sleep "${TR_DEFAULT_TASK_EXECUTION:-60}" +done & + +echo "[testrail] Background task started" + +################################################################################# +# Processing the FIX_WWW_DATA environment variable +if [[ -z "${FIX_WWW_DATA}" ]]; then + echo "[apache2] env FIX_WWW_DATA is not set. Fixing permissions anyway" + chown www-data:www-data /var/www -R +elif [ "${FIX_WWW_DATA}" == "false" ]; then + echo "[apache2] env FIX_WWW_DATA is set to false. Skipping..." +elif [ "${FIX_WWW_DATA}" == "true" ]; then + echo "[apache2] Changing permissions for /var/www path. Don't worry, please wait." + chown www-data:www-data /var/www -R + echo "[apache2] Done" +else + echo "[apache2] env FIX_WWW_DATA is set to strange value. Skipping..." +fi + +################################################################################# +# Starting Apache +echo "[apache2] Starting up" +source /etc/apache2/envvars +tail -F /var/log/apache2/* & +exec apache2 -D FOREGROUND diff --git a/linux/ecosystem/testrail/8.1.0.6186/ldap/Dockerfile b/linux/ecosystem/testrail/8.1.0.6186/ldap/Dockerfile new file mode 100644 index 000000000..0d9fd7073 --- /dev/null +++ b/linux/ecosystem/testrail/8.1.0.6186/ldap/Dockerfile @@ -0,0 +1,13 @@ +FROM epicmorg/testrail:8.1.0.6186 + +ENV TESTRAIL_PLUGIN_VERSION=1.4 +ENV TESTRAIL_PLUGIN_NAME=ldap +ENV TESTRAIL_PLUGIN_FULLNAME=testrail-auth-${TESTRAIL_PLUGIN_NAME}-${TESTRAIL_PLUGIN_VERSION} +ENV TESTRAIL_PLUGIN_FILE=${TESTRAIL_PLUGIN_FULLNAME}.zip +ENV TESTRAIL_PLUGIN_DONWLOAD_URL=https://media.gurock.com/gk-media/downloads/${TESTRAIL_PLUGIN_FILE} +ENV TESTRAIL_PLUGIN_TEMP=${TESTRAIL_RELEASE_DIR}/${TESTRAIL_PLUGIN_FILE} + +RUN rm -rfv /usr/bin/docker-entrypoint.sh +COPY docker-entrypoint.sh /usr/bin/docker-entrypoint.sh + +RUN wget --no-check-certificate -O ${TESTRAIL_PLUGIN_TEMP} ${TESTRAIL_PLUGIN_DONWLOAD_URL} diff --git a/linux/ecosystem/testrail/8.1.0.6186/ldap/Makefile b/linux/ecosystem/testrail/8.1.0.6186/ldap/Makefile new file mode 100644 index 000000000..1e4371492 --- /dev/null +++ b/linux/ecosystem/testrail/8.1.0.6186/ldap/Makefile @@ -0,0 +1,44 @@ +all: app + +app: + make pip + make build + make deploy + make clean + +build: + make build-buildah + +deploy: + make deploy-buildah + +build-buildah: + buildah-wrapper --build + +deploy-buildah: + buildah-wrapper --deploy + +build-kaniko: + kaniko-wrapper --kaniko-image gcr.io/kaniko-project/executor:debug --dry-run + +deploy-kaniko: + kaniko-wrapper --deploy --kaniko-image gcr.io/kaniko-project/executor:debug + +build-compose: + docker-compose build --compress --parallel --progress plain + +deploy-compose: + docker-compose push + +clean: + docker container prune -f + docker image prune -f + docker network prune -f + docker volume prune -f + docker system prune -af + buildah rm -a + buildah rmi -a + +pip: + pip3 install --break-system-packages --no-cache-dir kaniko-wrapper buildah-wrapper + pip install --break-system-packages --no-cache-dir kaniko-wrapper buildah-wrapper \ No newline at end of file diff --git a/linux/ecosystem/testrail/8.1.0.6186/ldap/README.md b/linux/ecosystem/testrail/8.1.0.6186/ldap/README.md new file mode 100644 index 000000000..6d488d129 --- /dev/null +++ b/linux/ecosystem/testrail/8.1.0.6186/ldap/README.md @@ -0,0 +1,35 @@ +## Testrail + +* Based on `websites:php8.1` of our ecosystem. + +# Compose example + +```yml +services: + testrail: + image: epicmorg/testrail:auth-ldap-8.1.0.6186 +# 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 +``` diff --git a/linux/ecosystem/testrail/8.1.0.6186/ldap/docker-compose.yml b/linux/ecosystem/testrail/8.1.0.6186/ldap/docker-compose.yml new file mode 100644 index 000000000..d587c2531 --- /dev/null +++ b/linux/ecosystem/testrail/8.1.0.6186/ldap/docker-compose.yml @@ -0,0 +1,5 @@ +services: + app: + image: "epicmorg/testrail:auth-ldap-8.1.0.6186" + build: + context: . diff --git a/linux/ecosystem/testrail/8.1.0.6186/ldap/docker-entrypoint.sh b/linux/ecosystem/testrail/8.1.0.6186/ldap/docker-entrypoint.sh new file mode 100755 index 000000000..e72ad8a98 --- /dev/null +++ b/linux/ecosystem/testrail/8.1.0.6186/ldap/docker-entrypoint.sh @@ -0,0 +1,80 @@ +#!/bin/bash + +echo "[testrail] Welcome to Testrail 8.1.0.6186 with LDAP plugin" + +echo "[testrail] Starting testrail service" + +################################################################################# +# Function for creating directories with rights for www-data +function createOptDirectory { + if [ ! -d "$1" ]; then + echo "[testrail] Creating $1" + mkdir -p "$1" + fi + + chown -R www-data:www-data "$1" +} + +################################################################################# +# Copy Apache Configuration +/bin/cp -rf "${TESTRAIL_RELEASE_DIR}/apache-conf/000-default.conf" "/etc/apache2/sites-enabled/000-default.conf" + +################################################################################# +# Unpacking TestRail +if [ -f "${TESTRAIL_RELEASE_DIR}/testrail-${TESTRAIL_VERSION}-ion70.zip" ]; then + echo "[testrail] Unzipping testrail service" + unzip -q -o "${TESTRAIL_RELEASE_DIR}/testrail-${TESTRAIL_VERSION}-ion70.zip" -d /var/www/ + echo "[testrail] Testrail extracted" +else + echo "[testrail] Error: testrail-${TESTRAIL_VERSION}-ion70.zip not found in ${TESTRAIL_RELEASE_DIR}" + exit 1 +fi + +################################################################################# +# Creating the necessary directories +createOptDirectory "${TR_DEFAULT_LOG_DIR}" +createOptDirectory "${TR_DEFAULT_AUDIT_DIR}" +createOptDirectory "${TR_DEFAULT_REPORT_DIR}" +createOptDirectory "${TR_DEFAULT_ATTACHMENT_DIR}" + +chown -R www-data:www-data "${TR_CONFIG_DIR}" +chown -R www-data:www-data "${TR_CONFIGPATH}" + +################################################################################# +# Waiting for task.php file to appear +TASK_FILE="/var/www/testrail/task.php" +echo "[testrail] Waiting for background task file" +while [ ! -f "$TASK_FILE" ]; do + sleep 2 +done + +echo "[testrail] Starting background task" +# Removing the memory limit for executing a PHP task +while /bin/true; do + php -d memory_limit=-1 "$TASK_FILE" || true + sleep "${TR_DEFAULT_TASK_EXECUTION:-60}" +done & + +echo "[testrail] Background task started" + +################################################################################# +# Processing the FIX_WWW_DATA environment variable +if [[ -z "${FIX_WWW_DATA}" ]]; then + echo "[apache2] env FIX_WWW_DATA is not set. Fixing permissions anyway" + chown www-data:www-data /var/www -R +elif [ "${FIX_WWW_DATA}" == "false" ]; then + echo "[apache2] env FIX_WWW_DATA is set to false. Skipping..." +elif [ "${FIX_WWW_DATA}" == "true" ]; then + echo "[apache2] Changing permissions for /var/www path. Don't worry, please wait." + chown www-data:www-data /var/www -R + echo "[apache2] Done" +else + echo "[apache2] env FIX_WWW_DATA is set to strange value. Skipping..." +fi + +################################################################################# +# Starting Apache +echo "[apache2] Starting up" +source /etc/apache2/envvars +tail -F /var/log/apache2/* & +exec apache2 -D FOREGROUND diff --git a/linux/ecosystem/testrail/8.1.0.6186/main/.env b/linux/ecosystem/testrail/8.1.0.6186/main/.env new file mode 100644 index 000000000..768d91e43 --- /dev/null +++ b/linux/ecosystem/testrail/8.1.0.6186/main/.env @@ -0,0 +1,2 @@ +TESTRAIL_VERSION=8.1.0.6186 +DOWNLOAD_URL=https://secure.testrail.com/downloads/testrail/testrail-${TESTRAIL_VERSION}-ion81.zip diff --git a/linux/ecosystem/testrail/8.1.0.6186/main/Dockerfile b/linux/ecosystem/testrail/8.1.0.6186/main/Dockerfile new file mode 100644 index 000000000..76615757f --- /dev/null +++ b/linux/ecosystem/testrail/8.1.0.6186/main/Dockerfile @@ -0,0 +1,65 @@ +FROM epicmorg/apache2:php8.1 + +############################################################################## +# Testrail Install +############################################################################## + + +ENV TESTRAIL_VERSION=8.1.0.6186 +ARG DOWNLOAD_URL=https://secure.testrail.com/downloads/testrail/testrail-${TESTRAIL_VERSION}-ion81.zip + +ENV TR_DEFAULT_TASK_EXECUTION=60 + +ENV TESTRAIL_RELEASE_DIR=/testrail-release + +ENV TR_WWW_PATH=/var/www/testrail +ENV TR_CONFIGPATH=${TR_CONFIG_DIR} +ENV TR_CONFIG_DIR=${TR_WWW_PATH}/config +ENV TR_CUSTOM_DIR=${TR_WWW_PATH}/custom +ENV TR_CUSTOM_AUTH_DIR=${TR_CUSTOM_DIR}/auth + +ENV TR_OPT_PATH=/opt/testrail +ENV TR_DEFAULT_LOG_DIR=${TR_OPT_PATH}/logs +ENV TR_DEFAULT_AUDIT_DIR=${TR_OPT_PATH}/audit +ENV TR_DEFAULT_REPORT_DIR=${TR_OPT_PATH}/reports +ENV TR_DEFAULT_ATTACHMENT_DIR=${TR_OPT_PATH}/attachments + +ENV TR_OPTPATH="/opt/testrail/" +ENV TR_CONFIGPATH="/var/www/testrail/config/" + +ENV OPENSSL_CONF=/etc/ssl/ + +RUN echo "ServerName localhost" >> /etc/apache2/apache2.conf + +ADD ${DOWNLOAD_URL} ${TESTRAIL_RELEASE_DIR}/testrail-${TESTRAIL_VERSION}-ion81.zip +RUN echo "[testrail] Preparing folders" && \ + mkdir -p ${TESTRAIL_RELEASE_DIR} && \ + mkdir -p ${TR_WWW_PATH} && \ + mkdir -p ${TR_DEFAULT_ATTACHMENT_DIR} ${TR_DEFAULT_REPORT_DIR} ${TR_DEFAULT_AUDIT_DIR} ${TR_DEFAULT_LOG_DIR} && \ + echo "[testrail] Downloading and installing" && \ + chown -R www-data:www-data ${TESTRAIL_RELEASE_DIR} && \ + unzip -q -o ${TESTRAIL_RELEASE_DIR}/testrail-${TESTRAIL_VERSION}-ion81.zip -d /var/www/ && \ + chown -R www-data:www-data ${TR_WWW_PATH} && \ + ls -las ${TR_WWW_PATH} && \ + chown -R www-data:www-data ${TR_OPT_PATH} && \ + ls -las ${TR_OPT_PATH} + +RUN echo "[testrail] Testrail version is: $(cat ${TR_WWW_PATH}/version.txt)" + +COPY apache_testrail.conf ${TESTRAIL_RELEASE_DIR}/apache-conf/000-default.conf + +#healthcheck. good practice +HEALTHCHECK --interval=2m --timeout=3s CMD curl -f http://localhost:80/ || exit 1 + +# Add image configuration and scripts +COPY docker-entrypoint.sh /usr/bin/docker-entrypoint.sh +RUN chmod 755 /usr/bin/docker-entrypoint.sh + +RUN updatedb + +#Final config +WORKDIR /var/www/testrail +EXPOSE 80 443 + +ENTRYPOINT ["tini", "-s", "--", "docker-entrypoint.sh"] +CMD ["docker-entrypoint.sh"] diff --git a/linux/ecosystem/testrail/8.1.0.6186/main/Makefile b/linux/ecosystem/testrail/8.1.0.6186/main/Makefile new file mode 100644 index 000000000..1e4371492 --- /dev/null +++ b/linux/ecosystem/testrail/8.1.0.6186/main/Makefile @@ -0,0 +1,44 @@ +all: app + +app: + make pip + make build + make deploy + make clean + +build: + make build-buildah + +deploy: + make deploy-buildah + +build-buildah: + buildah-wrapper --build + +deploy-buildah: + buildah-wrapper --deploy + +build-kaniko: + kaniko-wrapper --kaniko-image gcr.io/kaniko-project/executor:debug --dry-run + +deploy-kaniko: + kaniko-wrapper --deploy --kaniko-image gcr.io/kaniko-project/executor:debug + +build-compose: + docker-compose build --compress --parallel --progress plain + +deploy-compose: + docker-compose push + +clean: + docker container prune -f + docker image prune -f + docker network prune -f + docker volume prune -f + docker system prune -af + buildah rm -a + buildah rmi -a + +pip: + pip3 install --break-system-packages --no-cache-dir kaniko-wrapper buildah-wrapper + pip install --break-system-packages --no-cache-dir kaniko-wrapper buildah-wrapper \ No newline at end of file diff --git a/linux/ecosystem/testrail/8.1.0.6186/main/README.md b/linux/ecosystem/testrail/8.1.0.6186/main/README.md new file mode 100644 index 000000000..b93c4dab0 --- /dev/null +++ b/linux/ecosystem/testrail/8.1.0.6186/main/README.md @@ -0,0 +1,35 @@ +## Testrail + +* Based on `websites:php8.1` of our ecosystem. + +# Compose example + +```yml +services: + testrail: + image: epicmorg/testrail:8.1.0.6186 +# 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 +``` diff --git a/linux/ecosystem/testrail/8.1.0.6186/main/apache_testrail.conf b/linux/ecosystem/testrail/8.1.0.6186/main/apache_testrail.conf new file mode 100644 index 000000000..750791db9 --- /dev/null +++ b/linux/ecosystem/testrail/8.1.0.6186/main/apache_testrail.conf @@ -0,0 +1,16 @@ + + ServerName localhost + + ServerAdmin webmaster@localhost + DocumentRoot /var/www/testrail + + ErrorLog ${APACHE_LOG_DIR}/error.log + CustomLog ${APACHE_LOG_DIR}/access.log combined + + + Options Indexes FollowSymLinks + AllowOverride All + Require all granted + + + \ No newline at end of file diff --git a/linux/ecosystem/testrail/8.1.0.6186/main/docker-compose.yml b/linux/ecosystem/testrail/8.1.0.6186/main/docker-compose.yml new file mode 100644 index 000000000..dce133307 --- /dev/null +++ b/linux/ecosystem/testrail/8.1.0.6186/main/docker-compose.yml @@ -0,0 +1,5 @@ +services: + app: + image: "epicmorg/testrail:8.1.0.6186" + build: + context: . diff --git a/linux/ecosystem/testrail/8.1.0.6186/main/docker-entrypoint.sh b/linux/ecosystem/testrail/8.1.0.6186/main/docker-entrypoint.sh new file mode 100755 index 000000000..82ed0f05e --- /dev/null +++ b/linux/ecosystem/testrail/8.1.0.6186/main/docker-entrypoint.sh @@ -0,0 +1,80 @@ +#!/bin/bash + +echo "[testrail] Welcome to Testrail 8.1.0.6186" + +echo "[testrail] Starting testrail service" + +################################################################################# +# Function for creating directories with rights for www-data +function createOptDirectory { + if [ ! -d "$1" ]; then + echo "[testrail] Creating $1" + mkdir -p "$1" + fi + + chown -R www-data:www-data "$1" +} + +################################################################################# +# Copy Apache Configuration +/bin/cp -rf "${TESTRAIL_RELEASE_DIR}/apache-conf/000-default.conf" "/etc/apache2/sites-enabled/000-default.conf" + +################################################################################# +# Unpacking TestRail +if [ -f "${TESTRAIL_RELEASE_DIR}/testrail-${TESTRAIL_VERSION}-ion81.zip" ]; then + echo "[testrail] Unzipping testrail service" + unzip -q -o "${TESTRAIL_RELEASE_DIR}/testrail-${TESTRAIL_VERSION}-ion81.zip" -d /var/www/ + echo "[testrail] Testrail extracted" +else + echo "[testrail] Error: testrail-${TESTRAIL_VERSION}-ion81.zip not found in ${TESTRAIL_RELEASE_DIR}" + exit 1 +fi + +################################################################################# +# Creating the necessary directories +createOptDirectory "${TR_DEFAULT_LOG_DIR}" +createOptDirectory "${TR_DEFAULT_AUDIT_DIR}" +createOptDirectory "${TR_DEFAULT_REPORT_DIR}" +createOptDirectory "${TR_DEFAULT_ATTACHMENT_DIR}" + +chown -R www-data:www-data "${TR_CONFIG_DIR}" +chown -R www-data:www-data "${TR_CONFIGPATH}" + +################################################################################# +# Waiting for task.php file to appear +TASK_FILE="/var/www/testrail/task.php" +echo "[testrail] Waiting for background task file" +while [ ! -f "$TASK_FILE" ]; do + sleep 2 +done + +echo "[testrail] Starting background task" +# Removing the memory limit for executing a PHP task +while /bin/true; do + php -d memory_limit=-1 "$TASK_FILE" || true + sleep "${TR_DEFAULT_TASK_EXECUTION:-60}" +done & + +echo "[testrail] Background task started" + +################################################################################# +# Processing the FIX_WWW_DATA environment variable +if [[ -z "${FIX_WWW_DATA}" ]]; then + echo "[apache2] env FIX_WWW_DATA is not set. Fixing permissions anyway" + chown www-data:www-data /var/www -R +elif [ "${FIX_WWW_DATA}" == "false" ]; then + echo "[apache2] env FIX_WWW_DATA is set to false. Skipping..." +elif [ "${FIX_WWW_DATA}" == "true" ]; then + echo "[apache2] Changing permissions for /var/www path. Don't worry, please wait." + chown www-data:www-data /var/www -R + echo "[apache2] Done" +else + echo "[apache2] env FIX_WWW_DATA is set to strange value. Skipping..." +fi + +################################################################################# +# Starting Apache +echo "[apache2] Starting up" +source /etc/apache2/envvars +tail -F /var/log/apache2/* & +exec apache2 -D FOREGROUND diff --git a/linux/ecosystem/testrail/9.0.0.1057/ad/Dockerfile b/linux/ecosystem/testrail/9.0.0.1057/ad/Dockerfile new file mode 100644 index 000000000..9515a9dc4 --- /dev/null +++ b/linux/ecosystem/testrail/9.0.0.1057/ad/Dockerfile @@ -0,0 +1,13 @@ +FROM epicmorg/testrail:9.0.0.1057 + +ENV TESTRAIL_PLUGIN_VERSION=1.4 +ENV TESTRAIL_PLUGIN_NAME=ad +ENV TESTRAIL_PLUGIN_FULLNAME=testrail-auth-${TESTRAIL_PLUGIN_NAME}-${TESTRAIL_PLUGIN_VERSION} +ENV TESTRAIL_PLUGIN_FILE=${TESTRAIL_PLUGIN_FULLNAME}.zip +ENV TESTRAIL_PLUGIN_DONWLOAD_URL=https://media.gurock.com/gk-media/downloads/${TESTRAIL_PLUGIN_FILE} +ENV TESTRAIL_PLUGIN_TEMP=${TESTRAIL_RELEASE_DIR}/${TESTRAIL_PLUGIN_FILE} + +RUN rm -rfv /usr/bin/docker-entrypoint.sh +COPY docker-entrypoint.sh /usr/bin/docker-entrypoint.sh + +RUN wget --no-check-certificate -O ${TESTRAIL_PLUGIN_TEMP} ${TESTRAIL_PLUGIN_DONWLOAD_URL} diff --git a/linux/ecosystem/testrail/9.0.0.1057/ad/Makefile b/linux/ecosystem/testrail/9.0.0.1057/ad/Makefile new file mode 100644 index 000000000..1e4371492 --- /dev/null +++ b/linux/ecosystem/testrail/9.0.0.1057/ad/Makefile @@ -0,0 +1,44 @@ +all: app + +app: + make pip + make build + make deploy + make clean + +build: + make build-buildah + +deploy: + make deploy-buildah + +build-buildah: + buildah-wrapper --build + +deploy-buildah: + buildah-wrapper --deploy + +build-kaniko: + kaniko-wrapper --kaniko-image gcr.io/kaniko-project/executor:debug --dry-run + +deploy-kaniko: + kaniko-wrapper --deploy --kaniko-image gcr.io/kaniko-project/executor:debug + +build-compose: + docker-compose build --compress --parallel --progress plain + +deploy-compose: + docker-compose push + +clean: + docker container prune -f + docker image prune -f + docker network prune -f + docker volume prune -f + docker system prune -af + buildah rm -a + buildah rmi -a + +pip: + pip3 install --break-system-packages --no-cache-dir kaniko-wrapper buildah-wrapper + pip install --break-system-packages --no-cache-dir kaniko-wrapper buildah-wrapper \ No newline at end of file diff --git a/linux/ecosystem/testrail/9.0.0.1057/ad/README.md b/linux/ecosystem/testrail/9.0.0.1057/ad/README.md new file mode 100644 index 000000000..6cf4c1cd7 --- /dev/null +++ b/linux/ecosystem/testrail/9.0.0.1057/ad/README.md @@ -0,0 +1,35 @@ +## Testrail + +* Based on `websites:php8.1` of our ecosystem. + +# Compose example + +```yml +services: + testrail: + image: epicmorg/testrail-ad-:9.0.0.1057 +# 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 +``` diff --git a/linux/ecosystem/testrail/9.0.0.1057/ad/docker-compose.yml b/linux/ecosystem/testrail/9.0.0.1057/ad/docker-compose.yml new file mode 100644 index 000000000..7011fd537 --- /dev/null +++ b/linux/ecosystem/testrail/9.0.0.1057/ad/docker-compose.yml @@ -0,0 +1,5 @@ +services: + app: + image: "epicmorg/testrail:auth-ad-9.0.0.1057" + build: + context: . diff --git a/linux/ecosystem/testrail/9.0.0.1057/ad/docker-entrypoint.sh b/linux/ecosystem/testrail/9.0.0.1057/ad/docker-entrypoint.sh new file mode 100755 index 000000000..1eed5c36e --- /dev/null +++ b/linux/ecosystem/testrail/9.0.0.1057/ad/docker-entrypoint.sh @@ -0,0 +1,80 @@ +#!/bin/bash + +echo "[testrail] Welcome to Testrail 9.0.0.1057 with Active Directory plugin" + +echo "[testrail] Starting testrail service" + +################################################################################# +# Function for creating directories with rights for www-data +function createOptDirectory { + if [ ! -d "$1" ]; then + echo "[testrail] Creating $1" + mkdir -p "$1" + fi + + chown -R www-data:www-data "$1" +} + +################################################################################# +# Copy Apache Configuration +/bin/cp -rf "${TESTRAIL_RELEASE_DIR}/apache-conf/000-default.conf" "/etc/apache2/sites-enabled/000-default.conf" + +################################################################################# +# Unpacking TestRail +if [ -f "${TESTRAIL_RELEASE_DIR}/testrail-${TESTRAIL_VERSION}-ion70.zip" ]; then + echo "[testrail] Unzipping testrail service" + unzip -q -o "${TESTRAIL_RELEASE_DIR}/testrail-${TESTRAIL_VERSION}-ion70.zip" -d /var/www/ + echo "[testrail] Testrail extracted" +else + echo "[testrail] Error: testrail-${TESTRAIL_VERSION}-ion70.zip not found in ${TESTRAIL_RELEASE_DIR}" + exit 1 +fi + +################################################################################# +# Creating the necessary directories +createOptDirectory "${TR_DEFAULT_LOG_DIR}" +createOptDirectory "${TR_DEFAULT_AUDIT_DIR}" +createOptDirectory "${TR_DEFAULT_REPORT_DIR}" +createOptDirectory "${TR_DEFAULT_ATTACHMENT_DIR}" + +chown -R www-data:www-data "${TR_CONFIG_DIR}" +chown -R www-data:www-data "${TR_CONFIGPATH}" + +################################################################################# +# Waiting for task.php file to appear +TASK_FILE="/var/www/testrail/task.php" +echo "[testrail] Waiting for background task file" +while [ ! -f "$TASK_FILE" ]; do + sleep 2 +done + +echo "[testrail] Starting background task" +# Removing the memory limit for executing a PHP task +while /bin/true; do + php -d memory_limit=-1 "$TASK_FILE" || true + sleep "${TR_DEFAULT_TASK_EXECUTION:-60}" +done & + +echo "[testrail] Background task started" + +################################################################################# +# Processing the FIX_WWW_DATA environment variable +if [[ -z "${FIX_WWW_DATA}" ]]; then + echo "[apache2] env FIX_WWW_DATA is not set. Fixing permissions anyway" + chown www-data:www-data /var/www -R +elif [ "${FIX_WWW_DATA}" == "false" ]; then + echo "[apache2] env FIX_WWW_DATA is set to false. Skipping..." +elif [ "${FIX_WWW_DATA}" == "true" ]; then + echo "[apache2] Changing permissions for /var/www path. Don't worry, please wait." + chown www-data:www-data /var/www -R + echo "[apache2] Done" +else + echo "[apache2] env FIX_WWW_DATA is set to strange value. Skipping..." +fi + +################################################################################# +# Starting Apache +echo "[apache2] Starting up" +source /etc/apache2/envvars +tail -F /var/log/apache2/* & +exec apache2 -D FOREGROUND diff --git a/linux/ecosystem/testrail/9.0.0.1057/ldap/Dockerfile b/linux/ecosystem/testrail/9.0.0.1057/ldap/Dockerfile new file mode 100644 index 000000000..c148507d4 --- /dev/null +++ b/linux/ecosystem/testrail/9.0.0.1057/ldap/Dockerfile @@ -0,0 +1,13 @@ +FROM epicmorg/testrail:9.0.0.1057 + +ENV TESTRAIL_PLUGIN_VERSION=1.4 +ENV TESTRAIL_PLUGIN_NAME=ldap +ENV TESTRAIL_PLUGIN_FULLNAME=testrail-auth-${TESTRAIL_PLUGIN_NAME}-${TESTRAIL_PLUGIN_VERSION} +ENV TESTRAIL_PLUGIN_FILE=${TESTRAIL_PLUGIN_FULLNAME}.zip +ENV TESTRAIL_PLUGIN_DONWLOAD_URL=https://media.gurock.com/gk-media/downloads/${TESTRAIL_PLUGIN_FILE} +ENV TESTRAIL_PLUGIN_TEMP=${TESTRAIL_RELEASE_DIR}/${TESTRAIL_PLUGIN_FILE} + +RUN rm -rfv /usr/bin/docker-entrypoint.sh +COPY docker-entrypoint.sh /usr/bin/docker-entrypoint.sh + +RUN wget --no-check-certificate -O ${TESTRAIL_PLUGIN_TEMP} ${TESTRAIL_PLUGIN_DONWLOAD_URL} diff --git a/linux/ecosystem/testrail/9.0.0.1057/ldap/Makefile b/linux/ecosystem/testrail/9.0.0.1057/ldap/Makefile new file mode 100644 index 000000000..1e4371492 --- /dev/null +++ b/linux/ecosystem/testrail/9.0.0.1057/ldap/Makefile @@ -0,0 +1,44 @@ +all: app + +app: + make pip + make build + make deploy + make clean + +build: + make build-buildah + +deploy: + make deploy-buildah + +build-buildah: + buildah-wrapper --build + +deploy-buildah: + buildah-wrapper --deploy + +build-kaniko: + kaniko-wrapper --kaniko-image gcr.io/kaniko-project/executor:debug --dry-run + +deploy-kaniko: + kaniko-wrapper --deploy --kaniko-image gcr.io/kaniko-project/executor:debug + +build-compose: + docker-compose build --compress --parallel --progress plain + +deploy-compose: + docker-compose push + +clean: + docker container prune -f + docker image prune -f + docker network prune -f + docker volume prune -f + docker system prune -af + buildah rm -a + buildah rmi -a + +pip: + pip3 install --break-system-packages --no-cache-dir kaniko-wrapper buildah-wrapper + pip install --break-system-packages --no-cache-dir kaniko-wrapper buildah-wrapper \ No newline at end of file diff --git a/linux/ecosystem/testrail/9.0.0.1057/ldap/README.md b/linux/ecosystem/testrail/9.0.0.1057/ldap/README.md new file mode 100644 index 000000000..e2c8562b5 --- /dev/null +++ b/linux/ecosystem/testrail/9.0.0.1057/ldap/README.md @@ -0,0 +1,35 @@ +## Testrail + +* Based on `websites:php8.1` of our ecosystem. + +# Compose example + +```yml +services: + testrail: + image: epicmorg/testrail:auth-ldap-9.0.0.1057 +# 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 +``` diff --git a/linux/ecosystem/testrail/9.0.0.1057/ldap/docker-compose.yml b/linux/ecosystem/testrail/9.0.0.1057/ldap/docker-compose.yml new file mode 100644 index 000000000..c71a171a9 --- /dev/null +++ b/linux/ecosystem/testrail/9.0.0.1057/ldap/docker-compose.yml @@ -0,0 +1,5 @@ +services: + app: + image: "epicmorg/testrail:auth-ldap-9.0.0.1057" + build: + context: . diff --git a/linux/ecosystem/testrail/9.0.0.1057/ldap/docker-entrypoint.sh b/linux/ecosystem/testrail/9.0.0.1057/ldap/docker-entrypoint.sh new file mode 100755 index 000000000..3c704baf8 --- /dev/null +++ b/linux/ecosystem/testrail/9.0.0.1057/ldap/docker-entrypoint.sh @@ -0,0 +1,80 @@ +#!/bin/bash + +echo "[testrail] Welcome to Testrail 9.0.0.1057 with LDAP plugin" + +echo "[testrail] Starting testrail service" + +################################################################################# +# Function for creating directories with rights for www-data +function createOptDirectory { + if [ ! -d "$1" ]; then + echo "[testrail] Creating $1" + mkdir -p "$1" + fi + + chown -R www-data:www-data "$1" +} + +################################################################################# +# Copy Apache Configuration +/bin/cp -rf "${TESTRAIL_RELEASE_DIR}/apache-conf/000-default.conf" "/etc/apache2/sites-enabled/000-default.conf" + +################################################################################# +# Unpacking TestRail +if [ -f "${TESTRAIL_RELEASE_DIR}/testrail-${TESTRAIL_VERSION}-ion70.zip" ]; then + echo "[testrail] Unzipping testrail service" + unzip -q -o "${TESTRAIL_RELEASE_DIR}/testrail-${TESTRAIL_VERSION}-ion70.zip" -d /var/www/ + echo "[testrail] Testrail extracted" +else + echo "[testrail] Error: testrail-${TESTRAIL_VERSION}-ion70.zip not found in ${TESTRAIL_RELEASE_DIR}" + exit 1 +fi + +################################################################################# +# Creating the necessary directories +createOptDirectory "${TR_DEFAULT_LOG_DIR}" +createOptDirectory "${TR_DEFAULT_AUDIT_DIR}" +createOptDirectory "${TR_DEFAULT_REPORT_DIR}" +createOptDirectory "${TR_DEFAULT_ATTACHMENT_DIR}" + +chown -R www-data:www-data "${TR_CONFIG_DIR}" +chown -R www-data:www-data "${TR_CONFIGPATH}" + +################################################################################# +# Waiting for task.php file to appear +TASK_FILE="/var/www/testrail/task.php" +echo "[testrail] Waiting for background task file" +while [ ! -f "$TASK_FILE" ]; do + sleep 2 +done + +echo "[testrail] Starting background task" +# Removing the memory limit for executing a PHP task +while /bin/true; do + php -d memory_limit=-1 "$TASK_FILE" || true + sleep "${TR_DEFAULT_TASK_EXECUTION:-60}" +done & + +echo "[testrail] Background task started" + +################################################################################# +# Processing the FIX_WWW_DATA environment variable +if [[ -z "${FIX_WWW_DATA}" ]]; then + echo "[apache2] env FIX_WWW_DATA is not set. Fixing permissions anyway" + chown www-data:www-data /var/www -R +elif [ "${FIX_WWW_DATA}" == "false" ]; then + echo "[apache2] env FIX_WWW_DATA is set to false. Skipping..." +elif [ "${FIX_WWW_DATA}" == "true" ]; then + echo "[apache2] Changing permissions for /var/www path. Don't worry, please wait." + chown www-data:www-data /var/www -R + echo "[apache2] Done" +else + echo "[apache2] env FIX_WWW_DATA is set to strange value. Skipping..." +fi + +################################################################################# +# Starting Apache +echo "[apache2] Starting up" +source /etc/apache2/envvars +tail -F /var/log/apache2/* & +exec apache2 -D FOREGROUND diff --git a/linux/ecosystem/testrail/9.0.0.1057/main/.env b/linux/ecosystem/testrail/9.0.0.1057/main/.env new file mode 100644 index 000000000..dd4169de7 --- /dev/null +++ b/linux/ecosystem/testrail/9.0.0.1057/main/.env @@ -0,0 +1,2 @@ +TESTRAIL_VERSION=9.0.0.1057 +DOWNLOAD_URL=https://secure.testrail.com/downloads/testrail/testrail-${TESTRAIL_VERSION}-ion81.zip diff --git a/linux/ecosystem/testrail/9.0.0.1057/main/Dockerfile b/linux/ecosystem/testrail/9.0.0.1057/main/Dockerfile new file mode 100644 index 000000000..21e66afb4 --- /dev/null +++ b/linux/ecosystem/testrail/9.0.0.1057/main/Dockerfile @@ -0,0 +1,65 @@ +FROM epicmorg/apache2:php8.1 + +############################################################################## +# Testrail Install +############################################################################## + + +ENV TESTRAIL_VERSION=9.0.0.1057 +ARG DOWNLOAD_URL=https://secure.testrail.com/downloads/testrail/testrail-${TESTRAIL_VERSION}-ion81.zip + +ENV TR_DEFAULT_TASK_EXECUTION=60 + +ENV TESTRAIL_RELEASE_DIR=/testrail-release + +ENV TR_WWW_PATH=/var/www/testrail +ENV TR_CONFIGPATH=${TR_CONFIG_DIR} +ENV TR_CONFIG_DIR=${TR_WWW_PATH}/config +ENV TR_CUSTOM_DIR=${TR_WWW_PATH}/custom +ENV TR_CUSTOM_AUTH_DIR=${TR_CUSTOM_DIR}/auth + +ENV TR_OPT_PATH=/opt/testrail +ENV TR_DEFAULT_LOG_DIR=${TR_OPT_PATH}/logs +ENV TR_DEFAULT_AUDIT_DIR=${TR_OPT_PATH}/audit +ENV TR_DEFAULT_REPORT_DIR=${TR_OPT_PATH}/reports +ENV TR_DEFAULT_ATTACHMENT_DIR=${TR_OPT_PATH}/attachments + +ENV TR_OPTPATH="/opt/testrail/" +ENV TR_CONFIGPATH="/var/www/testrail/config/" + +ENV OPENSSL_CONF=/etc/ssl/ + +RUN echo "ServerName localhost" >> /etc/apache2/apache2.conf + +ADD ${DOWNLOAD_URL} ${TESTRAIL_RELEASE_DIR}/testrail-${TESTRAIL_VERSION}-ion81.zip +RUN echo "[testrail] Preparing folders" && \ + mkdir -p ${TESTRAIL_RELEASE_DIR} && \ + mkdir -p ${TR_WWW_PATH} && \ + mkdir -p ${TR_DEFAULT_ATTACHMENT_DIR} ${TR_DEFAULT_REPORT_DIR} ${TR_DEFAULT_AUDIT_DIR} ${TR_DEFAULT_LOG_DIR} && \ + echo "[testrail] Downloading and installing" && \ + chown -R www-data:www-data ${TESTRAIL_RELEASE_DIR} && \ + unzip -q -o ${TESTRAIL_RELEASE_DIR}/testrail-${TESTRAIL_VERSION}-ion81.zip -d /var/www/ && \ + chown -R www-data:www-data ${TR_WWW_PATH} && \ + ls -las ${TR_WWW_PATH} && \ + chown -R www-data:www-data ${TR_OPT_PATH} && \ + ls -las ${TR_OPT_PATH} + +RUN echo "[testrail] Testrail version is: $(cat ${TR_WWW_PATH}/version.txt)" + +COPY apache_testrail.conf ${TESTRAIL_RELEASE_DIR}/apache-conf/000-default.conf + +#healthcheck. good practice +HEALTHCHECK --interval=2m --timeout=3s CMD curl -f http://localhost:80/ || exit 1 + +# Add image configuration and scripts +COPY docker-entrypoint.sh /usr/bin/docker-entrypoint.sh +RUN chmod 755 /usr/bin/docker-entrypoint.sh + +RUN updatedb + +#Final config +WORKDIR /var/www/testrail +EXPOSE 80 443 + +ENTRYPOINT ["tini", "-s", "--", "docker-entrypoint.sh"] +CMD ["docker-entrypoint.sh"] diff --git a/linux/ecosystem/testrail/9.0.0.1057/main/Makefile b/linux/ecosystem/testrail/9.0.0.1057/main/Makefile new file mode 100644 index 000000000..1e4371492 --- /dev/null +++ b/linux/ecosystem/testrail/9.0.0.1057/main/Makefile @@ -0,0 +1,44 @@ +all: app + +app: + make pip + make build + make deploy + make clean + +build: + make build-buildah + +deploy: + make deploy-buildah + +build-buildah: + buildah-wrapper --build + +deploy-buildah: + buildah-wrapper --deploy + +build-kaniko: + kaniko-wrapper --kaniko-image gcr.io/kaniko-project/executor:debug --dry-run + +deploy-kaniko: + kaniko-wrapper --deploy --kaniko-image gcr.io/kaniko-project/executor:debug + +build-compose: + docker-compose build --compress --parallel --progress plain + +deploy-compose: + docker-compose push + +clean: + docker container prune -f + docker image prune -f + docker network prune -f + docker volume prune -f + docker system prune -af + buildah rm -a + buildah rmi -a + +pip: + pip3 install --break-system-packages --no-cache-dir kaniko-wrapper buildah-wrapper + pip install --break-system-packages --no-cache-dir kaniko-wrapper buildah-wrapper \ No newline at end of file diff --git a/linux/ecosystem/testrail/9.0.0.1057/main/README.md b/linux/ecosystem/testrail/9.0.0.1057/main/README.md new file mode 100644 index 000000000..6fa58eb6c --- /dev/null +++ b/linux/ecosystem/testrail/9.0.0.1057/main/README.md @@ -0,0 +1,35 @@ +## Testrail + +* Based on `websites:php8.1` of our ecosystem. + +# Compose example + +```yml +services: + testrail: + image: epicmorg/testrail:9.0.0.1057 +# 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 +``` diff --git a/linux/ecosystem/testrail/9.0.0.1057/main/apache_testrail.conf b/linux/ecosystem/testrail/9.0.0.1057/main/apache_testrail.conf new file mode 100644 index 000000000..750791db9 --- /dev/null +++ b/linux/ecosystem/testrail/9.0.0.1057/main/apache_testrail.conf @@ -0,0 +1,16 @@ + + ServerName localhost + + ServerAdmin webmaster@localhost + DocumentRoot /var/www/testrail + + ErrorLog ${APACHE_LOG_DIR}/error.log + CustomLog ${APACHE_LOG_DIR}/access.log combined + + + Options Indexes FollowSymLinks + AllowOverride All + Require all granted + + + \ No newline at end of file diff --git a/linux/ecosystem/testrail/9.0.0.1057/main/docker-compose.yml b/linux/ecosystem/testrail/9.0.0.1057/main/docker-compose.yml new file mode 100644 index 000000000..66d1f92fe --- /dev/null +++ b/linux/ecosystem/testrail/9.0.0.1057/main/docker-compose.yml @@ -0,0 +1,5 @@ +services: + app: + image: "epicmorg/testrail:9.0.0.1057" + build: + context: . diff --git a/linux/ecosystem/testrail/9.0.0.1057/main/docker-entrypoint.sh b/linux/ecosystem/testrail/9.0.0.1057/main/docker-entrypoint.sh new file mode 100755 index 000000000..08e530a7b --- /dev/null +++ b/linux/ecosystem/testrail/9.0.0.1057/main/docker-entrypoint.sh @@ -0,0 +1,80 @@ +#!/bin/bash + +echo "[testrail] Welcome to Testrail 9.0.0.1057" + +echo "[testrail] Starting testrail service" + +################################################################################# +# Function for creating directories with rights for www-data +function createOptDirectory { + if [ ! -d "$1" ]; then + echo "[testrail] Creating $1" + mkdir -p "$1" + fi + + chown -R www-data:www-data "$1" +} + +################################################################################# +# Copy Apache Configuration +/bin/cp -rf "${TESTRAIL_RELEASE_DIR}/apache-conf/000-default.conf" "/etc/apache2/sites-enabled/000-default.conf" + +################################################################################# +# Unpacking TestRail +if [ -f "${TESTRAIL_RELEASE_DIR}/testrail-${TESTRAIL_VERSION}-ion81.zip" ]; then + echo "[testrail] Unzipping testrail service" + unzip -q -o "${TESTRAIL_RELEASE_DIR}/testrail-${TESTRAIL_VERSION}-ion81.zip" -d /var/www/ + echo "[testrail] Testrail extracted" +else + echo "[testrail] Error: testrail-${TESTRAIL_VERSION}-ion81.zip not found in ${TESTRAIL_RELEASE_DIR}" + exit 1 +fi + +################################################################################# +# Creating the necessary directories +createOptDirectory "${TR_DEFAULT_LOG_DIR}" +createOptDirectory "${TR_DEFAULT_AUDIT_DIR}" +createOptDirectory "${TR_DEFAULT_REPORT_DIR}" +createOptDirectory "${TR_DEFAULT_ATTACHMENT_DIR}" + +chown -R www-data:www-data "${TR_CONFIG_DIR}" +chown -R www-data:www-data "${TR_CONFIGPATH}" + +################################################################################# +# Waiting for task.php file to appear +TASK_FILE="/var/www/testrail/task.php" +echo "[testrail] Waiting for background task file" +while [ ! -f "$TASK_FILE" ]; do + sleep 2 +done + +echo "[testrail] Starting background task" +# Removing the memory limit for executing a PHP task +while /bin/true; do + php -d memory_limit=-1 "$TASK_FILE" || true + sleep "${TR_DEFAULT_TASK_EXECUTION:-60}" +done & + +echo "[testrail] Background task started" + +################################################################################# +# Processing the FIX_WWW_DATA environment variable +if [[ -z "${FIX_WWW_DATA}" ]]; then + echo "[apache2] env FIX_WWW_DATA is not set. Fixing permissions anyway" + chown www-data:www-data /var/www -R +elif [ "${FIX_WWW_DATA}" == "false" ]; then + echo "[apache2] env FIX_WWW_DATA is set to false. Skipping..." +elif [ "${FIX_WWW_DATA}" == "true" ]; then + echo "[apache2] Changing permissions for /var/www path. Don't worry, please wait." + chown www-data:www-data /var/www -R + echo "[apache2] Done" +else + echo "[apache2] env FIX_WWW_DATA is set to strange value. Skipping..." +fi + +################################################################################# +# Starting Apache +echo "[apache2] Starting up" +source /etc/apache2/envvars +tail -F /var/log/apache2/* & +exec apache2 -D FOREGROUND