Skip to content

Commit 08a2f50

Browse files
authored
Merge pull request #474 from saw-jan/feat/allow-disabling-excimer-ext
feat: allow disabling excimer profiling
2 parents 99b4010 + 01d9fcf commit 08a2f50

2 files changed

Lines changed: 12 additions & 0 deletions

File tree

docker/bin/bootstrap.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,13 @@ configure_xdebug_mode() {
7272
fi
7373
}
7474

75+
configure_profiler() {
76+
if [ -f /usr/local/etc/php/conf.d/docker-php-ext-excimer.ini ] && [ "$PHP_EXCIMER_DISABLE" = "true" ]; then
77+
output "🔧 Disabling excimer php extension"
78+
mv /usr/local/etc/php/conf.d/docker-php-ext-excimer.ini /usr/local/etc/php/conf.d/docker-php-ext-excimer.ini.disabled
79+
fi
80+
}
81+
7582
wait_for_other_containers() {
7683
output "⌛ Waiting for other containers"
7784
retry_with_timeout() {
@@ -445,6 +452,7 @@ add_hosts() {
445452
setup() {
446453
update_permission
447454
configure_xdebug_mode
455+
configure_profiler
448456

449457
if is_installed || [[ ! -f $WEBROOT/config/config.php ]]
450458
then

example.env

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,10 @@ SQL=mysql
5353
# the entries none, develop, debug, trace, and profile.
5454
PHP_XDEBUG_MODE=develop
5555

56+
# Profiling with Excimer PHP extension.
57+
# By default, the excimer extension is enabled.
58+
# PHP_EXCIMER_DISABLE=true
59+
5660
# Docker socket location, use it when you run rootless Docker
5761
# Replace "1000" with the uid used by your Docker engine (default $(id -u))
5862
# DOCKER_SOCKET=/run/user/1000/docker.sock

0 commit comments

Comments
 (0)