Skip to content

Commit

Permalink
fix: install blackfire probe in image (#15)
Browse files Browse the repository at this point in the history
  • Loading branch information
EdieLemoine authored Oct 4, 2024
1 parent 0ebd451 commit 68ebb04
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion images/prestashop/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
3 changes: 2 additions & 1 deletion images/shopware/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down
3 changes: 2 additions & 1 deletion images/wordpress/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 68ebb04

Please sign in to comment.