Skip to content

Commit

Permalink
Fix:Issue #2038 Install mongodb php extension (#2167)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
hadavand authored and bestlong committed Jul 30, 2019
1 parent 2e928a4 commit 8254c34
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion laravel-horizon/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ RUN apk --update add wget \
procps

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:
ARG INSTALL_BCMATH=false
Expand Down
2 changes: 1 addition & 1 deletion php-worker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ RUN apk --update add wget \
supervisor

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:
ARG PUID=1000
Expand Down

0 comments on commit 8254c34

Please sign in to comment.