fix(lychee,snipe-it): repair builds against Ubuntu 26.04 / PHP 8.5 base#2320
Draft
fix(lychee,snipe-it): repair builds against Ubuntu 26.04 / PHP 8.5 base#2320
Conversation
- lychee: Ubuntu 26.04 ships ImageMagick 7; policy.xml moved from /etc/ImageMagick-6/ to /etc/ImageMagick-7/. Update sed target path so the PDF coder policy injection succeeds. - snipe-it: Upstream snipe-it v8.4.1 composer.lock pins several deps (lcobucci/jwt 5.5.0, nette/schema 1.3.2, phpspec/prophecy 1.22.0) with a php upper bound of ~8.4.0. Resolute's php8.5 trips the platform check. Pass --ignore-platform-req=php to install the locked dep set unchanged on PHP 8.5. Both fixes are scoped to apps/<app>/ only. Validated with `docker buildx bake --print` and full local image-local builds. Refs https://github.com/trueforge-org/containerforge/actions/runs/25486727136 Agent-Logs-Url: https://github.com/trueforge-org/containerforge/sessions/cfb3fc2d-3a3d-4657-bf0c-71cb75042d92 Co-authored-by: Crow-Control <7613738+Crow-Control@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix CI release failure for lychee and snipe-it
fix(lychee,snipe-it): repair builds against Ubuntu 26.04 / PHP 8.5 base
May 7, 2026
Copilot stopped work on behalf of
Crow-Control due to an error
May 7, 2026 11:38
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Two apps still failed to build after the Ubuntu 24.04 → 26.04 / PHP 8.5 migration in #2292 (run 25486727136). Both are fallout from the new base, not from upstream version changes.
Changes
apps/lychee/Dockerfile— Resolute ships ImageMagick 7, so the policy file lives at/etc/ImageMagick-7/policy.xml. The PDF codersedinjection was still pointing at the IM6 path and aborted the layer withsed: can't read /etc/ImageMagick-6/policy.xml: No such file or directory.apps/snipe-it/Dockerfile— Upstream snipe-itv8.4.1'scomposer.lockcaps several locked deps (lcobucci/jwt 5.5.0,nette/schema 1.3.2,phpspec/prophecy 1.22.0) atphp ~8.4.0. Pass--ignore-platform-req=phpto install the locked dep set unchanged on php8.5 — avoidscomposer update, which would silently drift the dep graph away from upstream's lockfile.Notes for review
docker-bake.hclVERSIONs untouched.--ignore-platform-req=phpis the conservative choice here: the upper bound in the lock is artificial (the libraries themselves work fine on 8.5), and snipe-it has no Resolute-compatible alternative sinceppa:ondrej/phphas no Resolute release (per fix(php-apps): align package names with Ubuntu 26.04 base #2292).