openfaas / templates

OpenFaaS Classic templates
https://www.openfaas.com
MIT License
276 stars 228 forks source link

Make templates multi-arch #227

Closed utsavanand2 closed 3 years ago

utsavanand2 commented 3 years ago

Signed-off-by: Utsav Anand utsavanand2@gmail.com

Description

Change the following templates to support multi-arch buildx builds: go node node12 php7 python python3 python3-debian ruby

Motivation and Context

The PR will add the freedom to build and deploy OpenFaaS function to multiple CPU architectures. Functions can be built locally or a CI env like Github Actions which supports buildx, and deployed on most common architectures, like amd64, arm64, or armv7

Which issue(s) this PR fixes

Fixes #226

How Has This Been Tested?

Screenshot 2020-10-25 at 9 20 27 PM Screenshot 2020-10-25 at 9 26 57 PM Screenshot 2020-10-25 at 9 39 47 PM Screenshot 2020-10-25 at 10 09 58 PM Screenshot 2020-10-25 at 10 16 00 PM Screenshot 2020-10-25 at 10 43 09 PM

Types of changes

Impact to existing users

No user impact to existing users because of the tests we have been running for the incubator templates, running functions across environments and architectures.

Checklist:

alexellis commented 3 years ago

@Waterdrips you should be able to use this change along with faas-cli publish to get multi-arch functions for OpenFaaS Cloud. Can you have a play and let us know if anything else needs changing?