Skip to content

Commit afe9352

Browse files
committed
feat: allow disabling excimer profiling
Signed-off-by: Saw-jan <saw.jan.grg3e@gmail.com>
1 parent a972fb3 commit afe9352

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
@@ -68,6 +68,13 @@ configure_xdebug_mode() {
6868
fi
6969
}
7070

71+
configure_profiler() {
72+
if [ -f /usr/local/etc/php/conf.d/docker-php-ext-excimer.ini ] && [ "$PHP_EXCIMER_DISABLE" = "true" ]; then
73+
output "🔧 Disabling excimer php extension"
74+
mv /usr/local/etc/php/conf.d/docker-php-ext-excimer.ini /usr/local/etc/php/conf.d/docker-php-ext-excimer.ini.disabled
75+
fi
76+
}
77+
7178
wait_for_other_containers() {
7279
output "⌛ Waiting for other containers"
7380
retry_with_timeout() {
@@ -372,6 +379,7 @@ add_hosts() {
372379
setup() {
373380
update_permission
374381
configure_xdebug_mode
382+
configure_profiler
375383

376384
if is_installed || [[ ! -f $WEBROOT/config/config.php ]]
377385
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)