Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: add phpredis zstd compression support #104

Draft
wants to merge 4 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions php80al2/php.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@ RUN set -xe; \

WORKDIR ${PHP_BUILD_DIR}/

RUN LD_LIBRARY_PATH= yum install -y readline-devel gettext-devel libicu-devel sqlite-devel libxslt-devel ImageMagick-devel
RUN LD_LIBRARY_PATH= yum install -y readline-devel gettext-devel libicu-devel sqlite-devel libxslt-devel ImageMagick-devel libzstd libzstd-devel

RUN cp -a /usr/lib64/libgpg-error.so* ${INSTALL_DIR}/lib64/
RUN cp -a /usr/lib64/libtinfo.so* ${INSTALL_DIR}/lib64/
Expand All @@ -383,6 +383,7 @@ RUN cp -a /usr/lib64/libgettextpo.so* ${INSTALL_DIR}/lib64/
RUN cp -a /usr/lib64/preloadable_libintl.so* ${INSTALL_DIR}/lib64/
RUN cp -a /usr/lib64/lib*xslt*.so* ${INSTALL_DIR}/lib64/
RUN cp -a /usr/lib64/libsqlite3*.so* ${INSTALL_DIR}/lib64/
RUN cp -a /usr/lib64/libzstd.so* ${INSTALL_DIR}/lib64/

RUN set -xe \
&& ./buildconf --force \
Expand Down Expand Up @@ -437,7 +438,7 @@ RUN set -xe; \
ARG redis
ENV VERSION_REDIS=${redis}

RUN pecl install -f redis-${VERSION_REDIS}
RUN pecl install -f --configureoptions 'enable-redis-zstd="yes"' redis-${VERSION_REDIS}

# Strip All Unneeded Symbols

Expand Down
5 changes: 3 additions & 2 deletions php81al2/php.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,7 @@ RUN set -xe; \

WORKDIR ${PHP_BUILD_DIR}/

RUN LD_LIBRARY_PATH= yum install -y readline-devel gettext-devel libicu-devel sqlite-devel libxslt-devel ImageMagick-devel
RUN LD_LIBRARY_PATH= yum install -y readline-devel gettext-devel libicu-devel sqlite-devel libxslt-devel ImageMagick-devel libzstd libzstd-devel

RUN cp -a /usr/lib64/libgpg-error.so* ${INSTALL_DIR}/lib64/
RUN cp -a /usr/lib64/libtinfo.so* ${INSTALL_DIR}/lib64/
Expand All @@ -386,6 +386,7 @@ RUN cp -a /usr/lib64/libgettextpo.so* ${INSTALL_DIR}/lib64/
RUN cp -a /usr/lib64/preloadable_libintl.so* ${INSTALL_DIR}/lib64/
RUN cp -a /usr/lib64/lib*xslt*.so* ${INSTALL_DIR}/lib64/
RUN cp -a /usr/lib64/libsqlite3*.so* ${INSTALL_DIR}/lib64/
RUN cp -a /usr/lib64/libzstd.so* ${INSTALL_DIR}/lib64/

RUN set -xe \
&& ./buildconf --force \
Expand Down Expand Up @@ -440,7 +441,7 @@ RUN set -xe; \
ARG redis
ENV VERSION_REDIS=${redis}

RUN pecl install -f redis-${VERSION_REDIS}
RUN pecl install -f --configureoptions 'enable-redis-zstd="yes"' redis-${VERSION_REDIS}

# Strip All Unneeded Symbols

Expand Down
5 changes: 3 additions & 2 deletions php82al2-arm/php.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,7 @@ RUN set -xe; \

WORKDIR ${PHP_BUILD_DIR}/

RUN LD_LIBRARY_PATH= yum install -y readline-devel gettext-devel libicu-devel sqlite-devel libxslt-devel ImageMagick-devel
RUN LD_LIBRARY_PATH= yum install -y readline-devel gettext-devel libicu-devel sqlite-devel libxslt-devel ImageMagick-devel libzstd libzstd-devel

RUN cp -a /usr/lib64/libgpg-error.so* ${INSTALL_DIR}/lib64/
RUN cp -a /usr/lib64/libtinfo.so* ${INSTALL_DIR}/lib64/
Expand All @@ -385,6 +385,7 @@ RUN cp -a /usr/lib64/libgettextpo.so* ${INSTALL_DIR}/lib64/
RUN cp -a /usr/lib64/preloadable_libintl.so* ${INSTALL_DIR}/lib64/
RUN cp -a /usr/lib64/lib*xslt*.so* ${INSTALL_DIR}/lib64/
RUN cp -a /usr/lib64/libsqlite3*.so* ${INSTALL_DIR}/lib64/
RUN cp -a /usr/lib64/libzstd.so* ${INSTALL_DIR}/lib64/

RUN set -xe \
&& ./buildconf --force \
Expand Down Expand Up @@ -438,7 +439,7 @@ RUN set -xe; \
ARG redis
ENV VERSION_REDIS=${redis}

RUN pecl install -f redis-${VERSION_REDIS}
RUN pecl install -f --configureoptions 'enable-redis-zstd="yes"' redis-${VERSION_REDIS}

# Strip All Unneeded Symbols

Expand Down
5 changes: 3 additions & 2 deletions php82al2/php.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,7 @@ RUN set -xe; \

WORKDIR ${PHP_BUILD_DIR}/

