浏览代码

Enhanced debugging, automatic Xdebug profiling support (#1284)

Mark Shust 4 月之前
父节点
当前提交
19dac27fd6

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

@@ -33,4 +33,4 @@ jobs:
           push: true
           tags: |
             markoshust/magento-php:8.1-fpm
-            markoshust/magento-php:8.1-fpm-6
+            markoshust/magento-php:8.1-fpm-7

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

@@ -33,4 +33,4 @@ jobs:
           push: true
           tags: |
             markoshust/magento-php:8.2-fpm
-            markoshust/magento-php:8.2-fpm-5
+            markoshust/magento-php:8.2-fpm-6

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

@@ -33,4 +33,4 @@ jobs:
           push: true
           tags: |
             markoshust/magento-php:8.3-fpm
-            markoshust/magento-php:8.3-fpm-3
+            markoshust/magento-php:8.3-fpm-4

+ 9 - 0
CHANGELOG.md

@@ -4,6 +4,15 @@ All notable changes to this project will be documented in this file.
 The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
 and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
 
+## [49.1.0] - 2024-01-31
+
+### Added
+- 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)
+- Added options to `php.ini` to allow for automatic Xdebug profiling [PR #1284](https://github.com/markshust/docker-magento/pull/1284)
+
+### Updated
+- Mailcatcher tagged to version 0.10.0 [PR #912](https://github.com/markshust/docker-magento/pull/912)
+
 ## [49.0.0] - 2024-01-15
 
 ### Updated

+ 3 - 3
README.md

@@ -33,9 +33,9 @@ View Dockerfiles for the latest tags:
   - [`1.22`, `1.22-0`](images/nginx/1.22)
   - [`1.24`, `1.24-0`](images/nginx/1.24)
 - [markoshust/magento-php (Docker Hub)](https://hub.docker.com/r/markoshust/magento-php/)
-  - [`8.1-fpm`, `8.1-fpm-6`](images/php/8.1)
-  - [`8.2-fpm`, `8.2-fpm-5`](images/php/8.2)
-  - [`8.3-fpm`, `8.3-fpm-3`](images/php/8.3)
+  - [`8.1-fpm`, `8.1-fpm-7`](images/php/8.1)
+  - [`8.2-fpm`, `8.2-fpm-6`](images/php/8.2)
+  - [`8.3-fpm`, `8.3-fpm-4`](images/php/8.3)
   - [`8.4-fpm-dev`](images/php/8.4)
 - [markoshust/magento-opensearch (Docker Hub)](https://hub.docker.com/r/markoshust/magento-opensearch/)
   - [`1.2`, `1.2-0`](images/opensearch/1.2)

+ 2 - 2
compose/compose.dev.yaml

@@ -12,11 +12,11 @@ services:
       - ./src/dev/tools/grunt/configs:/var/www/html/dev/tools/grunt/configs:cached
       - ./src/nginx.conf.sample:/var/www/html/nginx.conf:cached
       - ./src/package.json.sample:/var/www/html/package.json:cached
+      - ./src/generated:/var/www/html/generated:cached
+      - ./src/var:/var/www/html/var:cached
       #- ./src/auth.json:/var/www/html/auth.json:cached
       #- ./src/m2-hotfixes:/var/www/html/m2-hotfixes:cached
       #- ./src/patches:/var/www/html/patches:cached
-      #- ./src/var/log:/var/www/html/var/log:cached
-      #- ./src/var/report:/var/www/html/var/report:cached
 
   phpfpm:
     volumes: *appvolumes

+ 3 - 3
compose/compose.yaml

@@ -1,7 +1,7 @@
 ## Mark Shust's Docker Configuration for Magento
 ## (https://github.com/markshust/docker-magento)
 ##
-## Version 49.0.0
+## Version 49.1.0
 
 ## To use SSH, see https://github.com/markshust/docker-magento#ssh
 ## Linux users, see https://github.com/markshust/docker-magento#linux
@@ -30,7 +30,7 @@ services:
       #- "host.docker.internal:host-gateway"
 
   phpfpm:
-    image: markoshust/magento-php:8.3-fpm-3
+    image: markoshust/magento-php:8.3-fpm-4
     volumes: *appvolumes
     env_file: env/phpfpm.env
     #extra_hosts: *appextrahosts
@@ -117,7 +117,7 @@ services:
     env_file: env/rabbitmq.env
 
   mailcatcher:
-    image: sj26/mailcatcher
+    image: sj26/mailcatcher:v0.10.0
     ports:
       - "1080:1080"
 

+ 3 - 0
images/php/8.1/conf/php.ini

@@ -7,6 +7,9 @@ date.timezone = UTC
 xdebug.mode = off
 xdebug.client_host = host.docker.internal
 xdebug.idekey = PHPSTORM
+xdebug.start_with_request = trigger
+xdebug.output_dir = /var/www/html/var/profile
+xdebug.profiler_output_name = cachegrind.out.%t.%p
 
 upload_max_filesize = 100M
 post_max_size = 100M

+ 3 - 0
images/php/8.2/conf/php.ini

@@ -7,6 +7,9 @@ date.timezone = UTC
 xdebug.mode = off
 xdebug.client_host = host.docker.internal
 xdebug.idekey = PHPSTORM
+xdebug.start_with_request = trigger
+xdebug.output_dir = /var/www/html/var/profile
+xdebug.profiler_output_name = cachegrind.out.%t.%p
 
 upload_max_filesize = 100M
 post_max_size = 100M

+ 3 - 0
images/php/8.3/conf/php.ini

@@ -7,6 +7,9 @@ date.timezone = UTC
 xdebug.mode = off
 xdebug.client_host = host.docker.internal
 xdebug.idekey = PHPSTORM
+xdebug.start_with_request = trigger
+xdebug.output_dir = /var/www/html/var/profile
+xdebug.profiler_output_name = cachegrind.out.%t.%p
 
 upload_max_filesize = 100M
 post_max_size = 100M

+ 3 - 0
images/php/8.4/conf/php.ini

@@ -7,6 +7,9 @@ date.timezone = UTC
 xdebug.mode = off
 xdebug.client_host = host.docker.internal
 xdebug.idekey = PHPSTORM
+xdebug.start_with_request = trigger
+xdebug.output_dir = /var/www/html/var/profile
+xdebug.profiler_output_name = cachegrind.out.%t.%p
 
 upload_max_filesize = 100M
 post_max_size = 100M