Comments (8)
@yhanini can you do a PR, also I would like more
To me xdebug
can reduce performances, then I would love to be able to enable/disable it very easily. (using the provisionning/engine/php.ini
+ ez up
=> today in your code installation is triggered by the env var but installation could be in the image actually
- action 1: doc a PR on https://github.com/Plopix/docker-php-ez-engine to add
xdebug
but disabled by default
XDEBUG_REMOTE_AUTOSTART and XDEBUG_REMOTE_CONNECT_BACK could be hardcode right? not sure if we should let then in the docker-compose file. same with XDEBUG_REMOTE_HOST is that the "host" then I think that could be automated.
=> actually I think all those value should be put in the php.ini
we don't even need a script
Those are just xdebug properties
- action 2: add the correct configuration (commented out) in the
php.ini
To sum up:
At then end we should have the xdebug properties all setup in the provisionning/engine/php.ini
(with xdebug disabled by default)
And to enable it, the procedure should be to just enable it in this provisionning/engine/php.ini
and run ez up
.
=> that is it!
from launchpad.
I ask to add more settings configurable by ENVs, my example xdebug settings without docker:
[xdebug]
xdebug.max_nesting_level = 500
xdebug.remote_autostart = 0
xdebug.remote_enable = 1
xdebug.remote_host = localhost
xdebug.remote_port = 9000
xdebug.idekey = "PHPStorm"
xdebug.profiler_enable_trigger = 1
; default cachegrind.out.%p
xdebug.profiler_output_name = cachegrind.out.%s
xdebug.profiler_output_dir = "/tmp/xdebug/profiler/output"
xdebug.trace_output_dir = "/tmp/xdebug/trace/output"
xdebug.remote_cookie_expire_time = 7200
so for me important are enable/disable Xdebug by Cookie or GET, for it will be needed in container
XDEBUG_IDEKEY
XDEBUG_REMOTE_ENABLE
and xdebug.max_nesting_level should be configurable too, so
XDEBUG_MAX_NESTING_LEVEL
from launchpad.
XDEBUG_REMOTE_AUTOSTART and XDEBUG_REMOTE_CONNECT_BACK could be hardcode right?
I did not understand what you mean hardcoded but for me XDEBUG_REMOTE_AUTOSTART must able to set value by .env and/or docker-compose.yml
from launchpad.
PR : #43
from launchpad.
from launchpad.
enjoy ! #44
Don't forget to get the last engine: docker pull plopix/docker-php-ez-engine:7.2
from launchpad.
@kemoc you can now do all the config that you want through the php.ini
from launchpad.
Thank you. Great work!
from launchpad.
Related Issues (20)
- ez create doesn't work HOT 3
- Varnish not working on Apple M1 HOT 2
- Engine not working correctly on M1 HOT 9
- [Security] Workflow main-ci.yaml is using vulnerable action actions/checkout
- Docker Compose v2 - read /dev/stderr: bad file descriptor triggered by proc_open HOT 3
- Missing dependency
- Ibexa 4.1 installation HOT 1
- update platform.sh config (and varnish)
- ERROR: Solr: invalid port specification: "65983" HOT 1
- Improve ezPlatform version detection
- On 1.6.0 solr 7 is installed, breaking configuration for eZP 2.5.x HOT 1
- SSH Key HOT 2
- Solar install broken HOT 1
- ERROR 1114 (HY000) at line 8834: The table 'xxxx' is full HOT 2
- yarn watch not working HOT 3
- Elastic Search for Enterprise ONLY
- max_allowed_packet error HOT 1
- mysql data lost after docker rm -f $(docker ps -a -q) HOT 6
- ez command permission denied after update
- Add a new command init_ibexa HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from launchpad.