Skip to content

PHPUnit/XDebug support #13

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
karllhughes opened this issue Sep 12, 2018 · 0 comments
Open

PHPUnit/XDebug support #13

karllhughes opened this issue Sep 12, 2018 · 0 comments

Comments

@karllhughes
Copy link
Contributor

I use this image as a base image for many projects, but it doesn't include PHPUnit or XDebug.

I don't think the core image should, but what do you think about adding another folder for a development version of the image? Right now I'm just extending this image like this:

FROM jguyomard/laravel-php:7.2

RUN curl https://phar.phpunit.de/phpunit-7.0.phar -L -o phpunit.phar && \
    chmod +x phpunit.phar && mv phpunit.phar /usr/local/bin/phpunit && \
    apk add --no-cache $PHPIZE_DEPS && \
    pecl install xdebug-2.6.1 && \
    docker-php-ext-enable xdebug

CMD phpunit

Just a thought. I don't mind maintaining my own image, just figured others might want PHPUnit and XDebug as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant