Fix:Issue #2038 Install mongodb php extension (#2167)

* Fix:Issue #2038 Install mongodb php extension
- Make sure `INSTALL_MONGO` flag is `true`
- Run pecl install mongodb and enable the extentions in `laravel-horizon`
  and `php-worker` images
- Remember to rebuild images
* INSTALL flag default set false
This commit is contained in:
Majid Hadavand 2019-07-30 09:24:56 +04:30 committed by Shao Yu-Lung (Allen)
parent 2e928a4928
commit 8254c34647
2 changed files with 2 additions and 2 deletions

View File

@ -24,7 +24,7 @@ RUN apk --update add wget \
procps procps
RUN docker-php-ext-install mysqli mbstring pdo pdo_mysql tokenizer xml pcntl RUN docker-php-ext-install mysqli mbstring pdo pdo_mysql tokenizer xml pcntl
RUN pecl channel-update pecl.php.net && pecl install memcached mcrypt-1.0.1 && docker-php-ext-enable memcached RUN pecl channel-update pecl.php.net && pecl install memcached mcrypt-1.0.1 mongodb && docker-php-ext-enable memcached mongodb
#Install BCMath package: #Install BCMath package:
ARG INSTALL_BCMATH=false ARG INSTALL_BCMATH=false

View File

@ -24,7 +24,7 @@ RUN apk --update add wget \
supervisor supervisor
RUN docker-php-ext-install mysqli mbstring pdo pdo_mysql tokenizer xml pcntl RUN docker-php-ext-install mysqli mbstring pdo pdo_mysql tokenizer xml pcntl
RUN pecl channel-update pecl.php.net && pecl install memcached mcrypt-1.0.1 && docker-php-ext-enable memcached RUN pecl channel-update pecl.php.net && pecl install memcached mcrypt-1.0.1 mongodb && docker-php-ext-enable memcached mongodb
# Add a non-root user: # Add a non-root user:
ARG PUID=1000 ARG PUID=1000