From b8b5718bb87bf7340f188f5563071122107de552 Mon Sep 17 00:00:00 2001 From: Marko Korhonen Date: Fri, 22 Nov 2024 11:50:36 +0200 Subject: [PATCH] Drop PHP 8.1 --- README.md | 4 ---- bin/helper | 8 ++------ php/Dockerfile | 34 -------------------------------- php/build.mk | 4 +--- php/docker-bake.hcl | 40 ++++---------------------------------- tests/wp-test/compose.yaml | 2 +- 6 files changed, 8 insertions(+), 84 deletions(-) diff --git a/README.md b/README.md index 6023aae..3d8cc37 100644 --- a/README.md +++ b/README.md @@ -29,7 +29,6 @@ ENV variables: Tags: -- `druidfi/php:8.1` and `druidfi/php:8.1.x` - `druidfi/php:8.2` and `druidfi/php:8.2.x` - `druidfi/php:8`, `druidfi/php:8.3`, `druidfi/php:8.3.x` and `druidfi/php:latest` - `druidfi/php:8.4` and `druidfi/php:8.4.x` @@ -44,7 +43,6 @@ Added features: Tags: -- `druidfi/php-fpm:8.1` and `druidfi/php-fpm:8.1.x` - `druidfi/php-fpm:8.2` and `druidfi/php-fpm:8.2.x` - `druidfi/php-fpm:8`, `druidfi/php-fpm:8.3`, `druidfi/php-fpm:8.3.x` and `druidfi/php-fpm:latest` - `druidfi/php-fpm:8.4` and `druidfi/php-fpm:8.4.x` @@ -58,7 +56,6 @@ Added features: Tags: -- `druidfi/drupal:php-8.1` and `druidfi/drupal:php-8.1.x` - `druidfi/drupal:php-8.2` and `druidfi/drupal:php-8.2.x` - `druidfi/drupal:php-8`, `druidfi/drupal:php-8.3`, `druidfi/drupal:php-8.3.x` and `druidfi/drupal:latest` - `druidfi/drupal:php-8.4` and `druidfi/drupal:php-8.4.x` @@ -82,7 +79,6 @@ ENV variables: ### druidfi/drupal-web variant -- `druidfi/drupal-web:php-8.1`, `druidfi/drupal-web:php-8.1.x` and `druidfi/drupal-web:v8.1.x` - `druidfi/drupal-web:php-8.2`, `druidfi/drupal-web:php-8.2.x` and `druidfi/drupal-web:v8.2.x` - `druidfi/drupal-web:php-8`, `druidfi/drupal-web:php-8.3`, `druidfi/drupal-web:php-8.3.x`, `druidfi/drupal-web:v8.3.x` and `druidfi/drupal-web:latest` - `druidfi/drupal-web:php-8.4`, `druidfi/drupal-web:php-8.4.x` and `druidfi/drupal-web:v8.4.x` diff --git a/bin/helper b/bin/helper index 1268de5..7c376ed 100755 --- a/bin/helper +++ b/bin/helper @@ -3,7 +3,6 @@ COMMAND=$1 LATEST_ALPINE_MINOR=3.20 LATEST_ALPINE_VERSION=3.20.3 -FALLBACK_VERSION_81="8.1.31" FALLBACK_VERSION_82="8.2.26" FALLBACK_VERSION_83="8.3.14" FALLBACK_VERSION_84="8.4.1" @@ -33,10 +32,7 @@ then BRANCH=${2:-8.2} #ALPINE=${LATEST_ALPINE_VERSION} - if [[ $BRANCH == 8.1 ]] - then - URL="https://git.alpinelinux.org/aports/plain/testing/php81/APKBUILD" - elif [[ $BRANCH == 8.2 ]] + if [[ $BRANCH == 8.2 ]] then URL="https://git.alpinelinux.org/aports/plain/community/php82/APKBUILD?h=3.20-stable" elif [[ $BRANCH == 8.3 ]] @@ -56,9 +52,9 @@ then if [[ "$CODE" =~ ^2 ]]; then echo "$RESPONSE" | cat | grep -m 1 -i "pkgver=" | cut -d "=" -f2 && exit 0 else - if [[ "$BRANCH" == "8.1" ]]; then echo "$CODE $FALLBACK_VERSION_81"; fi if [[ "$BRANCH" == "8.2" ]]; then echo "$CODE $FALLBACK_VERSION_82"; fi if [[ "$BRANCH" == "8.3" ]]; then echo "$CODE $FALLBACK_VERSION_83"; fi + if [[ "$BRANCH" == "8.4" ]]; then echo "$CODE $FALLBACK_VERSION_84"; fi exit 0 fi diff --git a/php/Dockerfile b/php/Dockerfile index 7439117..8d5ea5e 100644 --- a/php/Dockerfile +++ b/php/Dockerfile @@ -62,24 +62,6 @@ ENTRYPOINT ["/sbin/tini", "--", "entrypoint"] CMD ["tail", "-f", "/dev/null"] -# -# PHP 8.1 -# -FROM base AS build-php-81 - -ENV PHP_MAJOR_VERSION=8 -ENV PHP_SHORT_VERSION=81 -ENV PHP_INSTALL_VERSION=81 - -RUN sudo -s <