Skip to content

Commit 19dac27

Browse files
authored
Enhanced debugging, automatic Xdebug profiling support (#1284)
1 parent e3c8eb0 commit 19dac27

File tree

11 files changed

+32
-11
lines changed

11 files changed

+32
-11
lines changed

.github/workflows/build-php-8-1.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,4 @@ jobs:
3333
push: true
3434
tags: |
3535
markoshust/magento-php:8.1-fpm
36-
markoshust/magento-php:8.1-fpm-6
36+
markoshust/magento-php:8.1-fpm-7

.github/workflows/build-php-8-2.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,4 @@ jobs:
3333
push: true
3434
tags: |
3535
markoshust/magento-php:8.2-fpm
36-
markoshust/magento-php:8.2-fpm-5
36+
markoshust/magento-php:8.2-fpm-6

.github/workflows/build-php-8-3.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,4 @@ jobs:
3333
push: true
3434
tags: |
3535
markoshust/magento-php:8.3-fpm
36-
markoshust/magento-php:8.3-fpm-3
36+
markoshust/magento-php:8.3-fpm-4

CHANGELOG.md

+9
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,15 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
55
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
66

7+
## [49.1.0] - 2024-01-31
8+
9+
### Added
10+
- Added `generated` and `var` folders as mounted directories in `compose.dev.yaml` for easier debugging [PR #1284](https://github.com/markshust/docker-magento/pull/1284)
11+
- Added options to `php.ini` to allow for automatic Xdebug profiling [PR #1284](https://github.com/markshust/docker-magento/pull/1284)
12+
13+
### Updated
14+
- Mailcatcher tagged to version 0.10.0 [PR #912](https://github.com/markshust/docker-magento/pull/912)
15+
716
## [49.0.0] - 2024-01-15
817

918
### Updated

README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,9 @@ View Dockerfiles for the latest tags:
3333
- [`1.22`, `1.22-0`](images/nginx/1.22)
3434
- [`1.24`, `1.24-0`](images/nginx/1.24)
3535
- [markoshust/magento-php (Docker Hub)](https://hub.docker.com/r/markoshust/magento-php/)
36-
- [`8.1-fpm`, `8.1-fpm-6`](images/php/8.1)
37-
- [`8.2-fpm`, `8.2-fpm-5`](images/php/8.2)
38-
- [`8.3-fpm`, `8.3-fpm-3`](images/php/8.3)
36+
- [`8.1-fpm`, `8.1-fpm-7`](images/php/8.1)
37+
- [`8.2-fpm`, `8.2-fpm-6`](images/php/8.2)
38+
- [`8.3-fpm`, `8.3-fpm-4`](images/php/8.3)
3939
- [`8.4-fpm-dev`](images/php/8.4)
4040
- [markoshust/magento-opensearch (Docker Hub)](https://hub.docker.com/r/markoshust/magento-opensearch/)
4141
- [`1.2`, `1.2-0`](images/opensearch/1.2)

compose/compose.dev.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@ services:
1212
- ./src/dev/tools/grunt/configs:/var/www/html/dev/tools/grunt/configs:cached
1313
- ./src/nginx.conf.sample:/var/www/html/nginx.conf:cached
1414
- ./src/package.json.sample:/var/www/html/package.json:cached
15+
- ./src/generated:/var/www/html/generated:cached
16+
- ./src/var:/var/www/html/var:cached
1517
#- ./src/auth.json:/var/www/html/auth.json:cached
1618
#- ./src/m2-hotfixes:/var/www/html/m2-hotfixes:cached
1719
#- ./src/patches:/var/www/html/patches:cached
18-
#- ./src/var/log:/var/www/html/var/log:cached
19-
#- ./src/var/report:/var/www/html/var/report:cached
2020

2121
phpfpm:
2222
volumes: *appvolumes

compose/compose.yaml

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
## Mark Shust's Docker Configuration for Magento
22
## (https://github.com/markshust/docker-magento)
33
##
4-
## Version 49.0.0
4+
## Version 49.1.0
55

66
## To use SSH, see https://github.com/markshust/docker-magento#ssh
77
## Linux users, see https://github.com/markshust/docker-magento#linux
@@ -30,7 +30,7 @@ services:
3030
#- "host.docker.internal:host-gateway"
3131

3232
phpfpm:
33-
image: markoshust/magento-php:8.3-fpm-3
33+
image: markoshust/magento-php:8.3-fpm-4
3434
volumes: *appvolumes
3535
env_file: env/phpfpm.env
3636
#extra_hosts: *appextrahosts
@@ -117,7 +117,7 @@ services:
117117
env_file: env/rabbitmq.env
118118

119119
mailcatcher:
120-
image: sj26/mailcatcher
120+
image: sj26/mailcatcher:v0.10.0
121121
ports:
122122
- "1080:1080"
123123

images/php/8.1/conf/php.ini

+3
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ date.timezone = UTC
77
xdebug.mode = off
88
xdebug.client_host = host.docker.internal
99
xdebug.idekey = PHPSTORM
10+
xdebug.start_with_request = trigger
11+
xdebug.output_dir = /var/www/html/var/profile
12+
xdebug.profiler_output_name = cachegrind.out.%t.%p
1013

1114
upload_max_filesize = 100M
1215
post_max_size = 100M

images/php/8.2/conf/php.ini

+3
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ date.timezone = UTC
77
xdebug.mode = off
88
xdebug.client_host = host.docker.internal
99
xdebug.idekey = PHPSTORM
10+
xdebug.start_with_request = trigger
11+
xdebug.output_dir = /var/www/html/var/profile
12+
xdebug.profiler_output_name = cachegrind.out.%t.%p
1013

1114
upload_max_filesize = 100M
1215
post_max_size = 100M

images/php/8.3/conf/php.ini

+3
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ date.timezone = UTC
77
xdebug.mode = off
88
xdebug.client_host = host.docker.internal
99
xdebug.idekey = PHPSTORM
10+
xdebug.start_with_request = trigger
11+
xdebug.output_dir = /var/www/html/var/profile
12+
xdebug.profiler_output_name = cachegrind.out.%t.%p
1013

1114
upload_max_filesize = 100M
1215
post_max_size = 100M

images/php/8.4/conf/php.ini

+3
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ date.timezone = UTC
77
xdebug.mode = off
88
xdebug.client_host = host.docker.internal
99
xdebug.idekey = PHPSTORM
10+
xdebug.start_with_request = trigger
11+
xdebug.output_dir = /var/www/html/var/profile
12+
xdebug.profiler_output_name = cachegrind.out.%t.%p
1013

1114
upload_max_filesize = 100M
1215
post_max_size = 100M

0 commit comments

Comments
 (0)