|
@@ -239,6 +239,34 @@ RUN if [ ${INSTALL_MONGO} = true ]; then \
|
|
docker-php-ext-enable mongodb \
|
|
docker-php-ext-enable mongodb \
|
|
;fi
|
|
;fi
|
|
|
|
|
|
|
|
+###########################################################################
|
|
|
|
+# Xhprof:
|
|
|
|
+###########################################################################
|
|
|
|
+
|
|
|
|
+ARG INSTALL_XHPROF=false
|
|
|
|
+
|
|
|
|
+RUN if [ ${INSTALL_XHPROF} = true ]; then \
|
|
|
|
+ # Install the php xhprof extension
|
|
|
|
+ if [ $(php -r "echo PHP_MAJOR_VERSION;") = 7 ]; then \
|
|
|
|
+ curl -L -o /tmp/xhprof.tar.gz "https://github.com/tideways/php-xhprof-extension/archive/v4.1.6.tar.gz"; \
|
|
|
|
+ else \
|
|
|
|
+ curl -L -o /tmp/xhprof.tar.gz "https://codeload.github.com/phacility/xhprof/tar.gz/master"; \
|
|
|
|
+ fi \
|
|
|
|
+ && mkdir -p xhprof \
|
|
|
|
+ && tar -C xhprof -zxvf /tmp/xhprof.tar.gz --strip 1 \
|
|
|
|
+ && ( \
|
|
|
|
+ cd xhprof \
|
|
|
|
+ && phpize \
|
|
|
|
+ && ./configure \
|
|
|
|
+ && make \
|
|
|
|
+ && make install \
|
|
|
|
+ ) \
|
|
|
|
+ && rm -r xhprof \
|
|
|
|
+ && rm /tmp/xhprof.tar.gz \
|
|
|
|
+;fi
|
|
|
|
+
|
|
|
|
+COPY ./xhprof.ini /usr/local/etc/php/conf.d
|
|
|
|
+
|
|
###########################################################################
|
|
###########################################################################
|
|
# AMQP:
|
|
# AMQP:
|
|
###########################################################################
|
|
###########################################################################
|