Repository navigation
Conversation
Contributor
There was a problem hiding this comment.
🔵 Needs a closer look
The external PIE build stage affects amd64/arm64 release images, while arm64 and PHP 8.6 runtime validation—including the timezonedb/module smoke check—remains pending.
No open issues 🎉
What changed in this PR
Updates the container build to install the timezonedb PHP extension with PIE, supporting PHP 8.6 images where PECL is no longer available.
Changes:
- Adds a configurable PIE build stage and copies the PIE executable into the final image.
- Replaces PECL installation and manual enablement with PIE's automated installation flow.
| File | Description |
|---|---|
| Dockerfile | Adds a configurable PIE build stage and copies the PIE executable into the final image. |
| bin/build_sys.sh | Replaces PECL installation and manual enablement with PIE installation using automatic build-tool setup. |
Review effort: Lite
Collaborator
|
At this time, I prefer to be aligned with upstream (being librebooking/librebooking). Thus, either upstream includes timezonedb in composer (and there is nothing to do on the docker side) or upstream doesn’t and docker shouldn’t do anything as well |
PHP 8.6 images no longer ship PEAR/pecl, so `pecl install timezonedb` fails there. PIE is the official successor and also works on 8.4/8.5.
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.
Why
The official
php:8.6-*images no longer ship PEAR/pecl, so building withVERSION_PHP=8.6.xfails atpecl install timezonedb(pecl: not found).PIE is the official successor.
Changes
Dockerfile: add apiestage (ghcr.io/php/pie:${VERSION_PIE}, defaultbin)and copy
/pieinto the image, same pattern as composer.bin/build_sys.sh:pecl install timezonedb+docker-php-ext-enable→
pie install --auto-install-build-tools pecl/timezonedb(PIE enables it itself).Tested locally
🤖 Generated with Claude Code