From 2e31c037cd95835beb25a988f7ae79f96a0a2bb4 Mon Sep 17 00:00:00 2001 From: kideny Date: Tue, 27 Sep 2022 13:03:28 +0800 Subject: [PATCH] fixed --- php-fpm/Dockerfile | 3 --- php-worker/Dockerfile | 8 +++----- workspace/Dockerfile | 8 ++++---- 3 files changed, 7 insertions(+), 12 deletions(-) diff --git a/php-fpm/Dockerfile b/php-fpm/Dockerfile index ffb9a0f8..d962fdc2 100644 --- a/php-fpm/Dockerfile +++ b/php-fpm/Dockerfile @@ -855,9 +855,6 @@ RUN if [ $INSTALL_PHALCON = true ]; then \ && pecl channel-update pecl.php.net \ && apt-get install -yqq libpcre3-dev; \ pecl install phalcon-${LARADOCK_PHALCON_VERSION}; \ - # echo "extension=psr.so" >> /etc/php/${LARADOCK_PHP_VERSION}/mods-available/phalcon.ini \ - # && echo "extension=phalcon.so" >> /etc/php/${LARADOCK_PHP_VERSION}/mods-available/phalcon.ini \ - # && ln -s /etc/php/${LARADOCK_PHP_VERSION}/mods-available/phalcon.ini /etc/php/${LARADOCK_PHP_VERSION}/cli/conf.d/30-phalcon.ini \ docker-php-ext-enable phalcon \ ;fi diff --git a/php-worker/Dockerfile b/php-worker/Dockerfile index a0eb12e6..d384c017 100644 --- a/php-worker/Dockerfile +++ b/php-worker/Dockerfile @@ -318,11 +318,9 @@ RUN if [ $INSTALL_PHALCON = true ]; then \ && pecl channel-update pecl.php.net \ && apt-get install -yqq libpcre3-dev; \ pecl install phalcon-${LARADOCK_PHALCON_VERSION}; \ - # echo "extension=psr.so" >> /etc/php/${LARADOCK_PHP_VERSION}/mods-available/phalcon.ini \ - # && echo "extension=phalcon.so" >> /etc/php/${LARADOCK_PHP_VERSION}/mods-available/phalcon.ini \ - # && ln -s /etc/php/${LARADOCK_PHP_VERSION}/mods-available/phalcon.ini /etc/php/${LARADOCK_PHP_VERSION}/cli/conf.d/30-phalcon.ini \ - docker-php-ext-enable phalcon \ - ;fi + docker-php-ext-enable phalcon; \ + php -m | grep -q 'phalcon' \ + ;fi ARG INSTALL_GHOSTSCRIPT=false RUN if [ $INSTALL_GHOSTSCRIPT = true ]; then \ diff --git a/workspace/Dockerfile b/workspace/Dockerfile index b2086c1b..d650d7e1 100644 --- a/workspace/Dockerfile +++ b/workspace/Dockerfile @@ -1326,10 +1326,10 @@ RUN if [ $INSTALL_PHALCON = true ]; then \ && pecl channel-update pecl.php.net \ && apt-get install -yqq libpcre3-dev; \ pecl install phalcon-${LARADOCK_PHALCON_VERSION}; \ - # echo "extension=psr.so" >> /etc/php/${LARADOCK_PHP_VERSION}/mods-available/phalcon.ini \ - # && echo "extension=phalcon.so" >> /etc/php/${LARADOCK_PHP_VERSION}/mods-available/phalcon.ini \ - # && ln -s /etc/php/${LARADOCK_PHP_VERSION}/mods-available/phalcon.ini /etc/php/${LARADOCK_PHP_VERSION}/cli/conf.d/30-phalcon.ini \ - docker-php-ext-enable phalcon \ + echo "extension=psr.so" >> /etc/php/${LARADOCK_PHP_VERSION}/mods-available/phalcon.ini; \ + echo "extension=phalcon.so" >> /etc/php/${LARADOCK_PHP_VERSION}/mods-available/phalcon.ini; \ + ln -s /etc/php/${LARADOCK_PHP_VERSION}/mods-available/phalcon.ini /etc/php/${LARADOCK_PHP_VERSION}/cli/conf.d/30-phalcon.ini; \ + php -m | grep -q 'phalcon'; \ ;fi ###########################################################################