Skip to content

Commit 5627d6b

Browse files
committed
Tests: Add xdebug to the docker setup.
1 parent b758b2d commit 5627d6b

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

Dockerfile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
FROM php:8.4-cli-alpine
22

3-
RUN apk add --no-cache make
3+
RUN apk add --no-cache make autoconf build-base linux-headers
4+
5+
RUN pecl channel-update pecl.php.net && \
6+
pecl install xdebug-3.4.0 && \
7+
docker-php-ext-enable xdebug
48

59
RUN php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" \
610
&& php -r "if (hash_file('sha384', 'composer-setup.php') === 'dac665fdc30fdd8ec78b38b9800061b4150413ff2e3b6f88543c636f7cd84f6db9189d43a81e5503cda447da73c7e5b6') { echo 'Installer verified'.PHP_EOL; } else { echo 'Installer corrupt'.PHP_EOL; unlink('composer-setup.php'); exit(1); }" \

compose.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,5 @@ services:
66
restart: no
77
command: make test
88
volumes:
9-
- ./:/opt/vom
9+
- ./:/opt/vom
10+
- ./xdebug.ini:/usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini

xdebug.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
zend_extension=xdebug
2-
xdebug.idekey=website-config
2+
xdebug.idekey=zolex-vom
33
xdebug.mode=debug
44
xdebug.start_with_request=On
55
xdebug.client_port=9000

0 commit comments

Comments
 (0)