Skip to content

Commit a2e2781

Browse files
Merge pull request #69 from wilma-digital/main
[HOTFIX] add xdebug coverage to toolbox container
2 parents c6289d3 + 851f682 commit a2e2781

File tree

4 files changed

+8
-4
lines changed

4 files changed

+8
-4
lines changed

src/8.1/src/Dockerfile

+2-1
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ EXPOSE 9000
181181

182182
FROM php AS toolbox
183183

184-
ARG TOOLBOX_RUNTIME_REQUIREMENTS="curl git redis-tools mariadb-client percona-toolkit rsync openssh-client vim.tiny"
184+
ARG TOOLBOX_RUNTIME_REQUIREMENTS="curl git redis-tools mariadb-client percona-toolkit rsync openssh-client vim.tiny php-xdebug"
185185
ARG TOOLBOX_RUNTIME_REQUIREMENTS_EXTRA=""
186186
ARG TOOLBOX_BUILD_REQUIREMENTS=""
187187
ARG TOOLBOX_BUILD_REQUIREMENTS_EXTRA=""
@@ -193,6 +193,7 @@ RUN /usr/local/bin/docker-install-requirements toolbox; \
193193
composer require deployer/deployer; \
194194
composer update; \
195195
echo "export PATH=$PATH:/var/www/html/vendor/bin" >> /etc/profile; \
196+
echo "xdebug.mode=coverage" > /usr/local/etc/php/conf.d/xdebug-coverage.ini; \
196197
/usr/local/bin/docker-layer-clean
197198

198199
CMD ["php", "-a"]

src/8.2/src/Dockerfile

+2-1
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ EXPOSE 9000
181181

182182
FROM php AS toolbox
183183

184-
ARG TOOLBOX_RUNTIME_REQUIREMENTS="curl git redis-tools mariadb-client percona-toolkit rsync openssh-client vim.tiny"
184+
ARG TOOLBOX_RUNTIME_REQUIREMENTS="curl git redis-tools mariadb-client percona-toolkit rsync openssh-client vim.tiny php-xdebug"
185185
ARG TOOLBOX_RUNTIME_REQUIREMENTS_EXTRA=""
186186
ARG TOOLBOX_BUILD_REQUIREMENTS=""
187187
ARG TOOLBOX_BUILD_REQUIREMENTS_EXTRA=""
@@ -193,6 +193,7 @@ RUN /usr/local/bin/docker-install-requirements toolbox; \
193193
composer require deployer/deployer; \
194194
composer update; \
195195
echo "export PATH=$PATH:/var/www/html/vendor/bin" >> /etc/profile; \
196+
echo "xdebug.mode=coverage" > /usr/local/etc/php/conf.d/xdebug-coverage.ini; \
196197
/usr/local/bin/docker-layer-clean
197198

198199
CMD ["php", "-a"]

src/8.3/src/Dockerfile

+2-1
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ EXPOSE 9000
181181

182182
FROM php AS toolbox
183183

184-
ARG TOOLBOX_RUNTIME_REQUIREMENTS="curl git redis-tools mariadb-client percona-toolkit rsync openssh-client vim.tiny"
184+
ARG TOOLBOX_RUNTIME_REQUIREMENTS="curl git redis-tools mariadb-client percona-toolkit rsync openssh-client vim.tiny php-xdebug"
185185
ARG TOOLBOX_RUNTIME_REQUIREMENTS_EXTRA=""
186186
ARG TOOLBOX_BUILD_REQUIREMENTS=""
187187
ARG TOOLBOX_BUILD_REQUIREMENTS_EXTRA=""
@@ -193,6 +193,7 @@ RUN /usr/local/bin/docker-install-requirements toolbox; \
193193
composer require deployer/deployer; \
194194
composer update; \
195195
echo "export PATH=$PATH:/var/www/html/vendor/bin" >> /etc/profile; \
196+
echo "xdebug.mode=coverage" > /usr/local/etc/php/conf.d/xdebug-coverage.ini; \
196197
/usr/local/bin/docker-layer-clean
197198

198199
CMD ["php", "-a"]

src/8.4/src/Dockerfile

+2-1
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ EXPOSE 9000
181181

182182
FROM php AS toolbox
183183

184-
ARG TOOLBOX_RUNTIME_REQUIREMENTS="curl git redis-tools mariadb-client percona-toolkit rsync openssh-client vim.tiny"
184+
ARG TOOLBOX_RUNTIME_REQUIREMENTS="curl git redis-tools mariadb-client percona-toolkit rsync openssh-client vim.tiny php-xdebug"
185185
ARG TOOLBOX_RUNTIME_REQUIREMENTS_EXTRA=""
186186
ARG TOOLBOX_BUILD_REQUIREMENTS=""
187187
ARG TOOLBOX_BUILD_REQUIREMENTS_EXTRA=""
@@ -193,6 +193,7 @@ RUN /usr/local/bin/docker-install-requirements toolbox; \
193193
composer require deployer/deployer; \
194194
composer update; \
195195
echo "export PATH=$PATH:/var/www/html/vendor/bin" >> /etc/profile; \
196+
echo "xdebug.mode=coverage" > /usr/local/etc/php/conf.d/xdebug-coverage.ini; \
196197
/usr/local/bin/docker-layer-clean
197198

198199
CMD ["php", "-a"]

0 commit comments

Comments
 (0)