RUN LD_LIBRARY_PATH= yum install -y readline-devel gettext-devel libicu-devel sqlite-devel libxslt-devel ImageMagick-devel
RUN LD_LIBRARY_PATH= yum install -y readline-devel gettext-devel libicu-devel sqlite-devel libxslt-devel ImageMagick-devel libzstd libzstd-devel

RUN cp -a /usr/lib64/libgpg-error.so* ${INSTALL_DIR}/lib64/
RUN cp -a /usr/lib64/libtinfo.so* ${INSTALL_DIR}/lib64/
Expand All @@ -386,6 +386,7 @@ RUN cp -a /usr/lib64/libgettextpo.so* ${INSTALL_DIR}/lib64/
RUN cp -a /usr/lib64/preloadable_libintl.so* ${INSTALL_DIR}/lib64/
RUN cp -a /usr/lib64/lib*xslt*.so* ${INSTALL_DIR}/lib64/
RUN cp -a /usr/lib64/libsqlite3*.so* ${INSTALL_DIR}/lib64/
RUN cp -a /usr/lib64/libzstd.so* ${INSTALL_DIR}/lib64/

RUN set -xe \
&& ./buildconf --force \
Expand Down Expand Up @@ -440,7 +441,7 @@ RUN set -xe; \
ARG redis
ENV VERSION_REDIS=${redis}

RUN pecl install -f redis-${VERSION_REDIS}
RUN pecl install -f --configureoptions 'enable-redis-zstd="yes"' redis-${VERSION_REDIS}

# Strip All Unneeded Symbols

Expand Down
5 changes: 3 additions & 2 deletions php83al2-arm/php.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,7 @@ RUN set -xe; \

WORKDIR ${PHP_BUILD_DIR}/

RUN LD_LIBRARY_PATH= yum install -y readline-devel gettext-devel libicu-devel sqlite-devel libxslt-devel ImageMagick-devel
RUN LD_LIBRARY_PATH= yum install -y readline-devel gettext-devel libicu-devel sqlite-devel libxslt-devel ImageMagick-devel libzstd libzstd-devel

RUN cp -a /usr/lib64/libgpg-error.so* ${INSTALL_DIR}/lib64/
RUN cp -a /usr/lib64/libtinfo.so* ${INSTALL_DIR}/lib64/
Expand All @@ -385,6 +385,7 @@ RUN cp -a /usr/lib64/libgettextpo.so* ${INSTALL_DIR}/lib64/
RUN cp -a /usr/lib64/preloadable_libintl.so* ${INSTALL_DIR}/lib64/
RUN cp -a /usr/lib64/lib*xslt*.so* ${INSTALL_DIR}/lib64/
RUN cp -a /usr/lib64/libsqlite3*.so* ${INSTALL_DIR}/lib64/
RUN cp -a /usr/lib64/libzstd.so* ${INSTALL_DIR}/lib64/

RUN set -xe \
&& ./buildconf --force \
Expand Down Expand Up @@ -438,7 +439,7 @@ RUN set -xe; \
ARG redis
ENV VERSION_REDIS=${redis}

RUN pecl install -f redis-${VERSION_REDIS}
RUN pecl install -f --configureoptions 'enable-redis-zstd="yes"' redis-${VERSION_REDIS}

# Strip All Unneeded Symbols

Expand Down
5 changes: 3 additions & 2 deletions php83al2/php.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,7 @@ RUN set -xe; \

WORKDIR ${PHP_BUILD_DIR}/

RUN LD_LIBRARY_PATH= yum install -y readline-devel gettext-devel libicu-devel sqlite-devel libxslt-devel ImageMagick-devel
RUN LD_LIBRARY_PATH= yum install -y readline-devel gettext-devel libicu-devel sqlite-devel libxslt-devel ImageMagick-devel libzstd libzstd-devel

RUN cp -a /usr/lib64/libgpg-error.so* ${INSTALL_DIR}/lib64/
RUN cp -a /usr/lib64/libtinfo.so* ${INSTALL_DIR}/lib64/
Expand All @@ -386,6 +386,7 @@ RUN cp -a /usr/lib64/libgettextpo.so* ${INSTALL_DIR}/lib64/
RUN cp -a /usr/lib64/preloadable_libintl.so* ${INSTALL_DIR}/lib64/
RUN cp -a /usr/lib64/lib*xslt*.so* ${INSTALL_DIR}/lib64/
RUN cp -a /usr/lib64/libsqlite3*.so* ${INSTALL_DIR}/lib64/
RUN cp -a /usr/lib64/libzstd.so* ${INSTALL_DIR}/lib64/

RUN set -xe \
&& ./buildconf --force \
Expand Down Expand Up @@ -440,7 +441,7 @@ RUN set -xe; \
ARG redis
ENV VERSION_REDIS=${redis}

RUN pecl install -f redis-${VERSION_REDIS}
RUN pecl install -f --configureoptions 'enable-redis-zstd="yes"' redis-${VERSION_REDIS}

# Strip All Unneeded Symbols

Expand Down
12 changes: 6 additions & 6 deletions sizes.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#### 19 May 2023
- 27161116 php-74al2.zip
- 27221255 php-80al2.zip
- 30018701 php-81al2.zip
- 30282772 php-82al2.zip
- 30668817 php-82al2-arm.zip
- 30189504 php-83al2.zip
- 30550049 php-83al2-arm.zip
- 28107682 php-80al2.zip
- 30970663 php-81al2.zip
- 31233489 php-82al2.zip
- 31599065 php-82al2-arm.zip
- 31141956 php-83al2.zip
- 31480051 php-83al2-arm.zip