Merge pull request #1326 from ed-fruty/add_amqp_supports
Added support for AMQP extension in workspace and php-fpm containers.
This commit is contained in:
@ -220,6 +220,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
|
||||
#####################################
|
||||
|
Reference in New Issue
Block a user