mirror of
https://github.com/devilbox/docker-php-fpm.git
synced 2025-12-10 11:01:14 +00:00
Compile redis with msgpack and igbinary
This commit is contained in:
2
.github/workflows/php-nightly.yml
vendored
2
.github/workflows/php-nightly.yml
vendored
@@ -82,7 +82,7 @@ jobs:
|
|||||||
- '8.1'
|
- '8.1'
|
||||||
refs:
|
refs:
|
||||||
- 'master'
|
- 'master'
|
||||||
- '0.118'
|
- '0.121'
|
||||||
steps:
|
steps:
|
||||||
|
|
||||||
# ------------------------------------------------------------
|
# ------------------------------------------------------------
|
||||||
|
|||||||
@@ -4,6 +4,15 @@
|
|||||||
## Unreleased
|
## Unreleased
|
||||||
|
|
||||||
|
|
||||||
|
## Release 0.121
|
||||||
|
|
||||||
|
#### Fixed
|
||||||
|
- Fixed `msgpack` install for PHP 7.0 - 7.4
|
||||||
|
|
||||||
|
#### Changed
|
||||||
|
- Compile `redis` extension with `msgpack` and `igbinary`
|
||||||
|
|
||||||
|
|
||||||
## Release 0.120
|
## Release 0.120
|
||||||
|
|
||||||
#### Fixed
|
#### Fixed
|
||||||
|
|||||||
@@ -314,10 +314,10 @@ RUN set -eux \
|
|||||||
|
|
||||||
# -------------------- Installing PHP Extension: memcache --------------------
|
# -------------------- Installing PHP Extension: memcache --------------------
|
||||||
RUN set -eux \
|
RUN set -eux \
|
||||||
# Installation: Generic
|
# Installation: Version specific
|
||||||
# Type: PECL extension
|
# Type: PECL extension
|
||||||
# Default: Pecl command
|
# Default: Pecl command
|
||||||
&& pecl install memcache \
|
&& pecl install memcache-4.0.5.2 \
|
||||||
# Enabling
|
# Enabling
|
||||||
&& docker-php-ext-enable memcache \
|
&& docker-php-ext-enable memcache \
|
||||||
&& true
|
&& true
|
||||||
@@ -537,9 +537,26 @@ RUN set -eux \
|
|||||||
# -------------------- Installing PHP Extension: redis --------------------
|
# -------------------- Installing PHP Extension: redis --------------------
|
||||||
RUN set -eux \
|
RUN set -eux \
|
||||||
# Installation: Generic
|
# Installation: Generic
|
||||||
# Type: PECL extension
|
# Type: GIT extension
|
||||||
# Default: Pecl command
|
&& git clone https://github.com/phpredis/phpredis /tmp/redis \
|
||||||
&& pecl install redis \
|
&& cd /tmp/redis \
|
||||||
|
# Custom: Branch
|
||||||
|
&& git checkout $(git for-each-ref --format='%(refname)' refs/tags | grep -E 'tags/[.0-9]+$' | sed 's|.*tags/||g' | sort -V | tail -1) \
|
||||||
|
# Custom: Install command
|
||||||
|
&& REDIS_ARGS=""; \
|
||||||
|
if [ -d "/usr/local/include/php/ext/igbinary" ]; then \
|
||||||
|
REDIS_ARGS="${REDIS_ARGS} --enable-redis-igbinary"; \
|
||||||
|
fi; \
|
||||||
|
if [ -d "/usr/local/include/php/ext/msgpack" ]; then \
|
||||||
|
REDIS_ARGS="${REDIS_ARGS} --enable-redis-msgpack"; \
|
||||||
|
fi; \
|
||||||
|
phpize \
|
||||||
|
&& ./configure --enable-redis ${REDIS_ARGS} \
|
||||||
|
&& make -j$(getconf _NPROCESSORS_ONLN) \
|
||||||
|
&& make install \
|
||||||
|
&& rm -rf /usr/local/include/php/ext/igbinary \
|
||||||
|
&& rm -rf /usr/local/include/php/ext/msgpack \
|
||||||
|
\
|
||||||
# Enabling
|
# Enabling
|
||||||
&& docker-php-ext-enable redis \
|
&& docker-php-ext-enable redis \
|
||||||
&& true
|
&& true
|
||||||
|
|||||||
@@ -314,10 +314,10 @@ RUN set -eux \
|
|||||||
|
|
||||||
# -------------------- Installing PHP Extension: memcache --------------------
|
# -------------------- Installing PHP Extension: memcache --------------------
|
||||||
RUN set -eux \
|
RUN set -eux \
|
||||||
# Installation: Generic
|
# Installation: Version specific
|
||||||
# Type: PECL extension
|
# Type: PECL extension
|
||||||
# Default: Pecl command
|
# Default: Pecl command
|
||||||
&& pecl install memcache \
|
&& pecl install memcache-4.0.5.2 \
|
||||||
# Enabling
|
# Enabling
|
||||||
&& docker-php-ext-enable memcache \
|
&& docker-php-ext-enable memcache \
|
||||||
&& true
|
&& true
|
||||||
@@ -537,9 +537,26 @@ RUN set -eux \
|
|||||||
# -------------------- Installing PHP Extension: redis --------------------
|
# -------------------- Installing PHP Extension: redis --------------------
|
||||||
RUN set -eux \
|
RUN set -eux \
|
||||||
# Installation: Generic
|
# Installation: Generic
|
||||||
# Type: PECL extension
|
# Type: GIT extension
|
||||||
# Default: Pecl command
|
&& git clone https://github.com/phpredis/phpredis /tmp/redis \
|
||||||
&& pecl install redis \
|
&& cd /tmp/redis \
|
||||||
|
# Custom: Branch
|
||||||
|
&& git checkout $(git for-each-ref --format='%(refname)' refs/tags | grep -E 'tags/[.0-9]+$' | sed 's|.*tags/||g' | sort -V | tail -1) \
|
||||||
|
# Custom: Install command
|
||||||
|
&& REDIS_ARGS=""; \
|
||||||
|
if [ -d "/usr/local/include/php/ext/igbinary" ]; then \
|
||||||
|
REDIS_ARGS="${REDIS_ARGS} --enable-redis-igbinary"; \
|
||||||
|
fi; \
|
||||||
|
if [ -d "/usr/local/include/php/ext/msgpack" ]; then \
|
||||||
|
REDIS_ARGS="${REDIS_ARGS} --enable-redis-msgpack"; \
|
||||||
|
fi; \
|
||||||
|
phpize \
|
||||||
|
&& ./configure --enable-redis ${REDIS_ARGS} \
|
||||||
|
&& make -j$(getconf _NPROCESSORS_ONLN) \
|
||||||
|
&& make install \
|
||||||
|
&& rm -rf /usr/local/include/php/ext/igbinary \
|
||||||
|
&& rm -rf /usr/local/include/php/ext/msgpack \
|
||||||
|
\
|
||||||
# Enabling
|
# Enabling
|
||||||
&& docker-php-ext-enable redis \
|
&& docker-php-ext-enable redis \
|
||||||
&& true
|
&& true
|
||||||
|
|||||||
@@ -317,10 +317,10 @@ RUN set -eux \
|
|||||||
|
|
||||||
# -------------------- Installing PHP Extension: memcache --------------------
|
# -------------------- Installing PHP Extension: memcache --------------------
|
||||||
RUN set -eux \
|
RUN set -eux \
|
||||||
# Installation: Generic
|
# Installation: Version specific
|
||||||
# Type: PECL extension
|
# Type: PECL extension
|
||||||
# Default: Pecl command
|
# Default: Pecl command
|
||||||
&& pecl install memcache \
|
&& pecl install memcache-4.0.5.2 \
|
||||||
# Enabling
|
# Enabling
|
||||||
&& docker-php-ext-enable memcache \
|
&& docker-php-ext-enable memcache \
|
||||||
&& true
|
&& true
|
||||||
@@ -541,9 +541,26 @@ RUN set -eux \
|
|||||||
# -------------------- Installing PHP Extension: redis --------------------
|
# -------------------- Installing PHP Extension: redis --------------------
|
||||||
RUN set -eux \
|
RUN set -eux \
|
||||||
# Installation: Generic
|
# Installation: Generic
|
||||||
# Type: PECL extension
|
# Type: GIT extension
|
||||||
# Default: Pecl command
|
&& git clone https://github.com/phpredis/phpredis /tmp/redis \
|
||||||
&& pecl install redis \
|
&& cd /tmp/redis \
|
||||||
|
# Custom: Branch
|
||||||
|
&& git checkout $(git for-each-ref --format='%(refname)' refs/tags | grep -E 'tags/[.0-9]+$' | sed 's|.*tags/||g' | sort -V | tail -1) \
|
||||||
|
# Custom: Install command
|
||||||
|
&& REDIS_ARGS=""; \
|
||||||
|
if [ -d "/usr/local/include/php/ext/igbinary" ]; then \
|
||||||
|
REDIS_ARGS="${REDIS_ARGS} --enable-redis-igbinary"; \
|
||||||
|
fi; \
|
||||||
|
if [ -d "/usr/local/include/php/ext/msgpack" ]; then \
|
||||||
|
REDIS_ARGS="${REDIS_ARGS} --enable-redis-msgpack"; \
|
||||||
|
fi; \
|
||||||
|
phpize \
|
||||||
|
&& ./configure --enable-redis ${REDIS_ARGS} \
|
||||||
|
&& make -j$(getconf _NPROCESSORS_ONLN) \
|
||||||
|
&& make install \
|
||||||
|
&& rm -rf /usr/local/include/php/ext/igbinary \
|
||||||
|
&& rm -rf /usr/local/include/php/ext/msgpack \
|
||||||
|
\
|
||||||
# Enabling
|
# Enabling
|
||||||
&& docker-php-ext-enable redis \
|
&& docker-php-ext-enable redis \
|
||||||
&& true
|
&& true
|
||||||
|
|||||||
@@ -317,10 +317,10 @@ RUN set -eux \
|
|||||||
|
|
||||||
# -------------------- Installing PHP Extension: memcache --------------------
|
# -------------------- Installing PHP Extension: memcache --------------------
|
||||||
RUN set -eux \
|
RUN set -eux \
|
||||||
# Installation: Generic
|
# Installation: Version specific
|
||||||
# Type: PECL extension
|
# Type: PECL extension
|
||||||
# Default: Pecl command
|
# Default: Pecl command
|
||||||
&& pecl install memcache \
|
&& pecl install memcache-4.0.5.2 \
|
||||||
# Enabling
|
# Enabling
|
||||||
&& docker-php-ext-enable memcache \
|
&& docker-php-ext-enable memcache \
|
||||||
&& true
|
&& true
|
||||||
@@ -541,9 +541,26 @@ RUN set -eux \
|
|||||||
# -------------------- Installing PHP Extension: redis --------------------
|
# -------------------- Installing PHP Extension: redis --------------------
|
||||||
RUN set -eux \
|
RUN set -eux \
|
||||||
# Installation: Generic
|
# Installation: Generic
|
||||||
# Type: PECL extension
|
# Type: GIT extension
|
||||||
# Default: Pecl command
|
&& git clone https://github.com/phpredis/phpredis /tmp/redis \
|
||||||
&& pecl install redis \
|
&& cd /tmp/redis \
|
||||||
|
# Custom: Branch
|
||||||
|
&& git checkout $(git for-each-ref --format='%(refname)' refs/tags | grep -E 'tags/[.0-9]+$' | sed 's|.*tags/||g' | sort -V | tail -1) \
|
||||||
|
# Custom: Install command
|
||||||
|
&& REDIS_ARGS=""; \
|
||||||
|
if [ -d "/usr/local/include/php/ext/igbinary" ]; then \
|
||||||
|
REDIS_ARGS="${REDIS_ARGS} --enable-redis-igbinary"; \
|
||||||
|
fi; \
|
||||||
|
if [ -d "/usr/local/include/php/ext/msgpack" ]; then \
|
||||||
|
REDIS_ARGS="${REDIS_ARGS} --enable-redis-msgpack"; \
|
||||||
|
fi; \
|
||||||
|
phpize \
|
||||||
|
&& ./configure --enable-redis ${REDIS_ARGS} \
|
||||||
|
&& make -j$(getconf _NPROCESSORS_ONLN) \
|
||||||
|
&& make install \
|
||||||
|
&& rm -rf /usr/local/include/php/ext/igbinary \
|
||||||
|
&& rm -rf /usr/local/include/php/ext/msgpack \
|
||||||
|
\
|
||||||
# Enabling
|
# Enabling
|
||||||
&& docker-php-ext-enable redis \
|
&& docker-php-ext-enable redis \
|
||||||
&& true
|
&& true
|
||||||
|
|||||||
@@ -326,10 +326,10 @@ RUN set -eux \
|
|||||||
|
|
||||||
# -------------------- Installing PHP Extension: memcache --------------------
|
# -------------------- Installing PHP Extension: memcache --------------------
|
||||||
RUN set -eux \
|
RUN set -eux \
|
||||||
# Installation: Generic
|
# Installation: Version specific
|
||||||
# Type: PECL extension
|
# Type: PECL extension
|
||||||
# Default: Pecl command
|
# Default: Pecl command
|
||||||
&& pecl install memcache \
|
&& pecl install memcache-4.0.5.2 \
|
||||||
# Enabling
|
# Enabling
|
||||||
&& docker-php-ext-enable memcache \
|
&& docker-php-ext-enable memcache \
|
||||||
&& true
|
&& true
|
||||||
@@ -535,9 +535,26 @@ RUN set -eux \
|
|||||||
# -------------------- Installing PHP Extension: redis --------------------
|
# -------------------- Installing PHP Extension: redis --------------------
|
||||||
RUN set -eux \
|
RUN set -eux \
|
||||||
# Installation: Generic
|
# Installation: Generic
|
||||||
# Type: PECL extension
|
# Type: GIT extension
|
||||||
# Default: Pecl command
|
&& git clone https://github.com/phpredis/phpredis /tmp/redis \
|
||||||
&& pecl install redis \
|
&& cd /tmp/redis \
|
||||||
|
# Custom: Branch
|
||||||
|
&& git checkout $(git for-each-ref --format='%(refname)' refs/tags | grep -E 'tags/[.0-9]+$' | sed 's|.*tags/||g' | sort -V | tail -1) \
|
||||||
|
# Custom: Install command
|
||||||
|
&& REDIS_ARGS=""; \
|
||||||
|
if [ -d "/usr/local/include/php/ext/igbinary" ]; then \
|
||||||
|
REDIS_ARGS="${REDIS_ARGS} --enable-redis-igbinary"; \
|
||||||
|
fi; \
|
||||||
|
if [ -d "/usr/local/include/php/ext/msgpack" ]; then \
|
||||||
|
REDIS_ARGS="${REDIS_ARGS} --enable-redis-msgpack"; \
|
||||||
|
fi; \
|
||||||
|
phpize \
|
||||||
|
&& ./configure --enable-redis ${REDIS_ARGS} \
|
||||||
|
&& make -j$(getconf _NPROCESSORS_ONLN) \
|
||||||
|
&& make install \
|
||||||
|
&& rm -rf /usr/local/include/php/ext/igbinary \
|
||||||
|
&& rm -rf /usr/local/include/php/ext/msgpack \
|
||||||
|
\
|
||||||
# Enabling
|
# Enabling
|
||||||
&& docker-php-ext-enable redis \
|
&& docker-php-ext-enable redis \
|
||||||
&& true
|
&& true
|
||||||
|
|||||||
@@ -333,22 +333,26 @@ RUN set -eux \
|
|||||||
|
|
||||||
# -------------------- Installing PHP Extension: redis --------------------
|
# -------------------- Installing PHP Extension: redis --------------------
|
||||||
RUN set -eux \
|
RUN set -eux \
|
||||||
# Installation: Version specific
|
# Installation: Generic
|
||||||
# Type: GIT extension
|
# Type: GIT extension
|
||||||
&& git clone https://github.com/phpredis/phpredis /tmp/redis \
|
&& git clone https://github.com/phpredis/phpredis /tmp/redis \
|
||||||
&& cd /tmp/redis \
|
&& cd /tmp/redis \
|
||||||
# Custom: Branch
|
# Custom: Branch
|
||||||
&& git checkout $(git for-each-ref --format='%(refname)' refs/tags | grep -E 'tags/[.0-9]+$' | sed 's|.*tags/||g' | sort -V | tail -1) \
|
&& git checkout $(git for-each-ref --format='%(refname)' refs/tags | grep -E 'tags/[.0-9]+$' | sed 's|.*tags/||g' | sort -V | tail -1) \
|
||||||
# Custom: Install command
|
# Custom: Install command
|
||||||
&& sed -i'' 's/, ZSTR_LEN(ra->algorithm)//g' redis_array_impl.c \
|
&& REDIS_ARGS=""; \
|
||||||
&& sed -i'' 's|.*sctx->cb\.no_separation.*||g' library.c \
|
if [ -d "/usr/local/include/php/ext/igbinary" ]; then \
|
||||||
&& sed -i'' 's|.*sctx->cb\.no_separation.*||g' redis_array_impl.c \
|
REDIS_ARGS="${REDIS_ARGS} --enable-redis-igbinary"; \
|
||||||
&& sed -i'' 's|.*sctx->cb\.no_separation.*||g' cluster_library.c \
|
fi; \
|
||||||
&& sed -i'' 's|.*->no_separation.*||g' redis_array_impl.c \
|
if [ -d "/usr/local/include/php/ext/msgpack" ]; then \
|
||||||
&& phpize \
|
REDIS_ARGS="${REDIS_ARGS} --enable-redis-msgpack"; \
|
||||||
&& ./configure --enable-redis \
|
fi; \
|
||||||
|
phpize \
|
||||||
|
&& ./configure --enable-redis ${REDIS_ARGS} \
|
||||||
&& make -j$(getconf _NPROCESSORS_ONLN) \
|
&& make -j$(getconf _NPROCESSORS_ONLN) \
|
||||||
&& make install \
|
&& make install \
|
||||||
|
&& rm -rf /usr/local/include/php/ext/igbinary \
|
||||||
|
&& rm -rf /usr/local/include/php/ext/msgpack \
|
||||||
\
|
\
|
||||||
# Enabling
|
# Enabling
|
||||||
&& docker-php-ext-enable redis \
|
&& docker-php-ext-enable redis \
|
||||||
|
|||||||
@@ -333,22 +333,26 @@ RUN set -eux \
|
|||||||
|
|
||||||
# -------------------- Installing PHP Extension: redis --------------------
|
# -------------------- Installing PHP Extension: redis --------------------
|
||||||
RUN set -eux \
|
RUN set -eux \
|
||||||
# Installation: Version specific
|
# Installation: Generic
|
||||||
# Type: GIT extension
|
# Type: GIT extension
|
||||||
&& git clone https://github.com/phpredis/phpredis /tmp/redis \
|
&& git clone https://github.com/phpredis/phpredis /tmp/redis \
|
||||||
&& cd /tmp/redis \
|
&& cd /tmp/redis \
|
||||||
# Custom: Branch
|
# Custom: Branch
|
||||||
&& git checkout $(git for-each-ref --format='%(refname)' refs/tags | grep -E 'tags/[.0-9]+$' | sed 's|.*tags/||g' | sort -V | tail -1) \
|
&& git checkout $(git for-each-ref --format='%(refname)' refs/tags | grep -E 'tags/[.0-9]+$' | sed 's|.*tags/||g' | sort -V | tail -1) \
|
||||||
# Custom: Install command
|
# Custom: Install command
|
||||||
&& sed -i'' 's/, ZSTR_LEN(ra->algorithm)//g' redis_array_impl.c \
|
&& REDIS_ARGS=""; \
|
||||||
&& sed -i'' 's|.*sctx->cb\.no_separation.*||g' library.c \
|
if [ -d "/usr/local/include/php/ext/igbinary" ]; then \
|
||||||
&& sed -i'' 's|.*sctx->cb\.no_separation.*||g' redis_array_impl.c \
|
REDIS_ARGS="${REDIS_ARGS} --enable-redis-igbinary"; \
|
||||||
&& sed -i'' 's|.*sctx->cb\.no_separation.*||g' cluster_library.c \
|
fi; \
|
||||||
&& sed -i'' 's|.*->no_separation.*||g' redis_array_impl.c \
|
if [ -d "/usr/local/include/php/ext/msgpack" ]; then \
|
||||||
&& phpize \
|
REDIS_ARGS="${REDIS_ARGS} --enable-redis-msgpack"; \
|
||||||
&& ./configure --enable-redis \
|
fi; \
|
||||||
|
phpize \
|
||||||
|
&& ./configure --enable-redis ${REDIS_ARGS} \
|
||||||
&& make -j$(getconf _NPROCESSORS_ONLN) \
|
&& make -j$(getconf _NPROCESSORS_ONLN) \
|
||||||
&& make install \
|
&& make install \
|
||||||
|
&& rm -rf /usr/local/include/php/ext/igbinary \
|
||||||
|
&& rm -rf /usr/local/include/php/ext/msgpack \
|
||||||
\
|
\
|
||||||
# Enabling
|
# Enabling
|
||||||
&& docker-php-ext-enable redis \
|
&& docker-php-ext-enable redis \
|
||||||
|
|||||||
@@ -471,6 +471,21 @@ extensions_available:
|
|||||||
5.6:
|
5.6:
|
||||||
type: pecl
|
type: pecl
|
||||||
version: 2.2.7
|
version: 2.2.7
|
||||||
|
7.0:
|
||||||
|
type: pecl
|
||||||
|
version: 4.0.5.2
|
||||||
|
7.1:
|
||||||
|
type: pecl
|
||||||
|
version: 4.0.5.2
|
||||||
|
7.2:
|
||||||
|
type: pecl
|
||||||
|
version: 4.0.5.2
|
||||||
|
7.3:
|
||||||
|
type: pecl
|
||||||
|
version: 4.0.5.2
|
||||||
|
7.4:
|
||||||
|
type: pecl
|
||||||
|
version: 4.0.5.2
|
||||||
all:
|
all:
|
||||||
type: pecl
|
type: pecl
|
||||||
build_dep: [zlib1g-dev]
|
build_dep: [zlib1g-dev]
|
||||||
@@ -841,38 +856,24 @@ extensions_available:
|
|||||||
5.6:
|
5.6:
|
||||||
type: pecl
|
type: pecl
|
||||||
version: 4.3.0
|
version: 4.3.0
|
||||||
8.0:
|
|
||||||
type: git
|
|
||||||
git_url: https://github.com/phpredis/phpredis
|
|
||||||
git_ref: $(git for-each-ref --format='%(refname)' refs/tags | grep -E 'tags/[.0-9]+$' | sed 's|.*tags/||g' | sort -V | tail -1)
|
|
||||||
# TODO: This is a nasty work-around to fix current phpredis implementation for PHP 8.0
|
|
||||||
command: |
|
|
||||||
sed -i'' 's/, ZSTR_LEN(ra->algorithm)//g' redis_array_impl.c \
|
|
||||||
&& sed -i'' 's|.*sctx->cb\.no_separation.*||g' library.c \
|
|
||||||
&& sed -i'' 's|.*sctx->cb\.no_separation.*||g' redis_array_impl.c \
|
|
||||||
&& sed -i'' 's|.*sctx->cb\.no_separation.*||g' cluster_library.c \
|
|
||||||
&& sed -i'' 's|.*->no_separation.*||g' redis_array_impl.c \
|
|
||||||
&& phpize \
|
|
||||||
&& ./configure --enable-redis \
|
|
||||||
&& make -j$(getconf _NPROCESSORS_ONLN) \
|
|
||||||
&& make install \
|
|
||||||
8.1:
|
|
||||||
type: git
|
|
||||||
git_url: https://github.com/phpredis/phpredis
|
|
||||||
git_ref: $(git for-each-ref --format='%(refname)' refs/tags | grep -E 'tags/[.0-9]+$' | sed 's|.*tags/||g' | sort -V | tail -1)
|
|
||||||
# TODO: This is a nasty work-around to fix current phpredis implementation for PHP 8.1
|
|
||||||
command: |
|
|
||||||
sed -i'' 's/, ZSTR_LEN(ra->algorithm)//g' redis_array_impl.c \
|
|
||||||
&& sed -i'' 's|.*sctx->cb\.no_separation.*||g' library.c \
|
|
||||||
&& sed -i'' 's|.*sctx->cb\.no_separation.*||g' redis_array_impl.c \
|
|
||||||
&& sed -i'' 's|.*sctx->cb\.no_separation.*||g' cluster_library.c \
|
|
||||||
&& sed -i'' 's|.*->no_separation.*||g' redis_array_impl.c \
|
|
||||||
&& phpize \
|
|
||||||
&& ./configure --enable-redis \
|
|
||||||
&& make -j$(getconf _NPROCESSORS_ONLN) \
|
|
||||||
&& make install \
|
|
||||||
all:
|
all:
|
||||||
type: pecl
|
type: git
|
||||||
|
git_url: https://github.com/phpredis/phpredis
|
||||||
|
git_ref: $(git for-each-ref --format='%(refname)' refs/tags | grep -E 'tags/[.0-9]+$' | sed 's|.*tags/||g' | sort -V | tail -1)
|
||||||
|
command: |
|
||||||
|
REDIS_ARGS=""; \
|
||||||
|
if [ -d "/usr/local/include/php/ext/igbinary" ]; then \
|
||||||
|
REDIS_ARGS="${REDIS_ARGS} --enable-redis-igbinary"; \
|
||||||
|
fi; \
|
||||||
|
if [ -d "/usr/local/include/php/ext/msgpack" ]; then \
|
||||||
|
REDIS_ARGS="${REDIS_ARGS} --enable-redis-msgpack"; \
|
||||||
|
fi; \
|
||||||
|
phpize \
|
||||||
|
&& ./configure --enable-redis ${REDIS_ARGS} \
|
||||||
|
&& make -j$(getconf _NPROCESSORS_ONLN) \
|
||||||
|
&& make install \
|
||||||
|
&& rm -rf /usr/local/include/php/ext/igbinary \
|
||||||
|
&& rm -rf /usr/local/include/php/ext/msgpack \
|
||||||
reflection:
|
reflection:
|
||||||
already_avail: [5.2, 5.3, 5.4, 5.5, 5.6, 7.0, 7.1, 7.2, 7.3, 7.4, 8.0, 8.1]
|
already_avail: [5.2, 5.3, 5.4, 5.5, 5.6, 7.0, 7.1, 7.2, 7.3, 7.4, 8.0, 8.1]
|
||||||
rdkafka:
|
rdkafka:
|
||||||
|
|||||||
Reference in New Issue
Block a user