File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,8 @@ ENV XDEBUG_AUTOSTART=false
16
16
ENV XDEBUG_CONNECT_BACK=true
17
17
ENV XDEBUG_ENABLED=false
18
18
ENV XDEBUG_IDEKEY="docker"
19
- ENV XDEBUG_VERSION="-2.8.1"
19
+ ENV XDEBUG_VERSION=""
20
+ ENV XDEBUG_REMOTE_PORT=9000
20
21
ENV PHP_EXTENSION_WDDX=1
21
22
ENV PHP_OPENSSL=1
22
23
@@ -38,7 +39,7 @@ RUN echo "---> Adding Redis" && \
38
39
docker-php-ext-enable redis
39
40
40
41
RUN echo "---> Adding xDebug" && \
41
- pecl install xdebug${XDEBUG_VERSION}
42
+ pecl install " xdebug${XDEBUG_VERSION}"
42
43
43
44
RUN echo "---> Adding Zip" && \
44
45
pecl install zip && \
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ if [[ ${XDEBUG_ENABLED} == true ]]; then
5
5
echo " xdebug.var_display_max_depth=5" | sudo tee -a /usr/local/etc/php/conf.d/xdebug.ini
6
6
echo " xdebug.idekey=${XDEBUG_IDEKEY} " | sudo tee -a /usr/local/etc/php/conf.d/xdebug.ini
7
7
echo " xdebug.remote_enable=1" | sudo tee -a /usr/local/etc/php/conf.d/xdebug.ini
8
- echo " xdebug.remote_port=9000 " | sudo tee -a /usr/local/etc/php/conf.d/xdebug.ini
8
+ echo " xdebug.remote_port=${XDEBUG_REMOTE_PORT} " | sudo tee -a /usr/local/etc/php/conf.d/xdebug.ini
9
9
10
10
[[ ${XDEBUG_AUTOSTART} == true ]] && {
11
11
echo " xdebug.remote_autostart=on" | sudo tee -a /usr/local/etc/php/conf.d/xdebug.ini
You can’t perform that action at this time.
0 commit comments