-
Notifications
You must be signed in to change notification settings - Fork 150
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PHP Extensions Mismatch: App Engine Standard <> gcr.io/buildpacks/builder #393
Comments
This is some what "as designed". The base images in the GAE context are designed to capture more use cases supporting we applications. The "generic" builders (gcr.io/buildpacks/builder) are much more stripped down. @iamacarpet I'm assuming you're looking for the same set of extensions so you have some portability between GAE and manually building & deploying to Cloud Run / k8s? You can try using gcr.io/gae-runtimes/buildpacks/google-gae-22/php/builder with |
Thanks @jama22 , Yes, exactly - see my answer to your other reply here for a full explanation: But yes, broadly, full portability & equality between App Engine and Cloud Run, since that is the direction we are being pushed in (and have been for some time). I have tried using the Pulling the environment variables from the App Engine Standard build seemed to make it choose the run image, but ran me into more errors down the line - I ended up giving up on that, as it was wasting too much time. |
There's a difference between the builder and the run image. The extensions are enabled on the run image. You can specify the run image specifically via
|
@iamacarpet you can try:
I keep on looking for a better way. I would expect that |
Describe the bug
The PHP extensions included in the main builder (
gcr.io/buildpacks/builder
) don't seem to match those on App Engine Standard.Tested against PHP 8.3, some of the versions don't match and
opentelemetry
is entirely missing.Additional context
How are you using GCP buildpacks?
pack
and thegcr.io/buildpacks/builder
Did this used to work?
First time testing / unknown
What language is your project primarily written in?
(Python/Java/Node.js/Go/etc.)
PHP 8+, specifically testing PHP 8.3
Steps To Reproduce
Steps to reproduce the behavior:
pack build sample-php --builder=gcr.io/buildpacks/builder
docker run --entrypoint /bin/bash -it sample-php
ls -lh /layers/google.php.runtime/php/lib/php/extensions/no-debug-non-zts-20230831/
vs
docker run --entrypoint /bin/bash -it gcr.io/gae-runtimes/buildpacks/php83/run:latest
ls -lh /usr/lib/php/extensions/no-debug-non-zts-20230831/
Expected behavior
A clear and concise description of what you expected to happen.
At the most basic level, expect
opentelmetry.so
to be present, and when loading PHP, all of the module versions to match.Actual behavior
What actually happened?
opentelemetry.so
isn't present, version numbers mismatch.If applicable, add screenshots / logs / error messages
The text was updated successfully, but these errors were encountered: