php-worker mongodb
This commit is contained in:
parent
67b7d18607
commit
50300f5bb1
|
@ -141,13 +141,19 @@ RUN if [ ${INSTALL_SOAP} = true ]; then \
|
||||||
# Install MongoDB drivers:
|
# Install MongoDB drivers:
|
||||||
ARG INSTALL_MONGO=false
|
ARG INSTALL_MONGO=false
|
||||||
RUN if [ ${INSTALL_MONGO} = true ]; then \
|
RUN if [ ${INSTALL_MONGO} = true ]; then \
|
||||||
if [ $(php -r "echo PHP_MAJOR_VERSION;") = "5" ]; then \
|
if [ $(php -r "echo PHP_MAJOR_VERSION;") = "5" ]; then \
|
||||||
pecl install mongo; \
|
pecl install mongo; \
|
||||||
docker-php-ext-enable mongo; \
|
docker-php-ext-enable mongo; \
|
||||||
else \
|
php -m | grep -oiE '^mongo$'; \
|
||||||
pecl install mongodb; \
|
else \
|
||||||
docker-php-ext-enable mongodb; \
|
if [ $(php -r "echo PHP_VERSION_ID - PHP_RELEASE_VERSION;") = "70000" ]; then \
|
||||||
fi; \
|
pecl install mongodb-1.9.2; \
|
||||||
|
else \
|
||||||
|
pecl install mongodb; \
|
||||||
|
fi; \
|
||||||
|
docker-php-ext-enable mongodb; \
|
||||||
|
php -m | grep -oiE '^mongodb$'; \
|
||||||
|
fi; \
|
||||||
fi
|
fi
|
||||||
|
|
||||||
###########################################################################
|
###########################################################################
|
||||||
|
|
Loading…
Reference in New Issue