From 68ebb041f7f91d3ad9c19bb3f6a0f7046dfdbdff Mon Sep 17 00:00:00 2001 From: Edie Lemoine Date: Fri, 4 Oct 2024 14:14:14 +0200 Subject: [PATCH] fix: install blackfire probe in image (#15) --- images/prestashop/Dockerfile | 3 ++- images/shopware/Dockerfile | 3 ++- images/wordpress/Dockerfile | 3 ++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/images/prestashop/Dockerfile b/images/prestashop/Dockerfile index 7139efe..1ad485b 100644 --- a/images/prestashop/Dockerfile +++ b/images/prestashop/Dockerfile @@ -175,7 +175,8 @@ RUN version="$(php -r "echo PHP_MAJOR_VERSION.PHP_MINOR_VERSION;")" && \ 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 "blackfire.agent_socket=tcp://blackfire:8307\n" > "$PHP_INI_DIR/conf.d/blackfire.ini" && \ - rm -rf /tmp/blackfire /tmp/blackfire-probe.tar.gz + rm -rf /tmp/blackfire /tmp/blackfire-probe.tar.gz && \ + blackfire php:install ENV XDEBUG_MODE=debug diff --git a/images/shopware/Dockerfile b/images/shopware/Dockerfile index 3fdb6a6..9da42c4 100644 --- a/images/shopware/Dockerfile +++ b/images/shopware/Dockerfile @@ -96,7 +96,8 @@ 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/$architecture/$version" && \ tar zxpf /tmp/blackfire-probe.tar.gz -C /tmp/blackfire && \ mv /tmp/blackfire/blackfire-*.so "$(php -r "echo ini_get ('extension_dir');")/blackfire.so" && \ - rm -rf /tmp/blackfire /tmp/blackfire-probe.tar.gz + rm -rf /tmp/blackfire /tmp/blackfire-probe.tar.gz && \ + blackfire php:install # add utilities RUN apk add --no-cache \ diff --git a/images/wordpress/Dockerfile b/images/wordpress/Dockerfile index 967d766..674b5e3 100644 --- a/images/wordpress/Dockerfile +++ b/images/wordpress/Dockerfile @@ -159,7 +159,8 @@ RUN apk add --no-cache \ 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 "blackfire.agent_socket=tcp://blackfire:8307\n" > "$PHP_INI_DIR/conf.d/blackfire.ini" && \ - rm -rf /tmp/blackfire /tmp/blackfire-probe.tar.gz + rm -rf /tmp/blackfire /tmp/blackfire-probe.tar.gz && \ + blackfire php:install ENV XDEBUG_MODE=debug