fix php5.6 php-worker swoole
This commit is contained in:
parent
45a7f9ad6f
commit
6c50719b75
@ -25,6 +25,7 @@ RUN apk --update add wget \
|
|||||||
build-base \
|
build-base \
|
||||||
libmcrypt-dev \
|
libmcrypt-dev \
|
||||||
libxml2-dev \
|
libxml2-dev \
|
||||||
|
linux-headers \
|
||||||
pcre-dev \
|
pcre-dev \
|
||||||
zlib-dev \
|
zlib-dev \
|
||||||
autoconf \
|
autoconf \
|
||||||
@ -350,20 +351,21 @@ RUN if [ ${INSTALL_REDIS} = true ]; then \
|
|||||||
|
|
||||||
ARG INSTALL_SWOOLE=false
|
ARG INSTALL_SWOOLE=false
|
||||||
|
|
||||||
RUN if [ ${INSTALL_SWOOLE} = true ]; then \
|
RUN set -eux; \
|
||||||
# Install Php Swoole Extension
|
if [ ${INSTALL_SWOOLE} = true ]; then \
|
||||||
if [ $(php -r "echo PHP_VERSION_ID - PHP_RELEASE_VERSION;") = "50600" ]; then \
|
# Install Php Swoole Extension
|
||||||
echo '' | pecl -q install swoole-2.0.10; \
|
if [ $(php -r "echo PHP_VERSION_ID - PHP_RELEASE_VERSION;") = "50600" ]; then \
|
||||||
elif [ $(php -r "echo PHP_VERSION_ID - PHP_RELEASE_VERSION;") = "70000" ]; then \
|
pecl install swoole-2.0.10; \
|
||||||
echo '' | pecl -q install swoole-4.3.5; \
|
elif [ $(php -r "echo PHP_VERSION_ID - PHP_RELEASE_VERSION;") = "70000" ]; then \
|
||||||
elif [ $(php -r "echo PHP_VERSION_ID - PHP_RELEASE_VERSION;") = "70100" ]; then \
|
pecl install swoole-4.3.5; \
|
||||||
echo '' | pecl -q install swoole-4.5.11; \
|
elif [ $(php -r "echo PHP_VERSION_ID - PHP_RELEASE_VERSION;") = "70100" ]; then \
|
||||||
else \
|
pecl install swoole-4.5.11; \
|
||||||
echo '' | pecl -q install swoole; \
|
else \
|
||||||
fi; \
|
pecl install swoole; \
|
||||||
docker-php-ext-enable swoole \
|
fi; \
|
||||||
&& php -m | grep -q 'swoole' \
|
docker-php-ext-enable swoole; \
|
||||||
;fi
|
php -m | grep -oiE '^swoole$'; \
|
||||||
|
fi
|
||||||
|
|
||||||
###########################################################################
|
###########################################################################
|
||||||
# Taint EXTENSION
|
# Taint EXTENSION
|
||||||
|
Loading…
Reference in New Issue
Block a user