File tree Expand file tree Collapse file tree 2 files changed +3
-17
lines changed Expand file tree Collapse file tree 2 files changed +3
-17
lines changed Original file line number Diff line number Diff line change @@ -81,8 +81,9 @@ RUN echo "---> Fix permissions" \
81
81
COPY configs/ports.conf /etc/apache2/ports.conf
82
82
COPY configs/logs.conf /etc/apache2/conf-enabled/logs.conf
83
83
COPY apache-run.sh /usr/bin/apache-run
84
+ COPY ./bin /usr/bin/
84
85
85
- RUN chmod a+x /usr/bin/apache-run
86
+ RUN chmod a+x /usr/bin/apache-run /usr/bin/xdebug-set-mode
86
87
87
88
USER www-data
88
89
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
3
3
if [[ ${XDEBUG_ENABLED} == true ]]; then
4
- sudo rm -f /usr/local/etc/php/conf.d/xdebug.ini || true
5
- echo " zend_extension=xdebug.so" | sudo tee -a /usr/local/etc/php/conf.d/xdebug.ini
6
- echo " xdebug.var_display_max_depth=5" | sudo tee -a /usr/local/etc/php/conf.d/xdebug.ini
7
- echo " xdebug.idekey=${XDEBUG_IDEKEY} " | sudo tee -a /usr/local/etc/php/conf.d/xdebug.ini
8
- echo " xdebug.mode=debug" | sudo tee -a /usr/local/etc/php/conf.d/xdebug.ini
9
- echo " xdebug.client_port=${XDEBUG_REMOTE_PORT:- $XDEBUG_CLIENT_PORT } " | sudo tee -a /usr/local/etc/php/conf.d/xdebug.ini
10
-
11
- export XDEBUG_AUTOSTART=${XDEBUG_AUTOSTART:- $XDEBUG_START_WITH_REQUEST }
12
- [[ ${XDEBUG_AUTOSTART} == true ]] && {
13
- echo " xdebug.start_with_request=yes" | sudo tee -a /usr/local/etc/php/conf.d/xdebug.ini
14
- } || echo " xdebug.start_with_request=no" | sudo tee -a /usr/local/etc/php/conf.d/xdebug.ini
15
-
16
- export XDEBUG_CONNECT_BACK=${XDEBUG_CONNECT_BACK:- $XDEBUG_DISCOVER_CLIENT_HOST }
17
- [[ ${XDEBUG_CONNECT_BACK} == true ]] && {
18
- echo " xdebug.discover_client_host=1" | sudo tee -a /usr/local/etc/php/conf.d/xdebug.ini
19
- } || echo " xdebug.discover_client_host=0" | sudo tee -a /usr/local/etc/php/conf.d/xdebug.ini
4
+ sudo xdebug-set-mode ${XDEBUG_MODE:- debug}
20
5
fi
21
6
22
7
if [[ ${NR_ENABLED} == true ]]; then
You can’t perform that action at this time.
0 commit comments