From e4737f6675b19ae790f401ad608293b0c287ba1a Mon Sep 17 00:00:00 2001 From: Gustavo Freze Date: Sat, 24 Oct 2026 10:31:40 -0300 Subject: [PATCH 1/2] chore: Point the PHP tooling image at its floating alias. --- Makefile | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index b7768e1..6eb7505 100644 --- a/Makefile +++ b/Makefile @@ -10,8 +10,7 @@ TTY := $(shell [ -t 0 ] && echo -it) HOST_USER := $(shell id -u):$(shell id -g) PHP_VERSION := $(shell sed -n 's/.*"php": *"^\([0-9]*\.[0-9]*\)".*/\1/p' composer.json) -IMAGE_VERSION := 1.0.4 -PHP_IMAGE := gustavofreze/php:${PHP_VERSION}-cli-${IMAGE_VERSION} +PHP_IMAGE := gustavofreze/php:${PHP_VERSION}-cli WORKSPACE := /var/www/html BCMATH_INI := $${PHP_INI_DIR}/conf.d/docker-php-ext-bcmath.ini @@ -58,7 +57,7 @@ show-outdated: ## Show outdated direct dependencies @${DOCKER_RUN} composer outdated --direct .PHONY: show-image -show-image: ## Show the pinned PHP tooling image +show-image: ## Show the PHP tooling image @echo ${PHP_IMAGE} .PHONY: clean From 26b5704e06525f37630d4873897a8a7a2ed3a122 Mon Sep 17 00:00:00 2001 From: Gustavo Freze Date: Sat, 24 Oct 2026 10:36:53 -0300 Subject: [PATCH 2/2] fix: Unload bcmath through a copied scan directory, since the image conf.d is read only. --- Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 6eb7505..576ad14 100644 --- a/Makefile +++ b/Makefile @@ -12,7 +12,8 @@ HOST_USER := $(shell id -u):$(shell id -g) PHP_VERSION := $(shell sed -n 's/.*"php": *"^\([0-9]*\.[0-9]*\)".*/\1/p' composer.json) PHP_IMAGE := gustavofreze/php:${PHP_VERSION}-cli WORKSPACE := /var/www/html -BCMATH_INI := $${PHP_INI_DIR}/conf.d/docker-php-ext-bcmath.ini +WITHOUT_BCMATH := cp -r $${PHP_INI_DIR}/conf.d /tmp/conf.d && rm /tmp/conf.d/docker-php-ext-bcmath.ini \ + && PHP_INI_SCAN_DIR=/tmp/conf.d DOCKER_RUN = docker run ${PLATFORM} -u ${HOST_USER} --rm ${TTY} --net=host \ -e COMPOSER_HOME=/tmp/composer \ @@ -42,7 +43,7 @@ test-file: ## Run tests for a specific file (usage: make test-file FILE=ClassNam .PHONY: tests-without-bcmath tests-without-bcmath: ## Run unit tests on the pure PHP backend, with the extension unloaded - @${DOCKER_RUN} sh -c 'rm -f ${BCMATH_INI} && php ./vendor/bin/phpunit --configuration phpunit.xml --no-coverage tests' + @${DOCKER_RUN} sh -c '${WITHOUT_BCMATH} php ./vendor/bin/phpunit --configuration phpunit.xml --no-coverage tests' .PHONY: review review: ## Run lint and static analysis