From a932e9192d2b07161f39d6671f58afeeff1e021a Mon Sep 17 00:00:00 2001 From: Jonathan Desrosiers <359867+desrosj@users.noreply.github.com> Date: Fri, 15 May 2026 13:53:20 -0400 Subject: [PATCH 1/5] Remove `phpunit` images that were never used. --- images/8.1/phpunit/Dockerfile | 22 ---------------------- images/8.1/phpunit/entrypoint.sh | 9 --------- images/8.2/phpunit/Dockerfile | 22 ---------------------- images/8.2/phpunit/entrypoint.sh | 9 --------- images/8.3/phpunit/Dockerfile | 22 ---------------------- images/8.3/phpunit/entrypoint.sh | 9 --------- images/8.4/phpunit/Dockerfile | 22 ---------------------- images/8.4/phpunit/entrypoint.sh | 9 --------- images/8.5/phpunit/Dockerfile | 22 ---------------------- images/8.5/phpunit/entrypoint.sh | 9 --------- images/phpunit/8-php-7.2/Dockerfile | 22 ---------------------- images/phpunit/8-php-7.2/entrypoint.sh | 9 --------- images/phpunit/8-php-7.3/Dockerfile | 22 ---------------------- images/phpunit/8-php-7.3/entrypoint.sh | 9 --------- images/phpunit/8-php-7.4/Dockerfile | 22 ---------------------- images/phpunit/8-php-7.4/entrypoint.sh | 9 --------- images/phpunit/8-php-8.0/Dockerfile | 22 ---------------------- images/phpunit/8-php-8.0/entrypoint.sh | 9 --------- images/phpunit/8-php-8.1/Dockerfile | 22 ---------------------- images/phpunit/8-php-8.1/entrypoint.sh | 9 --------- images/phpunit/8-php-8.2/Dockerfile | 22 ---------------------- images/phpunit/8-php-8.2/entrypoint.sh | 9 --------- images/phpunit/9-php-7.3/Dockerfile | 22 ---------------------- images/phpunit/9-php-7.3/entrypoint.sh | 9 --------- images/phpunit/9-php-7.4/Dockerfile | 22 ---------------------- images/phpunit/9-php-7.4/entrypoint.sh | 9 --------- images/phpunit/9-php-8.0/Dockerfile | 22 ---------------------- images/phpunit/9-php-8.0/entrypoint.sh | 9 --------- images/phpunit/9-php-8.1/Dockerfile | 22 ---------------------- images/phpunit/9-php-8.1/entrypoint.sh | 9 --------- images/phpunit/9-php-8.2/Dockerfile | 22 ---------------------- images/phpunit/9-php-8.2/entrypoint.sh | 9 --------- images/phpunit/9-php-8.3/Dockerfile | 22 ---------------------- images/phpunit/9-php-8.3/entrypoint.sh | 9 --------- update.php | 18 ++++-------------- 35 files changed, 4 insertions(+), 541 deletions(-) delete mode 100644 images/8.1/phpunit/Dockerfile delete mode 100644 images/8.1/phpunit/entrypoint.sh delete mode 100644 images/8.2/phpunit/Dockerfile delete mode 100644 images/8.2/phpunit/entrypoint.sh delete mode 100644 images/8.3/phpunit/Dockerfile delete mode 100644 images/8.3/phpunit/entrypoint.sh delete mode 100644 images/8.4/phpunit/Dockerfile delete mode 100644 images/8.4/phpunit/entrypoint.sh delete mode 100644 images/8.5/phpunit/Dockerfile delete mode 100644 images/8.5/phpunit/entrypoint.sh delete mode 100644 images/phpunit/8-php-7.2/Dockerfile delete mode 100644 images/phpunit/8-php-7.2/entrypoint.sh delete mode 100644 images/phpunit/8-php-7.3/Dockerfile delete mode 100644 images/phpunit/8-php-7.3/entrypoint.sh delete mode 100644 images/phpunit/8-php-7.4/Dockerfile delete mode 100644 images/phpunit/8-php-7.4/entrypoint.sh delete mode 100644 images/phpunit/8-php-8.0/Dockerfile delete mode 100644 images/phpunit/8-php-8.0/entrypoint.sh delete mode 100644 images/phpunit/8-php-8.1/Dockerfile delete mode 100644 images/phpunit/8-php-8.1/entrypoint.sh delete mode 100644 images/phpunit/8-php-8.2/Dockerfile delete mode 100644 images/phpunit/8-php-8.2/entrypoint.sh delete mode 100644 images/phpunit/9-php-7.3/Dockerfile delete mode 100644 images/phpunit/9-php-7.3/entrypoint.sh delete mode 100644 images/phpunit/9-php-7.4/Dockerfile delete mode 100644 images/phpunit/9-php-7.4/entrypoint.sh delete mode 100644 images/phpunit/9-php-8.0/Dockerfile delete mode 100644 images/phpunit/9-php-8.0/entrypoint.sh delete mode 100644 images/phpunit/9-php-8.1/Dockerfile delete mode 100644 images/phpunit/9-php-8.1/entrypoint.sh delete mode 100644 images/phpunit/9-php-8.2/Dockerfile delete mode 100644 images/phpunit/9-php-8.2/entrypoint.sh delete mode 100644 images/phpunit/9-php-8.3/Dockerfile delete mode 100644 images/phpunit/9-php-8.3/entrypoint.sh diff --git a/images/8.1/phpunit/Dockerfile b/images/8.1/phpunit/Dockerfile deleted file mode 100644 index 1aee9bf0..00000000 --- a/images/8.1/phpunit/Dockerfile +++ /dev/null @@ -1,22 +0,0 @@ -ARG PACKAGE_REGISTRY -ARG PR_TAG -FROM $PACKAGE_REGISTRY/php:8.1-fpm$PR_TAG - -########################################################################## -# -# WARNING: This file was generated by update.php. -# -# You can find the relevant template in the `/templates` folder. -# - -RUN curl -sL https://phar.phpunit.de/phpunit-9.phar > /usr/local/bin/phpunit && chmod +x /usr/local/bin/phpunit - -WORKDIR /var/www - -COPY entrypoint.sh /entrypoint.sh - -RUN chmod +x /entrypoint.sh - -ENTRYPOINT [ "/entrypoint.sh" ] - -CMD /usr/local/bin/phpunit diff --git a/images/8.1/phpunit/entrypoint.sh b/images/8.1/phpunit/entrypoint.sh deleted file mode 100644 index ef08bb84..00000000 --- a/images/8.1/phpunit/entrypoint.sh +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/bash -set -e - -source /common.sh - -chown -R wp_php:wp_php /var/www/${LOCAL_DIR-src}/wp-content/uploads - -# Execute CMD -sudo -E -u wp_php "$@" diff --git a/images/8.2/phpunit/Dockerfile b/images/8.2/phpunit/Dockerfile deleted file mode 100644 index 691bb4eb..00000000 --- a/images/8.2/phpunit/Dockerfile +++ /dev/null @@ -1,22 +0,0 @@ -ARG PACKAGE_REGISTRY -ARG PR_TAG -FROM $PACKAGE_REGISTRY/php:8.2-fpm$PR_TAG - -########################################################################## -# -# WARNING: This file was generated by update.php. -# -# You can find the relevant template in the `/templates` folder. -# - -RUN curl -sL https://phar.phpunit.de/phpunit-9.phar > /usr/local/bin/phpunit && chmod +x /usr/local/bin/phpunit - -WORKDIR /var/www - -COPY entrypoint.sh /entrypoint.sh - -RUN chmod +x /entrypoint.sh - -ENTRYPOINT [ "/entrypoint.sh" ] - -CMD /usr/local/bin/phpunit diff --git a/images/8.2/phpunit/entrypoint.sh b/images/8.2/phpunit/entrypoint.sh deleted file mode 100644 index ef08bb84..00000000 --- a/images/8.2/phpunit/entrypoint.sh +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/bash -set -e - -source /common.sh - -chown -R wp_php:wp_php /var/www/${LOCAL_DIR-src}/wp-content/uploads - -# Execute CMD -sudo -E -u wp_php "$@" diff --git a/images/8.3/phpunit/Dockerfile b/images/8.3/phpunit/Dockerfile deleted file mode 100644 index 12ee5129..00000000 --- a/images/8.3/phpunit/Dockerfile +++ /dev/null @@ -1,22 +0,0 @@ -ARG PACKAGE_REGISTRY -ARG PR_TAG -FROM $PACKAGE_REGISTRY/php:8.3-fpm$PR_TAG - -########################################################################## -# -# WARNING: This file was generated by update.php. -# -# You can find the relevant template in the `/templates` folder. -# - -RUN curl -sL https://phar.phpunit.de/phpunit-9.phar > /usr/local/bin/phpunit && chmod +x /usr/local/bin/phpunit - -WORKDIR /var/www - -COPY entrypoint.sh /entrypoint.sh - -RUN chmod +x /entrypoint.sh - -ENTRYPOINT [ "/entrypoint.sh" ] - -CMD /usr/local/bin/phpunit diff --git a/images/8.3/phpunit/entrypoint.sh b/images/8.3/phpunit/entrypoint.sh deleted file mode 100644 index ef08bb84..00000000 --- a/images/8.3/phpunit/entrypoint.sh +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/bash -set -e - -source /common.sh - -chown -R wp_php:wp_php /var/www/${LOCAL_DIR-src}/wp-content/uploads - -# Execute CMD -sudo -E -u wp_php "$@" diff --git a/images/8.4/phpunit/Dockerfile b/images/8.4/phpunit/Dockerfile deleted file mode 100644 index 6c3a6f62..00000000 --- a/images/8.4/phpunit/Dockerfile +++ /dev/null @@ -1,22 +0,0 @@ -ARG PACKAGE_REGISTRY -ARG PR_TAG -FROM $PACKAGE_REGISTRY/php:8.4-fpm$PR_TAG - -########################################################################## -# -# WARNING: This file was generated by update.php. -# -# You can find the relevant template in the `/templates` folder. -# - -RUN curl -sL https://phar.phpunit.de/phpunit-9.phar > /usr/local/bin/phpunit && chmod +x /usr/local/bin/phpunit - -WORKDIR /var/www - -COPY entrypoint.sh /entrypoint.sh - -RUN chmod +x /entrypoint.sh - -ENTRYPOINT [ "/entrypoint.sh" ] - -CMD /usr/local/bin/phpunit diff --git a/images/8.4/phpunit/entrypoint.sh b/images/8.4/phpunit/entrypoint.sh deleted file mode 100644 index ef08bb84..00000000 --- a/images/8.4/phpunit/entrypoint.sh +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/bash -set -e - -source /common.sh - -chown -R wp_php:wp_php /var/www/${LOCAL_DIR-src}/wp-content/uploads - -# Execute CMD -sudo -E -u wp_php "$@" diff --git a/images/8.5/phpunit/Dockerfile b/images/8.5/phpunit/Dockerfile deleted file mode 100644 index e6d4614e..00000000 --- a/images/8.5/phpunit/Dockerfile +++ /dev/null @@ -1,22 +0,0 @@ -ARG PACKAGE_REGISTRY -ARG PR_TAG -FROM $PACKAGE_REGISTRY/php:8.5-fpm$PR_TAG - -########################################################################## -# -# WARNING: This file was generated by update.php. -# -# You can find the relevant template in the `/templates` folder. -# - -RUN curl -sL https://phar.phpunit.de/phpunit-9.phar > /usr/local/bin/phpunit && chmod +x /usr/local/bin/phpunit - -WORKDIR /var/www - -COPY entrypoint.sh /entrypoint.sh - -RUN chmod +x /entrypoint.sh - -ENTRYPOINT [ "/entrypoint.sh" ] - -CMD /usr/local/bin/phpunit diff --git a/images/8.5/phpunit/entrypoint.sh b/images/8.5/phpunit/entrypoint.sh deleted file mode 100644 index ef08bb84..00000000 --- a/images/8.5/phpunit/entrypoint.sh +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/bash -set -e - -source /common.sh - -chown -R wp_php:wp_php /var/www/${LOCAL_DIR-src}/wp-content/uploads - -# Execute CMD -sudo -E -u wp_php "$@" diff --git a/images/phpunit/8-php-7.2/Dockerfile b/images/phpunit/8-php-7.2/Dockerfile deleted file mode 100644 index bda3f209..00000000 --- a/images/phpunit/8-php-7.2/Dockerfile +++ /dev/null @@ -1,22 +0,0 @@ -ARG PACKAGE_REGISTRY -ARG PR_TAG -FROM $PACKAGE_REGISTRY/php:7.2-fpm$PR_TAG - -########################################################################## -# -# WARNING: This file was generated by update.php. -# -# You can find the relevant template in the `/templates` folder. -# - -RUN curl -sL https://phar.phpunit.de/phpunit-8.phar > /usr/local/bin/phpunit && chmod +x /usr/local/bin/phpunit - -WORKDIR /var/www - -COPY entrypoint.sh /entrypoint.sh - -RUN chmod +x /entrypoint.sh - -ENTRYPOINT [ "/entrypoint.sh" ] - -CMD /usr/local/bin/phpunit diff --git a/images/phpunit/8-php-7.2/entrypoint.sh b/images/phpunit/8-php-7.2/entrypoint.sh deleted file mode 100644 index ef08bb84..00000000 --- a/images/phpunit/8-php-7.2/entrypoint.sh +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/bash -set -e - -source /common.sh - -chown -R wp_php:wp_php /var/www/${LOCAL_DIR-src}/wp-content/uploads - -# Execute CMD -sudo -E -u wp_php "$@" diff --git a/images/phpunit/8-php-7.3/Dockerfile b/images/phpunit/8-php-7.3/Dockerfile deleted file mode 100644 index 904dbe4d..00000000 --- a/images/phpunit/8-php-7.3/Dockerfile +++ /dev/null @@ -1,22 +0,0 @@ -ARG PACKAGE_REGISTRY -ARG PR_TAG -FROM $PACKAGE_REGISTRY/php:7.3-fpm$PR_TAG - -########################################################################## -# -# WARNING: This file was generated by update.php. -# -# You can find the relevant template in the `/templates` folder. -# - -RUN curl -sL https://phar.phpunit.de/phpunit-8.phar > /usr/local/bin/phpunit && chmod +x /usr/local/bin/phpunit - -WORKDIR /var/www - -COPY entrypoint.sh /entrypoint.sh - -RUN chmod +x /entrypoint.sh - -ENTRYPOINT [ "/entrypoint.sh" ] - -CMD /usr/local/bin/phpunit diff --git a/images/phpunit/8-php-7.3/entrypoint.sh b/images/phpunit/8-php-7.3/entrypoint.sh deleted file mode 100644 index ef08bb84..00000000 --- a/images/phpunit/8-php-7.3/entrypoint.sh +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/bash -set -e - -source /common.sh - -chown -R wp_php:wp_php /var/www/${LOCAL_DIR-src}/wp-content/uploads - -# Execute CMD -sudo -E -u wp_php "$@" diff --git a/images/phpunit/8-php-7.4/Dockerfile b/images/phpunit/8-php-7.4/Dockerfile deleted file mode 100644 index 9bd35e89..00000000 --- a/images/phpunit/8-php-7.4/Dockerfile +++ /dev/null @@ -1,22 +0,0 @@ -ARG PACKAGE_REGISTRY -ARG PR_TAG -FROM $PACKAGE_REGISTRY/php:7.4-fpm$PR_TAG - -########################################################################## -# -# WARNING: This file was generated by update.php. -# -# You can find the relevant template in the `/templates` folder. -# - -RUN curl -sL https://phar.phpunit.de/phpunit-8.phar > /usr/local/bin/phpunit && chmod +x /usr/local/bin/phpunit - -WORKDIR /var/www - -COPY entrypoint.sh /entrypoint.sh - -RUN chmod +x /entrypoint.sh - -ENTRYPOINT [ "/entrypoint.sh" ] - -CMD /usr/local/bin/phpunit diff --git a/images/phpunit/8-php-7.4/entrypoint.sh b/images/phpunit/8-php-7.4/entrypoint.sh deleted file mode 100644 index ef08bb84..00000000 --- a/images/phpunit/8-php-7.4/entrypoint.sh +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/bash -set -e - -source /common.sh - -chown -R wp_php:wp_php /var/www/${LOCAL_DIR-src}/wp-content/uploads - -# Execute CMD -sudo -E -u wp_php "$@" diff --git a/images/phpunit/8-php-8.0/Dockerfile b/images/phpunit/8-php-8.0/Dockerfile deleted file mode 100644 index 8c8c9ece..00000000 --- a/images/phpunit/8-php-8.0/Dockerfile +++ /dev/null @@ -1,22 +0,0 @@ -ARG PACKAGE_REGISTRY -ARG PR_TAG -FROM $PACKAGE_REGISTRY/php:8.0-fpm$PR_TAG - -########################################################################## -# -# WARNING: This file was generated by update.php. -# -# You can find the relevant template in the `/templates` folder. -# - -RUN curl -sL https://phar.phpunit.de/phpunit-8.phar > /usr/local/bin/phpunit && chmod +x /usr/local/bin/phpunit - -WORKDIR /var/www - -COPY entrypoint.sh /entrypoint.sh - -RUN chmod +x /entrypoint.sh - -ENTRYPOINT [ "/entrypoint.sh" ] - -CMD /usr/local/bin/phpunit diff --git a/images/phpunit/8-php-8.0/entrypoint.sh b/images/phpunit/8-php-8.0/entrypoint.sh deleted file mode 100644 index ef08bb84..00000000 --- a/images/phpunit/8-php-8.0/entrypoint.sh +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/bash -set -e - -source /common.sh - -chown -R wp_php:wp_php /var/www/${LOCAL_DIR-src}/wp-content/uploads - -# Execute CMD -sudo -E -u wp_php "$@" diff --git a/images/phpunit/8-php-8.1/Dockerfile b/images/phpunit/8-php-8.1/Dockerfile deleted file mode 100644 index e2e8562a..00000000 --- a/images/phpunit/8-php-8.1/Dockerfile +++ /dev/null @@ -1,22 +0,0 @@ -ARG PACKAGE_REGISTRY -ARG PR_TAG -FROM $PACKAGE_REGISTRY/php:8.1-fpm$PR_TAG - -########################################################################## -# -# WARNING: This file was generated by update.php. -# -# You can find the relevant template in the `/templates` folder. -# - -RUN curl -sL https://phar.phpunit.de/phpunit-8.phar > /usr/local/bin/phpunit && chmod +x /usr/local/bin/phpunit - -WORKDIR /var/www - -COPY entrypoint.sh /entrypoint.sh - -RUN chmod +x /entrypoint.sh - -ENTRYPOINT [ "/entrypoint.sh" ] - -CMD /usr/local/bin/phpunit diff --git a/images/phpunit/8-php-8.1/entrypoint.sh b/images/phpunit/8-php-8.1/entrypoint.sh deleted file mode 100644 index ef08bb84..00000000 --- a/images/phpunit/8-php-8.1/entrypoint.sh +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/bash -set -e - -source /common.sh - -chown -R wp_php:wp_php /var/www/${LOCAL_DIR-src}/wp-content/uploads - -# Execute CMD -sudo -E -u wp_php "$@" diff --git a/images/phpunit/8-php-8.2/Dockerfile b/images/phpunit/8-php-8.2/Dockerfile deleted file mode 100644 index 3d715b92..00000000 --- a/images/phpunit/8-php-8.2/Dockerfile +++ /dev/null @@ -1,22 +0,0 @@ -ARG PACKAGE_REGISTRY -ARG PR_TAG -FROM $PACKAGE_REGISTRY/php:8.2-fpm$PR_TAG - -########################################################################## -# -# WARNING: This file was generated by update.php. -# -# You can find the relevant template in the `/templates` folder. -# - -RUN curl -sL https://phar.phpunit.de/phpunit-8.phar > /usr/local/bin/phpunit && chmod +x /usr/local/bin/phpunit - -WORKDIR /var/www - -COPY entrypoint.sh /entrypoint.sh - -RUN chmod +x /entrypoint.sh - -ENTRYPOINT [ "/entrypoint.sh" ] - -CMD /usr/local/bin/phpunit diff --git a/images/phpunit/8-php-8.2/entrypoint.sh b/images/phpunit/8-php-8.2/entrypoint.sh deleted file mode 100644 index ef08bb84..00000000 --- a/images/phpunit/8-php-8.2/entrypoint.sh +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/bash -set -e - -source /common.sh - -chown -R wp_php:wp_php /var/www/${LOCAL_DIR-src}/wp-content/uploads - -# Execute CMD -sudo -E -u wp_php "$@" diff --git a/images/phpunit/9-php-7.3/Dockerfile b/images/phpunit/9-php-7.3/Dockerfile deleted file mode 100644 index 8d3bd267..00000000 --- a/images/phpunit/9-php-7.3/Dockerfile +++ /dev/null @@ -1,22 +0,0 @@ -ARG PACKAGE_REGISTRY -ARG PR_TAG -FROM $PACKAGE_REGISTRY/php:7.3-fpm$PR_TAG - -########################################################################## -# -# WARNING: This file was generated by update.php. -# -# You can find the relevant template in the `/templates` folder. -# - -RUN curl -sL https://phar.phpunit.de/phpunit-9.phar > /usr/local/bin/phpunit && chmod +x /usr/local/bin/phpunit - -WORKDIR /var/www - -COPY entrypoint.sh /entrypoint.sh - -RUN chmod +x /entrypoint.sh - -ENTRYPOINT [ "/entrypoint.sh" ] - -CMD /usr/local/bin/phpunit diff --git a/images/phpunit/9-php-7.3/entrypoint.sh b/images/phpunit/9-php-7.3/entrypoint.sh deleted file mode 100644 index ef08bb84..00000000 --- a/images/phpunit/9-php-7.3/entrypoint.sh +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/bash -set -e - -source /common.sh - -chown -R wp_php:wp_php /var/www/${LOCAL_DIR-src}/wp-content/uploads - -# Execute CMD -sudo -E -u wp_php "$@" diff --git a/images/phpunit/9-php-7.4/Dockerfile b/images/phpunit/9-php-7.4/Dockerfile deleted file mode 100644 index 8236c604..00000000 --- a/images/phpunit/9-php-7.4/Dockerfile +++ /dev/null @@ -1,22 +0,0 @@ -ARG PACKAGE_REGISTRY -ARG PR_TAG -FROM $PACKAGE_REGISTRY/php:7.4-fpm$PR_TAG - -########################################################################## -# -# WARNING: This file was generated by update.php. -# -# You can find the relevant template in the `/templates` folder. -# - -RUN curl -sL https://phar.phpunit.de/phpunit-9.phar > /usr/local/bin/phpunit && chmod +x /usr/local/bin/phpunit - -WORKDIR /var/www - -COPY entrypoint.sh /entrypoint.sh - -RUN chmod +x /entrypoint.sh - -ENTRYPOINT [ "/entrypoint.sh" ] - -CMD /usr/local/bin/phpunit diff --git a/images/phpunit/9-php-7.4/entrypoint.sh b/images/phpunit/9-php-7.4/entrypoint.sh deleted file mode 100644 index ef08bb84..00000000 --- a/images/phpunit/9-php-7.4/entrypoint.sh +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/bash -set -e - -source /common.sh - -chown -R wp_php:wp_php /var/www/${LOCAL_DIR-src}/wp-content/uploads - -# Execute CMD -sudo -E -u wp_php "$@" diff --git a/images/phpunit/9-php-8.0/Dockerfile b/images/phpunit/9-php-8.0/Dockerfile deleted file mode 100644 index 74d52da6..00000000 --- a/images/phpunit/9-php-8.0/Dockerfile +++ /dev/null @@ -1,22 +0,0 @@ -ARG PACKAGE_REGISTRY -ARG PR_TAG -FROM $PACKAGE_REGISTRY/php:8.0-fpm$PR_TAG - -########################################################################## -# -# WARNING: This file was generated by update.php. -# -# You can find the relevant template in the `/templates` folder. -# - -RUN curl -sL https://phar.phpunit.de/phpunit-9.phar > /usr/local/bin/phpunit && chmod +x /usr/local/bin/phpunit - -WORKDIR /var/www - -COPY entrypoint.sh /entrypoint.sh - -RUN chmod +x /entrypoint.sh - -ENTRYPOINT [ "/entrypoint.sh" ] - -CMD /usr/local/bin/phpunit diff --git a/images/phpunit/9-php-8.0/entrypoint.sh b/images/phpunit/9-php-8.0/entrypoint.sh deleted file mode 100644 index ef08bb84..00000000 --- a/images/phpunit/9-php-8.0/entrypoint.sh +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/bash -set -e - -source /common.sh - -chown -R wp_php:wp_php /var/www/${LOCAL_DIR-src}/wp-content/uploads - -# Execute CMD -sudo -E -u wp_php "$@" diff --git a/images/phpunit/9-php-8.1/Dockerfile b/images/phpunit/9-php-8.1/Dockerfile deleted file mode 100644 index 1aee9bf0..00000000 --- a/images/phpunit/9-php-8.1/Dockerfile +++ /dev/null @@ -1,22 +0,0 @@ -ARG PACKAGE_REGISTRY -ARG PR_TAG -FROM $PACKAGE_REGISTRY/php:8.1-fpm$PR_TAG - -########################################################################## -# -# WARNING: This file was generated by update.php. -# -# You can find the relevant template in the `/templates` folder. -# - -RUN curl -sL https://phar.phpunit.de/phpunit-9.phar > /usr/local/bin/phpunit && chmod +x /usr/local/bin/phpunit - -WORKDIR /var/www - -COPY entrypoint.sh /entrypoint.sh - -RUN chmod +x /entrypoint.sh - -ENTRYPOINT [ "/entrypoint.sh" ] - -CMD /usr/local/bin/phpunit diff --git a/images/phpunit/9-php-8.1/entrypoint.sh b/images/phpunit/9-php-8.1/entrypoint.sh deleted file mode 100644 index ef08bb84..00000000 --- a/images/phpunit/9-php-8.1/entrypoint.sh +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/bash -set -e - -source /common.sh - -chown -R wp_php:wp_php /var/www/${LOCAL_DIR-src}/wp-content/uploads - -# Execute CMD -sudo -E -u wp_php "$@" diff --git a/images/phpunit/9-php-8.2/Dockerfile b/images/phpunit/9-php-8.2/Dockerfile deleted file mode 100644 index 691bb4eb..00000000 --- a/images/phpunit/9-php-8.2/Dockerfile +++ /dev/null @@ -1,22 +0,0 @@ -ARG PACKAGE_REGISTRY -ARG PR_TAG -FROM $PACKAGE_REGISTRY/php:8.2-fpm$PR_TAG - -########################################################################## -# -# WARNING: This file was generated by update.php. -# -# You can find the relevant template in the `/templates` folder. -# - -RUN curl -sL https://phar.phpunit.de/phpunit-9.phar > /usr/local/bin/phpunit && chmod +x /usr/local/bin/phpunit - -WORKDIR /var/www - -COPY entrypoint.sh /entrypoint.sh - -RUN chmod +x /entrypoint.sh - -ENTRYPOINT [ "/entrypoint.sh" ] - -CMD /usr/local/bin/phpunit diff --git a/images/phpunit/9-php-8.2/entrypoint.sh b/images/phpunit/9-php-8.2/entrypoint.sh deleted file mode 100644 index ef08bb84..00000000 --- a/images/phpunit/9-php-8.2/entrypoint.sh +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/bash -set -e - -source /common.sh - -chown -R wp_php:wp_php /var/www/${LOCAL_DIR-src}/wp-content/uploads - -# Execute CMD -sudo -E -u wp_php "$@" diff --git a/images/phpunit/9-php-8.3/Dockerfile b/images/phpunit/9-php-8.3/Dockerfile deleted file mode 100644 index 12ee5129..00000000 --- a/images/phpunit/9-php-8.3/Dockerfile +++ /dev/null @@ -1,22 +0,0 @@ -ARG PACKAGE_REGISTRY -ARG PR_TAG -FROM $PACKAGE_REGISTRY/php:8.3-fpm$PR_TAG - -########################################################################## -# -# WARNING: This file was generated by update.php. -# -# You can find the relevant template in the `/templates` folder. -# - -RUN curl -sL https://phar.phpunit.de/phpunit-9.phar > /usr/local/bin/phpunit && chmod +x /usr/local/bin/phpunit - -WORKDIR /var/www - -COPY entrypoint.sh /entrypoint.sh - -RUN chmod +x /entrypoint.sh - -ENTRYPOINT [ "/entrypoint.sh" ] - -CMD /usr/local/bin/phpunit diff --git a/images/phpunit/9-php-8.3/entrypoint.sh b/images/phpunit/9-php-8.3/entrypoint.sh deleted file mode 100644 index ef08bb84..00000000 --- a/images/phpunit/9-php-8.3/entrypoint.sh +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/bash -set -e - -source /common.sh - -chown -R wp_php:wp_php /var/www/${LOCAL_DIR-src}/wp-content/uploads - -# Execute CMD -sudo -E -u wp_php "$@" diff --git a/update.php b/update.php index 4251c438..df8f0322 100644 --- a/update.php +++ b/update.php @@ -77,7 +77,6 @@ 'pecl_extensions' => array( 'imagick', 'memcached-3.4.0', 'xdebug-3.5.1' ), 'composer' => true, ), - 'phpunit' => 9, 'cli' => array( 'mysql_client' => 'virtual-mysql-client', 'download_url' => 'https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar', @@ -91,7 +90,6 @@ 'pecl_extensions' => array( 'imagick', 'memcached-3.4.0', 'xdebug-3.5.1' ), 'composer' => true, ), - 'phpunit' => 9, 'cli' => array( 'mysql_client' => 'virtual-mysql-client', 'download_url' => 'https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar', @@ -105,7 +103,6 @@ 'pecl_extensions' => array( 'imagick', 'memcached-3.4.0', 'xdebug-3.5.1' ), 'composer' => true, ), - 'phpunit' => 9, 'cli' => array( 'mysql_client' => 'virtual-mysql-client', 'download_url' => 'https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar', @@ -119,7 +116,6 @@ 'pecl_extensions' => array( 'imagick', 'memcached-3.4.0', 'xdebug-3.5.1' ), 'composer' => true, ), - 'phpunit' => 9, 'cli' => array( 'mysql_client' => 'virtual-mysql-client', 'download_url' => 'https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar', @@ -133,7 +129,6 @@ 'pecl_extensions' => array( 'imagick', 'memcached-3.4.0', 'xdebug-3.5.1' ), 'composer' => true, ), - 'phpunit' => 9, 'cli' => array( 'mysql_client' => 'virtual-mysql-client', 'download_url' => 'https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar', @@ -147,7 +142,6 @@ 'pecl_extensions' => array( 'memcached-3.4.0', 'imagick', 'xdebug-3.5.1' ), 'composer' => true, ), - 'phpunit' => 9, 'cli' => array( 'mysql_client' => 'virtual-mysql-client', 'download_url' => 'https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar', @@ -295,25 +289,21 @@ * An array of all PHPUnit and PHP version combinations that we need to generate images for. * * Different WordPress versions support different versions of PHP and different versions of PHPUnit. - * This creates a need to run multiple versions of PHPUnit on each version of PHP. + * This can create a need to run multiple versions of PHPUnit on each version of PHP. * - * These versions of PHPUnit are no longer supported and do not receive updates. - * Regenerating these containers should very rarely be required. + * These versions of PHP are EOL, so regenerating these containers is not necessary. + * + * @see https://make.wordpress.org/core/handbook/references/phpunit-compatibility-and-wordpress-versions/ * * @param array $legacy_phpunit_versions A list of PHP versions for each PHPUnit version. */ $legacy_phpunit_versions = array( '9' => array( - '8.3', - '8.2', - '8.1', '8.0', '7.4', '7.3', ), '8' => array( - '8.2', - '8.1', '8.0', '7.4', '7.3', From 8ad972f2b13e2e92146c6291e3a59362c854be15 Mon Sep 17 00:00:00 2001 From: Jonathan Desrosiers <359867+desrosj@users.noreply.github.com> Date: Fri, 15 May 2026 13:54:10 -0400 Subject: [PATCH 2/5] Remove all code related to `phpunit` containers. The `$legacy_phpunit_versions` is being left for archival reference. --- templates/Dockerfile-phpunit.template | 17 ----------------- update.php | 16 +--------------- 2 files changed, 1 insertion(+), 32 deletions(-) delete mode 100644 templates/Dockerfile-phpunit.template diff --git a/templates/Dockerfile-phpunit.template b/templates/Dockerfile-phpunit.template deleted file mode 100644 index 1cf4db31..00000000 --- a/templates/Dockerfile-phpunit.template +++ /dev/null @@ -1,17 +0,0 @@ -ARG PACKAGE_REGISTRY -ARG PR_TAG -FROM $PACKAGE_REGISTRY/php:%%VERSION_TAG%%$PR_TAG - -%%GENERATED_WARNING%% - -RUN curl -sL https://phar.phpunit.de/phpunit-%%PHPUNIT_VERSION%%.phar > /usr/local/bin/phpunit && chmod +x /usr/local/bin/phpunit - -WORKDIR /var/www - -COPY entrypoint.sh /entrypoint.sh - -RUN chmod +x /entrypoint.sh - -ENTRYPOINT [ "/entrypoint.sh" ] - -CMD /usr/local/bin/phpunit diff --git a/update.php b/update.php index df8f0322..d1594c01 100644 --- a/update.php +++ b/update.php @@ -19,8 +19,6 @@ * @type array $pecl_extensions An array of PECL-sourced PHP extensions that will be installed, but not enabled. * } * - * @param int $phpunit The major version branch of PHPUnit to install on this image. - * * @param array|false $cli { * @type string $mysql_client The name of the MySQL client Ubuntu package on this image. * @type string $download_url The download URL for the version of WP-CLI to install on this image. @@ -35,7 +33,6 @@ 'pecl_extensions' => array( 'imagick', 'xdebug-3.1.6', 'memcached-3.3.0' ), 'composer' => true, ), - 'phpunit' => 7, 'cli' => array( 'mysql_client' => 'virtual-mysql-client', 'download_url' => 'https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar', @@ -49,7 +46,6 @@ 'pecl_extensions' => array( 'imagick', 'xdebug-3.1.6', 'memcached-3.3.0' ), 'composer' => true, ), - 'phpunit' => 7, 'cli' => array( 'mysql_client' => 'virtual-mysql-client', 'download_url' => 'https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar', @@ -63,7 +59,6 @@ 'pecl_extensions' => array( 'imagick', 'xdebug-3.1.6', 'memcached-3.3.0' ), 'composer' => true, ), - 'phpunit' => 7, 'cli' => array( 'mysql_client' => 'virtual-mysql-client', 'download_url' => 'https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar', @@ -346,7 +341,6 @@ // Load the templates. $templates = array( 'php' => file_get_contents( 'templates/Dockerfile-php.template' ), - 'phpunit' => file_get_contents( 'templates/Dockerfile-phpunit.template' ), 'cli' => file_get_contents( 'templates/Dockerfile-cli.template' ), ); @@ -365,7 +359,7 @@ $dockerfile = str_replace( '%%GENERATED_WARNING%%', $generated_warning, $dockerfile ); - // PHPUnit and WP-CLI image parent tags vary depending on whether it's a PHP version, or "latest". + // WP-CLI image parent tags vary depending on whether it's a PHP version, or "latest". if ( 'latest' === $version ) { $version_tag = 'latest'; } else { @@ -496,14 +490,6 @@ copy( "entrypoint/common.sh", "images/{$version}/{$image}/common.sh" ); - } elseif ( $image === 'phpunit' ) { - // Replace tags inside the PHPUnit Dockerfile template. - $dockerfile = str_replace( '%%PHPUNIT_VERSION%%', $config, $dockerfile ); - - // Ensure PHPUnit can be successfully downloaded in older containers. - if ( '7.1' > $version ) { - $dockerfile = str_replace( 'RUN curl -sL', 'RUN curl -sLk', $dockerfile ); - } } elseif ( $image === 'cli' ) { // Replace tags inside the WP-CLI Dockerfile template. if ( $config ) { From feccf829a79d4f06ce7365a5d94a796778ce213a Mon Sep 17 00:00:00 2001 From: Jonathan Desrosiers <359867+desrosj@users.noreply.github.com> Date: Fri, 15 May 2026 21:31:59 -0400 Subject: [PATCH 3/5] Remove another PHPUnit reference. --- update.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/update.php b/update.php index d1594c01..c44768f1 100644 --- a/update.php +++ b/update.php @@ -6,7 +6,7 @@ /** * An array of all PHP versions that we need to generate images for, and their config settings. * - * Each PHP version has settings for the PHP base image, the PHPUnit image, and the WP_CLI image. + * Each PHP version has settings for the PHP base image, and the WP_CLI image. * * The minimum version of PHP required as of WordPress 6.6 is 7.2.24+. * From 51d27d7f66cc54834bef2a9dd77116e076b5fbf1 Mon Sep 17 00:00:00 2001 From: Jonathan Desrosiers <359867+desrosj@users.noreply.github.com> Date: Fri, 15 May 2026 21:33:30 -0400 Subject: [PATCH 4/5] Remove legacy arrays. These can always be restored through version control if necessary. --- update.php | 184 ----------------------------------------------------- 1 file changed, 184 deletions(-) diff --git a/update.php b/update.php index c44768f1..92bba318 100644 --- a/update.php +++ b/update.php @@ -144,190 +144,6 @@ ), ); -/** - * An array of all legacy PHP versions that images are no longer generated for, and their config settings. - * - * Each PHP version has settings for the PHP base image, the PHPUnit image, and the WP_CLI image. - * - * These versions of PHP have been unsupported for some time, and rarely need to be regenerated. - * This configuration is kept for historical purposes, and in case a regeneration is ever required. - * - * @see https://make.wordpress.org/core/handbook/references/php-compatibility-and-wordpress-versions/ - * - * @param array $php { - * @type string $base_name The name of the Docker image to base our image off of. - * @type array $apt An array of apt packages that need to be installed. - * @type array $extensions An array of PHP extensions that need to be enabled. - * @type array $pecl_extensions An array of PECL-sourced PHP extensions that will be installed, but not enabled. - * } - * - * @param int $phpunit The major version branch of PHPUnit to install on this image. - * - * @param array|false $cli { - * @type string $mysql_client The name of the MySQL client Ubuntu package on this image. - * @type string $download_url The download URL for the version of WP-CLI to install on this image. - * } - */ -$legacy_php_versions = array( - '5.2' => array( - 'php' => array( - 'base_name' => 'devilbox/php-fpm-5.2:latest', - 'apt' => array( 'sudo', 'rsync' ), - 'extensions' => array(), - 'pecl_extensions' => array( 'zendopcache-7.0.5', 'xdebug-2.2.7' ), - 'composer' => false, - ), - 'phpunit' => 3, - 'cli' => false, - ), - '5.3' => array( - 'php' => array( - 'base_name' => 'devilbox/php-fpm-5.3:0.21', - 'apt' => array( 'libjpeg-dev', 'libpng-dev', 'libzip-dev', 'libmemcached-dev', 'unzip', 'libmagickwand-dev', 'ghostscript', 'libicu-dev', 'libonig-dev', 'locales', 'sudo', 'rsync', 'libxslt-dev' ), - 'extensions' => array( 'gd', 'mysql', 'mysqli', 'zip', 'exif', 'intl', 'mbstring', 'xml', 'xsl' ), - 'pecl_extensions' => array( 'zendopcache-7.0.5', 'xdebug-2.2.7' ), - 'composer' => true, - ), - 'phpunit' => 4, - 'cli' => array( - 'mysql_client' => 'mysql-client', - 'download_url' => 'https://github.com/wp-cli/wp-cli/releases/download/v1.5.1/wp-cli-1.5.1.phar', - ), - ), - '5.4' => array( - 'php' => array( - 'base_name' => 'php:5.4-fpm', - 'apt' => array( 'libjpeg-dev', 'libpng-dev', 'libzip-dev', 'libmemcached-dev', 'unzip', 'libmagickwand-dev', 'ghostscript', 'libicu-dev', 'libonig-dev', 'locales', 'sudo', 'rsync', 'libxslt-dev' ), - 'extensions' => array( 'gd', 'mysql', 'mysqli', 'zip', 'exif', 'intl', 'mbstring', 'xml', 'xsl' ), - 'pecl_extensions' => array( 'zendopcache-7.0.5', 'xdebug-2.4.1', 'memcached-2.2.0', 'imagick-3.4.4' ), - 'composer' => true, - ), - 'phpunit' => 4, - 'cli' => array( - 'mysql_client' => 'mysql-client', - 'download_url' => 'https://github.com/wp-cli/wp-cli/releases/download/v2.4.0/wp-cli-2.4.0.phar', - ), - ), - '5.5' => array( - 'php' => array( - 'base_name' => 'php:5.5-fpm', - 'apt' => array( 'libjpeg-dev', 'libpng-dev', 'libzip-dev', 'libmemcached-dev', 'unzip', 'libmagickwand-dev', 'ghostscript', 'libicu-dev', 'libonig-dev', 'locales', 'sudo', 'rsync', 'libxslt-dev' ), - 'extensions' => array( 'gd', 'mysql', 'mysqli', 'zip', 'exif', 'intl', 'mbstring', 'xml', 'xsl' ), - 'pecl_extensions' => array( 'xdebug-2.5.5', 'memcached-2.2.0', 'imagick-3.4.4' ), - 'composer' => true, - ), - 'phpunit' => 4, - 'cli' => array( - 'mysql_client' => 'mysql-client', - 'download_url' => 'https://github.com/wp-cli/wp-cli/releases/download/v2.4.0/wp-cli-2.4.0.phar', - ), - ), - '5.6.20' => array( - 'php' => array( - 'base_name' => 'php:5.6.20-fpm', - 'apt' => array( 'libjpeg-dev', 'libpng-dev', 'libwebp-dev', 'libzip-dev', 'libmemcached-dev', 'unzip', 'libmagickwand-dev', 'ghostscript', 'libicu-dev', 'libonig-dev', 'locales', 'sudo', 'rsync', 'libxslt-dev' ), - 'extensions' => array( 'gd', 'mysql', 'mysqli', 'zip', 'exif', 'intl', 'mbstring', 'xml', 'xsl' ), - 'pecl_extensions' => array( 'xdebug-2.5.5', 'memcached-2.2.0', 'imagick-3.4.4' ), - 'composer' => true, - ), - 'phpunit' => 5, - 'cli' => array( - 'mysql_client' => 'mysql-client', - 'download_url' => 'https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar', - ), - ), - '5.6' => array( - 'php' => array( - 'base_name' => 'php:5.6-fpm', - 'apt' => array( 'libjpeg-dev', 'libpng-dev', 'libwebp-dev', 'libzip-dev', 'libmemcached-dev', 'unzip', 'libmagickwand-dev', 'ghostscript', 'libonig-dev', 'locales', 'sudo', 'rsync', 'libxslt-dev' ), - 'extensions' => array( 'gd', 'mysql', 'mysqli', 'zip', 'exif', 'intl', 'mbstring', 'xml', 'xsl' ), - 'pecl_extensions' => array( 'xdebug-2.5.5', 'memcached-2.2.0', 'imagick-3.4.4' ), - 'composer' => true, - ), - 'phpunit' => 5, - 'cli' => array( - 'mysql_client' => 'virtual-mysql-client', - 'download_url' => 'https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar', - ), - ), - '7.0' => array( - 'php' => array( - 'base_name' => 'php:7.0-fpm', - 'apt' => array( 'libjpeg-dev', 'libpng-dev', 'libwebp-dev', 'libzip-dev', 'libmemcached-dev', 'unzip', 'libmagickwand-dev', 'ghostscript', 'libonig-dev', 'locales', 'sudo', 'rsync', 'libxslt-dev' ), - 'extensions' => array( 'gd', 'opcache', 'mysqli', 'zip', 'exif', 'intl', 'mbstring', 'xml', 'xsl' ), - 'pecl_extensions' => array( 'xdebug-2.7.2', 'memcached-3.1.5', 'imagick' ), - 'composer' => true, - ), - 'phpunit' => 6, - 'cli' => array( - 'mysql_client' => 'virtual-mysql-client', - 'download_url' => 'https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar', - ), - ), - '7.1' => array( - 'php' => array( - 'base_name' => 'php:7.1-fpm', - 'apt' => array( 'libjpeg-dev', 'libpng-dev', 'libwebp-dev', 'libzip-dev', 'libmemcached-dev', 'unzip', 'libmagickwand-dev', 'ghostscript', 'libonig-dev', 'locales', 'sudo', 'rsync', 'libxslt-dev' ), - 'extensions' => array( 'gd', 'opcache', 'mysqli', 'zip', 'exif', 'intl', 'mbstring', 'xml', 'xsl' ), - 'pecl_extensions' => array( 'xdebug-2.9.8', 'memcached-3.1.5', 'imagick' ), - 'composer' => true, - ), - 'phpunit' => 7, - 'cli' => array( - 'mysql_client' => 'virtual-mysql-client', - 'download_url' => 'https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar', - ), - ), -); - -/** - * An array of all PHPUnit and PHP version combinations that we need to generate images for. - * - * Different WordPress versions support different versions of PHP and different versions of PHPUnit. - * This can create a need to run multiple versions of PHPUnit on each version of PHP. - * - * These versions of PHP are EOL, so regenerating these containers is not necessary. - * - * @see https://make.wordpress.org/core/handbook/references/phpunit-compatibility-and-wordpress-versions/ - * - * @param array $legacy_phpunit_versions A list of PHP versions for each PHPUnit version. - */ -$legacy_phpunit_versions = array( - '9' => array( - '8.0', - '7.4', - '7.3', - ), - '8' => array( - '8.0', - '7.4', - '7.3', - '7.2', - ), - '7' => array( - '7.4', - '7.3', - '7.2', - '7.1', - '7.0', - ), - '6' => array( - '7.3', - '7.2', - '7.1', - '7.0', - ), - '5' => array( - '7.0', - '5.6.20', - '5.6', - ), - '4' => array( - '5.6.20', - '5.6', - ) -); - // A warning that will be added to each Dockerfile, to ensure folks don't edit them directly. $generated_warning = << Date: Fri, 15 May 2026 21:34:18 -0400 Subject: [PATCH 5/5] Remove `entrypoint-phpunit.sh` file. --- entrypoint/entrypoint-phpunit.sh | 9 --------- 1 file changed, 9 deletions(-) delete mode 100644 entrypoint/entrypoint-phpunit.sh diff --git a/entrypoint/entrypoint-phpunit.sh b/entrypoint/entrypoint-phpunit.sh deleted file mode 100644 index ef08bb84..00000000 --- a/entrypoint/entrypoint-phpunit.sh +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/bash -set -e - -source /common.sh - -chown -R wp_php:wp_php /var/www/${LOCAL_DIR-src}/wp-content/uploads - -# Execute CMD -sudo -E -u wp_php "$@"