fix:Add php xlswriter extension
This commit is contained in:
parent
353ed5afb4
commit
9536c2e63f
@ -488,8 +488,6 @@ RUN if [ ${INSTALL_GEARMAN} = true ]; then \
|
|||||||
docker-php-ext-enable gearman \
|
docker-php-ext-enable gearman \
|
||||||
;fi
|
;fi
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
###########################################################################
|
###########################################################################
|
||||||
# xlswriter:
|
# xlswriter:
|
||||||
###########################################################################
|
###########################################################################
|
||||||
@ -498,13 +496,15 @@ ARG INSTALL_XLSWRITER=false
|
|||||||
RUN set -eux; \
|
RUN set -eux; \
|
||||||
if [ ${INSTALL_XLSWRITER} = true ]; then \
|
if [ ${INSTALL_XLSWRITER} = true ]; then \
|
||||||
# Install Php xlswriter Extension \
|
# Install Php xlswriter Extension \
|
||||||
|
if [ $(php -r "echo PHP_MAJOR_VERSION;") > "5" ]; then \
|
||||||
pecl install xlswriter; \
|
pecl install xlswriter; \
|
||||||
docker-php-ext-enable xlswriter; \
|
docker-php-ext-enable xlswriter; \
|
||||||
php -m | grep -q 'xlswriter'; \
|
php -m | grep -q 'xlswriter'; \
|
||||||
|
else \
|
||||||
|
echo "PHP Extension for xlswriter is not supported for PHP 5.0"\
|
||||||
|
fi; \
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
###########################################################################
|
###########################################################################
|
||||||
# pcntl
|
# pcntl
|
||||||
###########################################################################
|
###########################################################################
|
||||||
|
@ -367,24 +367,24 @@ RUN set -eux; \
|
|||||||
php -m | grep -oiE '^swoole$'; \
|
php -m | grep -oiE '^swoole$'; \
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
###########################################################################
|
###########################################################################
|
||||||
# xlswriter:
|
# xlswriter:
|
||||||
###########################################################################
|
###########################################################################
|
||||||
|
|
||||||
ARG INSTALL_XLSWRITER=false
|
ARG INSTALL_XLSWRITER=false
|
||||||
|
|
||||||
RUN set -eux; \
|
RUN set -eux; \
|
||||||
if [ ${INSTALL_XLSWRITER} = true ]; then \
|
if [ ${INSTALL_XLSWRITER} = true ]; then \
|
||||||
# Install Php xlswriter Extension \
|
# Install Php xlswriter Extension \
|
||||||
|
if [ $(php -r "echo PHP_MAJOR_VERSION;") > "5" ]; then \
|
||||||
pecl install xlswriter; \
|
pecl install xlswriter; \
|
||||||
docker-php-ext-enable xlswriter; \
|
docker-php-ext-enable xlswriter; \
|
||||||
php -m | grep -q 'xlswriter'; \
|
php -m | grep -q 'xlswriter'; \
|
||||||
|
else \
|
||||||
|
echo "PHP Extension for xlswriter is not supported for PHP 5.0"; \
|
||||||
|
fi; \
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
###########################################################################
|
###########################################################################
|
||||||
# Taint EXTENSION
|
# Taint EXTENSION
|
||||||
###########################################################################
|
###########################################################################
|
||||||
|
@ -575,10 +575,14 @@ ARG INSTALL_XLSWRITER=false
|
|||||||
RUN set -eux; \
|
RUN set -eux; \
|
||||||
if [ ${INSTALL_XLSWRITER} = true ]; then \
|
if [ ${INSTALL_XLSWRITER} = true ]; then \
|
||||||
# Install Php xlswriter Extension
|
# Install Php xlswriter Extension
|
||||||
|
if [ $(php -r "echo PHP_MAJOR_VERSION;") > "5" ]; then \
|
||||||
echo '' | pecl -q install xlswriter; \
|
echo '' | pecl -q install xlswriter; \
|
||||||
echo "extension=xlswriter.so" >> /etc/php/${LARADOCK_PHP_VERSION}/mods-available/xlswriter.ini; \
|
echo "extension=xlswriter.so" >> /etc/php/${LARADOCK_PHP_VERSION}/mods-available/xlswriter.ini; \
|
||||||
ln -s /etc/php/${LARADOCK_PHP_VERSION}/mods-available/xlswriter.ini /etc/php/${LARADOCK_PHP_VERSION}/cli/conf.d/20-xlswriter.ini; \
|
ln -s /etc/php/${LARADOCK_PHP_VERSION}/mods-available/xlswriter.ini /etc/php/${LARADOCK_PHP_VERSION}/cli/conf.d/20-xlswriter.ini; \
|
||||||
php -m | grep -q 'xlswriter'; \
|
php -m | grep -q 'xlswriter'; \
|
||||||
|
else \
|
||||||
|
echo "PHP Extension for xlswriter is not supported for PHP 5.0"; \
|
||||||
|
fi; \
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user