From 0490106f5f6b62e4bc5abf0d9540b1211196add9 Mon Sep 17 00:00:00 2001 From: Mathieu Rochette Date: Fri, 4 Dec 2026 14:56:50 +0000 Subject: [PATCH 1/2] chore(renovate): detect PHP in docs workflow, xdebug and phpDocumentor in Dockerfile - extend customManagers:githubActionsVersions and customManagers:dockerfileVersions - enable lockFileMaintenance - pin xdebug and phpDocumentor versions in .docker/Dockerfile - drop dead VARIANT build arg from devcontainer Co-Authored-By: Claude Opus 5.5 --- .devcontainer/devcontainer.json | 4 +--- .docker/Dockerfile | 8 ++++++-- .github/workflows/documentation.yml | 6 +++++- renovate.json | 9 +++++++-- 4 files changed, 19 insertions(+), 8 deletions(-) diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index f4d3641..47dbc9e 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -3,9 +3,7 @@ { "name": "texthtml/maybe", "build": { - "dockerfile": "../.docker/Dockerfile", - // Update 'VARIANT' to pick an Alpine version: 3.12, 3.13, 3.14, 3.15 - "args": { "VARIANT": "3.14" } + "dockerfile": "../.docker/Dockerfile" }, "workspaceMount": "source=${localWorkspaceFolder},target=/app,type=bind", "workspaceFolder": "/app", diff --git a/.docker/Dockerfile b/.docker/Dockerfile index 965dbc0..98bb2e0 100644 --- a/.docker/Dockerfile +++ b/.docker/Dockerfile @@ -20,9 +20,13 @@ RUN export DEBIAN_FRONTEND=noninteractive && apt-get update && \ apt-get install -y libzip-dev && \ docker-php-ext-install zip -RUN pecl install xdebug && docker-php-ext-enable xdebug +# renovate: datasource=github-tags depName=xdebug/xdebug versioning=regex:^(?\d+)\.(?\d+)\.(?\d+)(?[a-zA-Z]+\d*)?$ +ARG XDEBUG_VERSION=3.5.3 +RUN pecl install xdebug-${XDEBUG_VERSION} && docker-php-ext-enable xdebug -RUN curl -sLo /usr/bin/phpdoc https://phpdoc.org/phpDocumentor.phar && chmod +x /usr/bin/phpdoc +# renovate: datasource=github-releases depName=phpDocumentor/phpDocumentor extractVersion=^v(?.+)$ +ARG PHPDOCUMENTOR_VERSION=3.10.0 +RUN curl -fsSLo /usr/bin/phpdoc https://github.com/phpDocumentor/phpDocumentor/releases/download/v${PHPDOCUMENTOR_VERSION}/phpDocumentor.phar && chmod +x /usr/bin/phpdoc RUN mkdir /app && chown ${USERNAME}: /app diff --git a/.github/workflows/documentation.yml b/.github/workflows/documentation.yml index 7092acb..d910267 100644 --- a/.github/workflows/documentation.yml +++ b/.github/workflows/documentation.yml @@ -6,6 +6,10 @@ on: pull_request: branches: [ "main" ] +env: + # renovate: datasource=docker depName=php + PHP_VERSION: "8.3" + jobs: build: @@ -20,7 +24,7 @@ jobs: - name: Setup PHP uses: shivammathur/setup-php@v2 with: - php-version: 8.3 + php-version: ${{ env.PHP_VERSION }} ini-values: zend.assertions=1, assert.exception=1 - name: Validate composer.json and composer.lock diff --git a/renovate.json b/renovate.json index 5db72dd..b8b0912 100644 --- a/renovate.json +++ b/renovate.json @@ -1,6 +1,11 @@ { "$schema": "https://docs.renovatebot.com/renovate-schema.json", "extends": [ - "config:recommended" - ] + "config:recommended", + "customManagers:githubActionsVersions", + "customManagers:dockerfileVersions" + ], + "lockFileMaintenance": { + "enabled": true + } } From 989ff2a154ca38c292ac474b0e3f601b1ac14d91 Mon Sep 17 00:00:00 2001 From: Mathieu Rochette Date: Fri, 4 Dec 2026 15:06:29 +0000 Subject: [PATCH 2/2] fix(docker): build xdebug 3.6 from source so the dev image builds on PHP 8.6 Co-Authored-By: Claude Opus 5.5 --- .docker/Dockerfile | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/.docker/Dockerfile b/.docker/Dockerfile index 98bb2e0..606e474 100644 --- a/.docker/Dockerfile +++ b/.docker/Dockerfile @@ -20,11 +20,16 @@ RUN export DEBIAN_FRONTEND=noninteractive && apt-get update && \ apt-get install -y libzip-dev && \ docker-php-ext-install zip -# renovate: datasource=github-tags depName=xdebug/xdebug versioning=regex:^(?\d+)\.(?\d+)\.(?\d+)(?[a-zA-Z]+\d*)?$ -ARG XDEBUG_VERSION=3.5.3 -RUN pecl install xdebug-${XDEBUG_VERSION} && docker-php-ext-enable xdebug - -# renovate: datasource=github-releases depName=phpDocumentor/phpDocumentor extractVersion=^v(?.+)$ +# xdebug >= 3.6 is required for PHP 8.6 (pecl is no longer shipped in the php image) +# renovate: datasource=github-tags depName=xdebug/xdebug versioning=pep440 +ARG XDEBUG_VERSION=3.6.0alpha1 +RUN docker-php-source extract && \ + mkdir /usr/src/php/ext/xdebug && \ + curl -fsSL https://github.com/xdebug/xdebug/archive/refs/tags/${XDEBUG_VERSION}.tar.gz | tar xz --strip-components=1 -C /usr/src/php/ext/xdebug && \ + docker-php-ext-install xdebug && \ + docker-php-source delete + +# renovate: datasource=github-releases depName=phpDocumentor/phpDocumentor extractVersion=^v(?.*)$ ARG PHPDOCUMENTOR_VERSION=3.10.0 RUN curl -fsSLo /usr/bin/phpdoc https://github.com/phpDocumentor/phpDocumentor/releases/download/v${PHPDOCUMENTOR_VERSION}/phpDocumentor.phar && chmod +x /usr/bin/phpdoc