Skip to content

Commit

Permalink
Merge pull request #3517 from amorZhu/master
Browse files Browse the repository at this point in the history
Handle Phalcon installation exceptions in php-worker
  • Loading branch information
bestlong committed Apr 26, 2024
2 parents 4b79f94 + 2d08b4f commit 0d213ef
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions docker-compose.yml
Expand Up @@ -333,6 +333,7 @@ services:
- CHANGE_SOURCE=${CHANGE_SOURCE}
- LARADOCK_PHP_VERSION=${PHP_VERSION}
- PHALCON_VERSION=${PHALCON_VERSION}
- LARADOCK_PHALCON_VERSION=${PHALCON_VERSION}
- INSTALL_BZ2=${PHP_WORKER_INSTALL_BZ2}
- INSTALL_GD=${PHP_WORKER_INSTALL_GD}
- INSTALL_IMAGEMAGICK=${PHP_WORKER_INSTALL_IMAGEMAGICK}
Expand Down
8 changes: 4 additions & 4 deletions php-worker/Dockerfile
Expand Up @@ -348,11 +348,11 @@ ARG INSTALL_PHALCON=false
ARG LARADOCK_PHALCON_VERSION
ENV LARADOCK_PHALCON_VERSION ${LARADOCK_PHALCON_VERSION}

RUN if [ $INSTALL_PHALCON = true ]; then \
apt-get update -yqq \
RUN if [ "$INSTALL_PHALCON" = true ]; then \
apk update \
&& pecl channel-update pecl.php.net \
&& apt-get install -yqq libpcre3-dev; \
pecl install phalcon-${LARADOCK_PHALCON_VERSION}; \
&& apk add --no-cache libpcre32 \
&& pecl install phalcon-${LARADOCK_PHALCON_VERSION}; \
docker-php-ext-enable phalcon; \
php -m | grep -q 'phalcon' \
;fi
Expand Down

0 comments on commit 0d213ef

Please sign in to comment.