Skip to content

Instantly share code, notes, and snippets.

@hjanuschka
Created December 17, 2018 10:53
Show Gist options
  • Save hjanuschka/3cf12a414df5e41810e19a21ab3777ba to your computer and use it in GitHub Desktop.
Save hjanuschka/3cf12a414df5e41810e19a21ab3777ba to your computer and use it in GitHub Desktop.
# BLACKFIRE.io setup
RUN version=$(php -r "echo PHP_MAJOR_VERSION.PHP_MINOR_VERSION;") \
&& wget -O /tmp/blackfire-probe.tar.gz 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 \
&& printf "extension=blackfire.so\nblackfire.agent_socket=tcp://blackfire:8707\n" > $PHP_INI_DIR/conf.d/blackfire.ini
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment