-
-
Notifications
You must be signed in to change notification settings - Fork 388
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
Installed PHP extension is not loading in mac M2 chip #924
Comments
Have you tried to add RUN php -m At the end of your dockerfile? |
Yes, I've tried.
|
Here is dockerfile that can produce above issue. **
WORKDIR ${WORK_DIR}
RUN apk update; \
apk upgrade; \
apk add --no-cache \
bash \
curl \
supervisor \
nodejs \
npm \
libsodium-dev \
librdkafka-dev \
g++ \
make \
autoconf \
&& apk del autoconf g++ make \
&& rm -rf /var/cache/apk/* /tmp/* /var/tmp/* \
RUN install-php-extensions \
redis \
rdkafka \
exif \
pdo_mysql \
zip \
sockets \
pcntl \
opcache \
mongodb \
gd \
opcache \
intl \
bcmath
RUN install-php-extensions @composer-${COMPOSER_VERSION}
RUN php -m
** |
I am facing this issue today. It's working for a long time with mac m2 chip. I am using orbstack and tried to use docker desktop and same issue is still occured. So that I am revered back to the orbstack due to the perf and file system issue of docker desktop. |
docker version Server: Docker Engine - Community |
This can be related with #896? I am currently using
image and it pull the latest version of this installer. https://github.com/dunglas/frankenphp/blob/3d065eda3587ceed32a132f11c3d97c7b57c0317/Dockerfile#L24 |
From your log file it seems that install-php-extensions is not executed: the build process breaks before it's called. If so, the issue is not related to install-php-extensions |
I found it's platform compact issue btw. If i disable Rosetta in M2. It's working again. |
Version of install-php-extensions
v.2.2.14
Error description
When I check the php modules with
php -m
installed extensions are not even showing.The text was updated successfully, but these errors were encountered: