From d2364c8df10fe79079642e52a8b81905773062ef Mon Sep 17 00:00:00 2001 From: Jose Quintana Date: Tue, 28 Nov 2023 01:10:36 +0100 Subject: [PATCH] feat: zstd extension for php 8+ --- 8.0-fpm/Dockerfile | 6 ++++++ 8.1-fpm/Dockerfile | 6 ++++++ 8.2-fpm/Dockerfile | 6 ++++++ README.md | 1 + 4 files changed, 19 insertions(+) diff --git a/8.0-fpm/Dockerfile b/8.0-fpm/Dockerfile index 8417d3e..4f1b388 100644 --- a/8.0-fpm/Dockerfile +++ b/8.0-fpm/Dockerfile @@ -92,6 +92,7 @@ RUN set -eux \ vips-dev \ yaml-dev \ zlib-dev \ + zstd-dev \ \ # Workaround for rabbitmq linking issue && ln -s /usr/lib /usr/local/lib64 \ @@ -319,6 +320,11 @@ RUN set -eux \ && docker-php-ext-install -j$(nproc) zip \ && true \ \ +# Install zstd + && pecl install zstd \ + && docker-php-ext-enable zstd \ + && true \ +\ # Clean up build packages && docker-php-source delete \ && apk del .build-deps \ diff --git a/8.1-fpm/Dockerfile b/8.1-fpm/Dockerfile index 404200a..9895b65 100644 --- a/8.1-fpm/Dockerfile +++ b/8.1-fpm/Dockerfile @@ -88,6 +88,7 @@ RUN set -eux \ vips-dev \ yaml-dev \ zlib-dev \ + zstd-dev \ \ # Workaround for rabbitmq linking issue && ln -s /usr/lib /usr/local/lib64 \ @@ -305,6 +306,11 @@ RUN set -eux \ && docker-php-ext-install -j$(nproc) zip \ && true \ \ +# Install zstd + && pecl install zstd \ + && docker-php-ext-enable zstd \ + && true \ +\ # Clean up build packages && docker-php-source delete \ && apk del .build-deps \ diff --git a/8.2-fpm/Dockerfile b/8.2-fpm/Dockerfile index c92a4ad..af1ffc3 100644 --- a/8.2-fpm/Dockerfile +++ b/8.2-fpm/Dockerfile @@ -88,6 +88,7 @@ RUN set -eux \ vips-dev \ yaml-dev \ zlib-dev \ + zstd-dev \ \ # Workaround for rabbitmq linking issue && ln -s /usr/lib /usr/local/lib64 \ @@ -299,6 +300,11 @@ RUN set -eux \ && docker-php-ext-install -j$(nproc) zip \ && true \ \ +# Install zstd + && pecl install zstd \ + && docker-php-ext-enable zstd \ + && true \ +\ # Clean up build packages && docker-php-source delete \ && apk del .build-deps \ diff --git a/README.md b/README.md index 0572681..eaf02e5 100644 --- a/README.md +++ b/README.md @@ -78,6 +78,7 @@ | xsl | ✓ | ✓ | ✓ | | yaml | ✓ | ✓ | ✓ | | zip | ✓ | ✓ | ✓ | +| zstd | ✓ | ✓ | ✓ | |   |   |   |   | | **Others** | | | | | composer | v2.5 | v2.6 | v2.6 |