#9 - Build xberg PHP extension alongside kreuzberg in 8.5 image#10
Open
nikola-jovanovic-php wants to merge 1 commit into
Open
#9 - Build xberg PHP extension alongside kreuzberg in 8.5 image#10nikola-jovanovic-php wants to merge 1 commit into
nikola-jovanovic-php wants to merge 1 commit into
Conversation
3 tasks
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.
Closes #9
Changes (
8.5/Dockerfileonly)xberg-builderstage: buildscrates/xberg-phpfrom xberg-io/xberg at pinnedv1.0.0-rc.28(no stable tag exists yet — bumpXBERG_VERSIONwhen one lands), same shape and retry loop as the kreuzberg stage. xberg vendors Tesseract statically (nolibtesseract-devneeded), but itsheicfeature links system libheif ≥ 1.21, so the stage builds libheif 1.23.0 from source (trixie apt ships 1.19.8) — mirroring xberg's own CI.xberg.socommented out inconf.d/xberg.ini(same pattern as kreuzberg), copieslibheif.so.1to/usr/local/lib(onLD_LIBRARY_PATH), and adds the codec runtime packages (libde265-0 libaom3 libx265-215 libdav1d7 libnuma1) so the extension is loadable when consumers enable it.kreuzberg-dev/kreuzberg-lts— the old repo was renamed toxberg-io/xberg, so thev4.9.8clone fails and uncached 8.5 builds are currently broken on master. Same pinned version, same crate layout.Verification (local arm64 build)
docker buildsucceeds; xberg compile ≈ 18 min native.extension=xbergenabled →php -mlistsxberg;class_exists('Xberg\CacheStats')→true.ldd xberg.so: zero unresolved libs;libheif.so.1resolves to the bundled 1.23 copy.kreuzberg.sostill fully resolved.8.5-arm64(+~340 MB — the.sostatically bundles ONNX/candle/Tesseract).