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

ISSUE-46: Update xdebug configs for esmero-php-fpm #47

Merged
merged 1 commit into from
Aug 10, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 11 additions & 13 deletions esmero-php-fpm/Dockerfile.dev
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# build with:
# sudo docker build -f Dockerfile.dev -t esmero/php-8.0-fpm:1.0.0-dev-multiarch . --no-cache
# sudo docker build -f Dockerfile.dev -t esmero/php-8.0-fpm:1.1.0-dev-multiarch . --no-cache
# from https://www.drupal.org/docs/8/system-requirements/drupal-8-php-requirements

FROM esmero/php-8.0-fpm:1.0.0-multiarch
FROM esmero/php-8.0-fpm:1.1.0-multiarch

# install the extensions we need for xdebug install
RUN set -eux; \
Expand All @@ -15,16 +15,14 @@ RUN set -eux; \
apk del --no-cache .build-deps

RUN { \
echo 'zend_extension=/usr/local/lib/php/extensions/no-debug-non-zts-20190902/xdebug.so'; \
echo 'xdebug.remote_enable=1'; \
echo 'zend_extension=/usr/local/lib/php/extensions/no-debug-non-zts-20200930/xdebug.so'; \
echo 'xdebug.remote_handler=dbgp'; \
echo 'xdebug.remote_port=9999'; \
echo 'xdebug.remote_autostart=0'; \
echo 'xdebug.remote_connect_back=0'; \
echo 'xdebug.remote_timeout=500'; \
echo 'xdebug.profiler_enable = 0'; \
echo 'xdebug.profiler_enable_trigger = 1'; \
echo 'xdebug.client_port=9999'; \
echo 'xdebug.start_with_request=yes'; \
echo 'xdebug.connect_timeout_ms=500'; \
echo 'xdebug.mode=develop,debug'; \
echo 'xdebug.start_with_request=trigger'; \
echo 'xdebug.idekey=archipelago'; \
echo "xdebug.remote_host=host.docker.internal"; \
echo "xdebug.remote_log=/tmp/xdebug.log"; \
} > /usr/local/etc/php/conf.d/xdebug.ini
echo "xdebug.client_host=host.docker.internal"; \
echo "xdebug.log=/tmp/xdebug.log"; \
} > /usr/local/etc/php/conf.d/10-xdebug.ini