Skip to content

Commit

Permalink
Add remote configuration for Xdebug
Browse files Browse the repository at this point in the history
  • Loading branch information
olvlvl committed Nov 25, 2018
1 parent d744022 commit 74e4529
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
7 changes: 7 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,13 @@ RUN apk add --update --no-cache make $PHPIZE_DEPS && \
pecl install redis xdebug-2.5.5 && \
docker-php-ext-enable redis xdebug

RUN echo $'\
xdebug.remote_autostart=1\n\
xdebug.remote_enable=1\n\
xdebug.remote_host=host.docker.internal\n\
' >> /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini

ENV PHP_IDE_CONFIG serverName=cldr-tests
ENV COMPOSER_ALLOW_SUPERUSER 1

RUN curl -o /tmp/composer-setup.php https://getcomposer.org/installer && \
Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -973,7 +973,8 @@ later be cleaned with the `make clean` command.

To ensure tests are running with the minimum requirements, it is advised to run them inside the
provided container. The container is started with the `make test-container` command. Once inside the
container, `make test` and `make test-coverage` can be used.
container, `make test` and `make test-coverage` can be used. Xdebug is available in the container
and ready for debugging, it uses the servername `cldr-tests` and the absolute path `/app`.

The package is continuously tested by [Travis CI](http://about.travis-ci.org/).

Expand Down

0 comments on commit 74e4529

Please sign in to comment.