diff --git a/.github/workflows/php-fpm.yml b/.github/workflows/php-fpm.yml index 42391e93..ad7e4766 100644 --- a/.github/workflows/php-fpm.yml +++ b/.github/workflows/php-fpm.yml @@ -35,10 +35,6 @@ jobs: fail-fast: false matrix: php: - - name: "7.4" - suffix: "74" - - name: "8.0" - suffix: "80" - name: "8.1" suffix: "81" - name: "8.2" diff --git a/php-fpm/Dockerfile.74 b/php-fpm/Dockerfile.74 deleted file mode 100644 index aab27b79..00000000 --- a/php-fpm/Dockerfile.74 +++ /dev/null @@ -1,60 +0,0 @@ -FROM ubuntu:22.04 AS build -RUN \ - export DEBIAN_FRONTEND=noninteractive && \ - apt-get -q update && \ - apt-get -y install eatmydata && \ - eatmydata apt-get install -y software-properties-common gnupg --no-install-recommends && \ - eatmydata add-apt-repository -y ppa:ondrej/php && \ - eatmydata apt-get install -y php7.4-dev php7.4-xml && \ - eatmydata apt-get install -y php-pear --no-install-recommends && \ - pecl install timezonedb && \ - rm -rf /var/lib/apt/lists/* /var/cache/apt/archives/* - -FROM ubuntu:22.04 - -# Extra PHP extensions: msgpack (because of memcache) -# We lack: newrelic -RUN \ - export DEBIAN_FRONTEND=noninteractive && \ - apt-get -q update && \ - apt-get -y install eatmydata && eatmydata apt-get -y upgrade && \ - eatmydata apt-get install -y software-properties-common gnupg --no-install-recommends && \ - eatmydata add-apt-repository -y ppa:ondrej/php && \ - eatmydata apt-get install -y curl less git jq mysql-client openssl wget cron vim nano && \ - eatmydata apt-get install -y ghostscript msmtp --no-install-recommends && \ - eatmydata apt-get install -y \ - php7.4-cli php7.4-fpm \ - php7.4-apcu php7.4-bcmath php7.4-curl php7.4-gd php7.4-gmagick php7.4-gmp php7.4-gnupg php7.4-intl php7.4-igbinary php7.4-mbstring php7.4-mcrypt \ - php7.4-memcache php7.4-memcached php7.4-mysql php7.4-soap php7.4-sqlite3 php7.4-ssh2 php7.4-xdebug php7.4-xml php7.4-zip && \ - eatmydata apt-get install -y php-pear --no-install-recommends && \ - phpdismod ffi gettext readline sysvmsg xsl xdebug && \ - eatmydata apt-get remove --purge -y software-properties-common && \ - rm -rf /var/lib/apt/lists/* /var/cache/apt/archives/* && \ - eatmydata apt-get autoremove --purge -y && \ - ln -s /usr/sbin/php-fpm7.4 /usr/sbin/php-fpm && \ - chmod 02755 /usr/bin/crontab - -RUN \ - usermod -d /home/www-data -s /bin/bash www-data && \ - install -d -D -m 0750 -o www-data -g www-data /home/www-data && \ - install -d -D -m 0777 -o www-data -g www-data /var/www/html && \ - install -d -D -m 0755 -o www-data -g www-data /run/php - -RUN \ - wget -O /usr/local/bin/phpunit https://phar.phpunit.de/phpunit-9.phar && chmod 0755 /usr/local/bin/phpunit && \ - wget -O /usr/local/bin/wp https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar && chmod 0755 /usr/local/bin/wp && \ - wget -q https://getcomposer.org/installer -O - | php -- --install-dir=/usr/bin/ --filename=composer - -ENV WP_CLI_CONFIG_PATH /config/wp-cli.yaml - -COPY --from=build /usr/lib/php/20190902/timezonedb.so /usr/lib/php/20190902/timezonedb.so -COPY rootfs/ / -COPY rootfs-php/ /etc/php/7.4/ - -RUN phpenmod timezonedb - -WORKDIR /var/www/html -STOPSIGNAL SIGQUIT -EXPOSE 9000 -ENTRYPOINT ["docker-php-entrypoint"] -CMD ["run.sh"] diff --git a/php-fpm/Dockerfile.80 b/php-fpm/Dockerfile.80 deleted file mode 100644 index 69fe812f..00000000 --- a/php-fpm/Dockerfile.80 +++ /dev/null @@ -1,60 +0,0 @@ -FROM ubuntu:22.04 AS build -RUN \ - export DEBIAN_FRONTEND=noninteractive && \ - apt-get -q update && \ - apt-get -y install eatmydata && \ - eatmydata apt-get install -y software-properties-common gnupg --no-install-recommends && \ - eatmydata add-apt-repository -y ppa:ondrej/php && \ - eatmydata apt-get install -y php8.0-dev php8.0-xml && \ - eatmydata apt-get install -y php-pear --no-install-recommends && \ - pecl install timezonedb && \ - rm -rf /var/lib/apt/lists/* /var/cache/apt/archives/* - -FROM ubuntu:22.04 - -# Extra PHP extensions: msgpack (because of memcache) -# We lack: newrelic -RUN \ - export DEBIAN_FRONTEND=noninteractive && \ - apt-get -q update && \ - apt-get -y install eatmydata && eatmydata apt-get -y upgrade && \ - eatmydata apt-get install -y software-properties-common gnupg --no-install-recommends && \ - eatmydata add-apt-repository -y ppa:ondrej/php && \ - eatmydata apt-get install -y curl less git jq mysql-client openssl wget cron vim nano && \ - eatmydata apt-get install -y ghostscript msmtp --no-install-recommends && \ - eatmydata apt-get install -y \ - php8.0-cli php8.0-fpm \ - php8.0-apcu php8.0-bcmath php8.0-curl php8.0-gd php8.0-gmagick php8.0-gmp php8.0-gnupg php8.0-intl php8.0-igbinary php8.0-mbstring php8.0-mcrypt \ - php8.0-memcache php8.0-memcached php8.0-mysql php8.0-soap php8.0-sqlite3 php8.0-ssh2 php8.0-xdebug php8.0-xml php8.0-zip && \ - eatmydata apt-get install -y php-pear --no-install-recommends && \ - phpdismod ffi gettext readline sysvmsg xsl xdebug && \ - eatmydata apt-get remove --purge -y software-properties-common && \ - rm -rf /var/lib/apt/lists/* /var/cache/apt/archives/* && \ - eatmydata apt-get autoremove --purge -y && \ - ln -s /usr/sbin/php-fpm8.0 /usr/sbin/php-fpm && \ - chmod 02755 /usr/bin/crontab - -RUN \ - usermod -d /home/www-data -s /bin/bash www-data && \ - install -d -D -m 0750 -o www-data -g www-data /home/www-data && \ - install -d -D -m 0777 -o www-data -g www-data /var/www/html && \ - install -d -D -m 0755 -o www-data -g www-data /run/php - -RUN \ - wget -O /usr/local/bin/phpunit https://phar.phpunit.de/phpunit-9.phar && chmod 0755 /usr/local/bin/phpunit && \ - wget -O /usr/local/bin/wp https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar && chmod 0755 /usr/local/bin/wp && \ - wget -q https://getcomposer.org/installer -O - | php -- --install-dir=/usr/bin/ --filename=composer - -ENV WP_CLI_CONFIG_PATH /config/wp-cli.yaml - -COPY --from=build /usr/lib/php/20200930/timezonedb.so /usr/lib/php/20200930/timezonedb.so -COPY rootfs/ / -COPY rootfs-php/ /etc/php/8.0/ - -RUN phpenmod timezonedb - -WORKDIR /var/www/html -STOPSIGNAL SIGQUIT -EXPOSE 9000 -ENTRYPOINT ["docker-php-entrypoint"] -CMD ["run.sh"]