From f130381cfefcc5fef5f39518f9b23b7929ce383e Mon Sep 17 00:00:00 2001 From: Bo-Yi Wu Date: Fri, 3 Jun 2016 14:04:33 +0800 Subject: [PATCH] install xdebug to generate coverage report for unit testing. Signed-off-by: Bo-Yi Wu --- php-fpm/Dockerfile-55 | 6 +++++- php-fpm/Dockerfile-56 | 6 +++++- php-fpm/Dockerfile-70 | 4 ++++ 3 files changed, 14 insertions(+), 2 deletions(-) diff --git a/php-fpm/Dockerfile-55 b/php-fpm/Dockerfile-55 index 93d82c52..e139c7cf 100644 --- a/php-fpm/Dockerfile-55 +++ b/php-fpm/Dockerfile-55 @@ -15,10 +15,14 @@ RUN docker-php-ext-install \ pdo_mysql \ pdo_pgsql -#Install memcached +# Install memcached RUN pecl install memcached \ && docker-php-ext-enable memcached +# Install xdebug +RUN pecl install xdebug \ + && docker-php-ext-enable xdebug + RUN usermod -u 1000 www-data WORKDIR /var/www/laravel diff --git a/php-fpm/Dockerfile-56 b/php-fpm/Dockerfile-56 index 5da34488..27d00189 100644 --- a/php-fpm/Dockerfile-56 +++ b/php-fpm/Dockerfile-56 @@ -15,10 +15,14 @@ RUN docker-php-ext-install \ pdo_mysql \ pdo_pgsql -#Install memcached +# Install memcached RUN pecl install memcached \ && docker-php-ext-enable memcached +# Install xdebug +RUN pecl install xdebug \ + && docker-php-ext-enable xdebug + RUN usermod -u 1000 www-data WORKDIR /var/www/laravel diff --git a/php-fpm/Dockerfile-70 b/php-fpm/Dockerfile-70 index 61f21d07..063ea620 100644 --- a/php-fpm/Dockerfile-70 +++ b/php-fpm/Dockerfile-70 @@ -23,6 +23,10 @@ RUN curl -L -o /tmp/memcached.tar.gz "https://github.com/php-memcached-dev/php-m && docker-php-ext-install memcached \ && rm /tmp/memcached.tar.gz +# Install xdebug +RUN pecl install xdebug \ + && docker-php-ext-enable xdebug + RUN usermod -u 1000 www-data WORKDIR /var/www/laravel