Add PHP_FPM_INSTALL_RDKAFKA as an option to install rdkafka extension (#2040)

This commit is contained in:
Rainer Eli
2019-05-08 04:15:09 -06:00
committed by Shao Yu-Lung (Allen)
parent d34602ae29
commit d8b3cb5a52
3 changed files with 14 additions and 0 deletions

View File

@ -598,6 +598,18 @@ RUN if [ ${INSTALL_YAML} = true ]; then \
docker-php-ext-enable yaml \
;fi
###########################################################################
# RDKAFKA:
###########################################################################
ARG INSTALL_RDKAFKA=false
RUN if [ ${INSTALL_RDKAFKA} = true ]; then \
apt-get install -y librdkafka-dev && \
pecl install rdkafka && \
docker-php-ext-enable rdkafka \
;fi
###########################################################################
# Install additional locales:
###########################################################################