adhocore / docker-phpfpm

Lightweight (~100mb) Docker PHP FPM for both arm and amd arch on alpine 3.17+ with PHP8.0.30/8.1.29/8.2.23/8.3.11 (also 7.4.33) with ~80-84 useful extensions (you can disable not necessary ones easily)
https://hub.docker.com/r/adhocore/phpfpm
MIT License
99 stars 28 forks source link

Add apple m1 chip support #81

Closed ozgurozalp closed 1 year ago

adhocore commented 1 year ago

isn't it already supported? if not what is the error or output in macos?

ozgurozalp commented 1 year ago

@adhocore

Maybe the problem is apple's 'M1 pro' chip ? IDK

image
adhocore commented 1 year ago

ah right it might be for the chip more than OS

ozgurozalp commented 1 year ago

There is a solution, right?

adhocore commented 1 year ago

we need to rebuild it in different architecture - doable but need to invest some time which i lack currently

ref: https://github.com/adhocore/docker-lemp/issues/34

adhocore commented 1 year ago

which php version you using? i will try to fix for that first as a test PoC

adhocore commented 1 year ago

anyways i have tried to build for all versions and it takes long time - give some hours at least. you can track here https://github.com/adhocore/docker-phpfpm/actions/runs/4642799387/jobs/8216991572 the build order is 8.2 -> 8.1 -> 8.0 -> 7.4

adhocore commented 1 year ago

@ozgurozalp php 8.2 is available for arm arch, could you check it out? thanks

adhocore commented 1 year ago

seems failed for 8.1 and below, but you can try out 8.2

ozgurozalp commented 1 year ago

@adhocore yeah its working now(8.2) thank you

adhocore commented 1 year ago

8.1 in progress again https://github.com/adhocore/docker-phpfpm/actions/runs/4645137403/jobs/8220822301

ozgurozalp commented 1 year ago

8.2 not running on "Ubuntu 20.04.6 LTS (Focal Fossa)"

local 👍🏽 prod 👎🏽

Error

image
adhocore commented 1 year ago

@ozgurozalp it is fixed for 8.2, 8.1, 8.0 so could you recheck? 7.4 is broken but since it is outdated it is not that big of an issue

ozgurozalp commented 1 year ago

@adhocore I checked 8.0 and above, there is no problem

adhocore commented 1 year ago

cool, closing this, also now i will be publishing arm builds for lemp fullstack as well