Add xdebug to 7.2

This commit is contained in:
Tony Blyler 2017-08-21 15:02:44 -04:00
parent 25e017e0c4
commit 0e223bc5a2
1 changed files with 10 additions and 3 deletions

View File

@ -1,7 +1,6 @@
FROM php:7.2-rc-zts FROM php:7.2-rc-zts
LABEL maintainer "Tony Blyler <me@tonyblyler.com>" LABEL maintainer "Tony Blyler <me@tonyblyler.com>"
# FIXME get xdebug working for PHP 7.2 (not officially supported yet)
# pecl install xdebug # pecl install xdebug
RUN apt-get update && \ RUN apt-get update && \
apt-get install -y \ apt-get install -y \
@ -17,9 +16,17 @@ RUN apt-get update && \
make install && \ make install && \
cd - && \ cd - && \
rm -Rf /tmp/pthreads && \ rm -Rf /tmp/pthreads && \
# xdebug install since pecl doesn't like php 7.2 yet for xdebug
git clone --depth=1 https://github.com/xdebug/xdebug -b master /tmp/xdebug && \
cd /tmp/xdebug && \
phpize && \
./configure && \
make && \
make install && \
cd - && \
rm -Rf /tmp/xdebug && \
docker-php-ext-install pcntl sockets && \ docker-php-ext-install pcntl sockets && \
docker-php-ext-enable pthreads docker-php-ext-enable pthreads xdebug
# docker-php-ext-enable xdebug
ENTRYPOINT ["docker-php-entrypoint"] ENTRYPOINT ["docker-php-entrypoint"]
CMD ["php", "-a"] CMD ["php", "-a"]