Skip to content

Commit

Permalink
Merge pull request #858 from Maks3w/patch-2
Browse files Browse the repository at this point in the history
[docker] Remove PHP8 workarounds for fpm-dev
  • Loading branch information
mnapoli authored Feb 7, 2021
2 parents 6e41f24 + 4099597 commit e94df97
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 22 deletions.
24 changes: 3 additions & 21 deletions runtime/layers/fpm-dev/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,29 +1,11 @@
ARG PHP_VERSION
FROM bref/build-php-$PHP_VERSION as build_extensions
# We need that variable so we re-import it again (args are cleared after each FROM)
ARG PHP_VERSION

RUN if [ "$PHP_VERSION" = "80" ] ; \
then \
echo "Installing xdebug from master to support PHP 8.0" \
&& git clone git:/xdebug/xdebug.git \
&& cd xdebug \
&& phpize \
&& ./configure --enable-xdebug \
&& make \
&& make install \
&& cd .. \
&& rm -rf xdebug ; \
else \
pecl install xdebug ; \
fi
RUN pecl install xdebug
RUN cp $(php -r "echo ini_get('extension_dir');")/xdebug.so /tmp

RUN if [ "$PHP_VERSION" != "80" ] ; \
then \
version=$(php -r "echo PHP_MAJOR_VERSION.PHP_MINOR_VERSION;") \
&& curl -A "Docker" -o /tmp/blackfire.so -L -s "https://packages.blackfire.io/binaries/blackfire-php/1.42.0/blackfire-php-linux_amd64-php-"$version".so" ; \
fi
RUN version=$(php -r "echo PHP_MAJOR_VERSION.PHP_MINOR_VERSION;") \
&& curl -A "Docker" -o /tmp/blackfire.so -L -s "https://packages.blackfire.io/binaries/blackfire-php/1.42.0/blackfire-php-linux_amd64-php-"$version".so" ;

FROM bref/php-${PHP_VERSION}-fpm as build_dev

Expand Down
2 changes: 1 addition & 1 deletion runtime/layers/tests.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
$devLayers = [
'bref/php-73-fpm-dev',
'bref/php-74-fpm-dev',
// 'bref/php-80-fpm-dev', // skip until blackfire gets supported for PHP 8.0
'bref/php-80-fpm-dev',
];
$devExtensions = [
'xdebug',
Expand Down

0 comments on commit e94df97

Please sign in to comment.