Skip to content
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

Support ARM64 versions now Bref 2 has landed #411

Open
aran112000 opened this issue Mar 15, 2023 · 7 comments
Open

Support ARM64 versions now Bref 2 has landed #411

aran112000 opened this issue Mar 15, 2023 · 7 comments

Comments

@aran112000
Copy link
Contributor

aran112000 commented Mar 15, 2023

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.

@ThomasLabstep
Copy link

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.

@mnapoli
Copy link
Member

mnapoli commented Mar 30, 2023

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)

@ThomasLabstep
Copy link

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...

@mnapoli
Copy link
Member

mnapoli commented May 20, 2023

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.

@chekalsky
Copy link
Contributor

@mnapoli any chance this will be finished soon? In the meantime, is there an option for single-arch builds for at least most popular extensions? (e.g. gd?)

@mnapoli
Copy link
Member

mnapoli commented Sep 24, 2023

@chekalsky unfortunately I have made very little progress. Extensions are one of the most time-consuming things with Bref.

That's not something I want to do, but so far the only viable solution I see is to offer "official" extensions in the Bref project via a paid option (the bref-extra-extensions repo is community-maintained, I try to contribute when I can). That would allow to invest time to maintain the extensions properly. I'm not sure it would be a popular move though, so that's why I haven't done it yet.

@chekalsky
Copy link
Contributor

I understand. With reasonable pricing we would love to contribute, but for now it is not that big of a difference for us in migrating to graviton to offset full-scale contribution/support for that feature. Hope someone bigger could invest in that, or you would implement payments.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants