Last active
May 24, 2017 19:04
-
-
Save jimdelois/5dc0207c94500bfb3866adaecf4d3d3c to your computer and use it in GitHub Desktop.
Docker Run Override
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Place this in ./container/run/root/run_override.sh | |
echo "CUSTOM STARTUP: XDEBUG" | |
echo " | |
; Enable The Extension | |
zend_extension=xdebug.so | |
; Remote Debugging | |
xdebug.remote_enable=on | |
xdebug.remote_handler=dbgp | |
xdebug.remote_mode=req | |
; xdebug.remote_host=192.168.59.3 | |
xdebug.remote_connect_back=on | |
; Nesting level (updated for Behat) | |
xdebug.max_nesting_level=256 | |
; Profiling | |
xdebug.profiler_output_dir=/tmp/cachegrind | |
; This is for EVERY request (if set to 1) | |
xdebug.profiler_enable=0 | |
; Change the above to 0 and this to 1 to use the request params | |
xdebug.profiler_enable_trigger=1 | |
xdebug.profiler_output_name=pro2view-%u-%R.cachegrind | |
" > /etc/php/7.0/mods-available/xdebug.ini | |
phpenmod xdebug | |
# Assign the "www-data" user to the same UID that mounted-in folders get... | |
# This allows the web user to write XDebug cachegrind files to a folder | |
# mounted on the host machine. | |
#usermod -u 1000 www-data | |
#/web/init_web.sh | |
/run.sh |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Make sure to
chmod 755 run_override.sh