Skip to content

Commit

Permalink
Merge pull request #3 from rigoucr/feature/add-blackfire
Browse files Browse the repository at this point in the history
Blackfire integration
  • Loading branch information
kporras07 committed Oct 2, 2018
2 parents 2d467d9 + 9072db3 commit e80dd05
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
9 changes: 9 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ ENV PHP_MEMORY_LIMIT 256M
ENV PHP_MAX_EXECUTION_TIME 120
ENV PHP_POST_MAX_SIZE 100M
ENV PHP_UPLOAD_MAX_FILESIZE 100M
ENV PHP_INI_DIR /usr/local/etc/php

RUN docker-php-source extract \
&& apk --no-cache --update add \
Expand Down Expand Up @@ -60,6 +61,14 @@ RUN docker-php-ext-install bcmath \
RUN apk update \
&& apk add ca-certificates wget \
&& update-ca-certificates
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/alpine/amd64/$version \
&& mkdir -p /tmp/blackfire \
&& tar zxpf /tmp/blackfire-probe.tar.gz -C /tmp/blackfire \
&& mv /tmp/blackfire/blackfire-*.so $(php -r "echo ini_get('extension_dir');")/blackfire.so \
&& printf "extension=blackfire.so\nblackfire.agent_socket=tcp://blackfire:8707\n" > $PHP_INI_DIR/conf.d/blackfire.ini \
&& rm -rf /tmp/blackfire /tmp/blackfire-probe.tar.gz

RUN pecl install xdebug
RUN docker-php-ext-enable xdebug

Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,4 @@ PHP Image containing some useful extensions.
- gd
- xdebug
- mhsendmail
- blackfire

0 comments on commit e80dd05

Please sign in to comment.