andybeak
7/17/2017 - 4:34 PM

Docker with Phalcon and Blackfire

Docker with Phalcon and Blackfire

; -------------------------------------
; Phalcon Compose PHP configuration
; -------------------------------------

; this file will overwrite default /etc/php/7.0/fpm/php.ini settings
extension=blackfire.so
blackfire.agent_socket=tcp://blackfire:8707
  blackfire:
    image: blackfire/blackfire
    environment:
      BLACKFIRE_SERVER_ID: <provided by blackfire>
      BLACKFIRE_SERVER_TOKEN: <provided by blackfire>
RUN version=$(php -r "echo PHP_MAJOR_VERSION.PHP_MINOR_VERSION;") \
    && curl -A "Docker" -o /tmp/blackfire-probe.tar.gz -D - -L -s https://blackfire.io/api/v1/releases/probe/php/linux/amd64/$version \
    && tar zxpf /tmp/blackfire-probe.tar.gz -C /tmp \
    && mv /tmp/blackfire-*.so $(php -r "echo ini_get('extension_dir');")/blackfire.so