Added support for AMQP extension in workspace and php-fpm containers.

This commit is contained in:
Fruty
2017-12-28 14:25:32 +02:00
parent 7fc3a9cb7a
commit 0aaa2c742e
8 changed files with 85 additions and 0 deletions

View File

@ -218,6 +218,21 @@ RUN if [ ${INSTALL_MONGO} = true ]; then \
ln -s /etc/php/7.1/mods-available/mongodb.ini /etc/php/7.1/cli/conf.d/30-mongodb.ini \
;fi
#####################################
# AMQP:
#####################################
# Check if Mongo needs to be installed
ARG INSTALL_AMQP=false
ENV INSTALL_AMQP ${INSTALL_AMQP}
RUN if [ ${INSTALL_AMQP} = true ]; then \
apt-get install librabbitmq-dev -y && \
# Install the mongodb extension
pecl -q install amqp && \
echo "extension=amqp.so" >> /etc/php/7.1/mods-available/amqp.ini && \
ln -s /etc/php/7.1/mods-available/amqp.ini /etc/php/7.1/cli/conf.d/30-amqp.ini \
;fi
#####################################
# PHP REDIS EXTENSION FOR PHP 7.1
#####################################