Skip to content

Install timezonedb with PIE instead of pecl - #229

Open
lucs7 wants to merge 1 commit into
LibreBooking:masterfrom
lucs7:use-pie
Open

lucs7 wants to merge 1 commit into
LibreBooking:masterfrom
lucs7:use-pie

Conversation

@lucs7

@lucs7 lucs7 commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor

Why

The official php:8.6-* images no longer ship PEAR/pecl, so building with
VERSION_PHP=8.6.x fails at pecl install timezonedb (pecl: not found).
PIE is the official successor.

Changes

  • Dockerfile: add a pie stage (ghcr.io/php/pie:${VERSION_PIE}, default bin)
    and copy /pie into 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

Variant Build Smoke test
hadolint, shellcheck, shfmt pass –
PR workflow: PHP 8.4, amd64, develop pass pass
Release: PHP 8.5.13, amd64, v7.2.0 pass modules only, 5/5
Develop: PHP 8.5.13, amd64 pass modules only, 5/5
PHP 8.6.0, amd64 pass pass
Release: PHP 8.5.13, linux/arm64 (QEMU), v7.2.0 pass pass
Release: PHP 8.5.12, linux/arm64 native (Raspberry Pi), v7.2.0 pass pass

🤖 Generated with Claude Code

@lucs7
lucs7 marked this pull request as ready for review November 21, 2026 23:19
Copilot AI lite review requested due to automatic review settings November 21, 2026 23:19

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 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

@colisee

colisee commented Nov 22, 2026

Copy link
Copy Markdown
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants