Skip to content
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

Add --xdebug option and xdebug.dockerfile #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

milenvoutchev
Copy link

@milenvoutchev milenvoutchev commented Sep 28, 2020

@janole It would be nice to have the option to easily do php artisan docker:b with Xdebug for local development.
I propose to add a -X|--xdebug option.

I'm not so sure if adding a second Dockerfile is the best options though. What do you think?


RUN pecl install xdebug-2.9.8 \
&& docker-php-ext-enable xdebug \
&& echo "xdebug.remote_host = 10.254.254.254" >> /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini \
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Woher kommt die IP-Adresse?

Du kannst die DNS host.docker.internal angeben, über die Container immer den Host erreichen (https://docs.docker.com/docker-for-windows/networking/).

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@@ -0,0 +1,49 @@
FROM ${DOCKERIZE_BASE_IMAGE}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ich würde empfehlen Multi-Stage Builds zu verwenden, damit wir kein duplizierten Code haben.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cool, checke ich

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

Successfully merging this pull request may close these issues.

2 participants