docker-swoole icon indicating copy to clipboard operation
docker-swoole copied to clipboard

Something wrong when Install Redis extendsion

Open WangNingkai opened this issue 3 years ago • 1 comments
trafficstars

image

WangNingkai avatar Jul 20 '22 09:07 WangNingkai

邮件已收到 谢谢!

liulyn avatar Jul 20 '22 09:07 liulyn

Extension redis and pdo_mysql have been added to the nightly images (built daily using the latest code of Swoole):

docker run --rm -ti phpswoole/swoole:php8.0 php --ri pdo_mysql
# ...
docker run --rm -ti phpswoole/swoole:php8.2 php --ri redis

The two extensions won't be added to existing version-based images (e.g., 4.8.11 and 5.0.0), but they will be added to new images (4.8.12+ and 5.0.1+).

If you need to add the two extensions manually to an existing Docker image:

# ...

RUN \
    set -ex && \
    docker-php-ext-install pdo_mysql && \
    pecl channel-update pecl.php.net && \
    pecl install --configureoptions 'enable-redis-igbinary="no" enable-redis-lzf="no" enable-redis-zstd="no"' redis-stable && \
    docker-php-ext-enable redis

# ...

deminy avatar Sep 01 '22 17:09 deminy