Skip to content

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