brefphp/extra-php-extensions

Support ARM64 versions now Bref 2 has landed

aran112000 opened this issue · 7 comments

I'm no expert when it comes to docker and compiling these layers. What would be involved in shipping layers that support ARM64?

The key one that's blocking us from moving to ARM/Graviton is Relay/Redis.

I think the short term solution if you really want the ARM upgrade to save money is to build the layers you need in ARM using docker buildx and create a private AWS layer in your account.

Just use the existing Dockerfile code available in this repo. Double check if any of the code would crash in ARM architecture.

I'm going to wait.

Hi both,

To answer the original question, what needs to be done is to finish brefphp/aws-lambda-layers#62

Then we can work on updating the build here (it's quite a bit of work to be honest, not a matter of a few hours)

it's impossible/hard to build multi-platform images

I might say something really stupid but why are you trying to build a multi arch image for plugins?
Why not just ask devs to pick the right arch image? If I want redis ARM, why not just build an image that only supports ARM? Would that help?

Multi arch image sounds very convenient to have but the tooling is not really following it seems...

For the record I've continued looking into ARM today, here's an update: brefphp/aws-lambda-layers#62 (comment)

TL/DR slow progress, it will take more time.