Merge pull request #2886 from laradock/php8-swoole
PHP 8.0 php-fpm swoole
This commit is contained in:
commit
a80750cc24
|
@ -285,24 +285,21 @@ RUN if [ ${INSTALL_PHPREDIS} = true ]; then \
|
||||||
###########################################################################
|
###########################################################################
|
||||||
|
|
||||||
ARG INSTALL_SWOOLE=false
|
ARG INSTALL_SWOOLE=false
|
||||||
RUN if [ ${INSTALL_SWOOLE} = true ]; then \
|
RUN set -eux; \
|
||||||
|
if [ ${INSTALL_SWOOLE} = true ]; then \
|
||||||
# Install Php Swoole Extension
|
# Install Php Swoole Extension
|
||||||
if [ $(php -r "echo PHP_MAJOR_VERSION;") = "5" ]; then \
|
if [ $(php -r "echo PHP_VERSION_ID - PHP_RELEASE_VERSION;") = "50600" ]; then \
|
||||||
pecl -q install swoole-2.0.11; \
|
pecl install swoole-2.0.11; \
|
||||||
|
elif [ $(php -r "echo PHP_VERSION_ID - PHP_RELEASE_VERSION;") = "70000" ]; then \
|
||||||
|
pecl install swoole-4.3.5; \
|
||||||
|
elif [ $(php -r "echo PHP_VERSION_ID - PHP_RELEASE_VERSION;") = "70100" ]; then \
|
||||||
|
pecl install swoole-4.6.0; \
|
||||||
else \
|
else \
|
||||||
if [ $(php -r "echo PHP_MINOR_VERSION;") = "0" ]; then \
|
pecl install swoole; \
|
||||||
echo '' | pecl install swoole-4.3.5; \
|
fi; \
|
||||||
else \
|
docker-php-ext-enable swoole; \
|
||||||
if [ $(php -r "echo PHP_MINOR_VERSION;") = "1" ]; then \
|
php -m | grep -q 'swoole'; \
|
||||||
echo '' | pecl install swoole-4.6.0; \
|
fi
|
||||||
else \
|
|
||||||
echo '' | pecl install swoole; \
|
|
||||||
fi \
|
|
||||||
fi \
|
|
||||||
fi && \
|
|
||||||
docker-php-ext-enable swoole \
|
|
||||||
&& php -m | grep -q 'swoole' \
|
|
||||||
;fi
|
|
||||||
|
|
||||||
###########################################################################
|
###########################################################################
|
||||||
# Taint EXTENSION
|
# Taint EXTENSION
|
||||||
|
|
Loading…
Reference in New Issue