lambci / docker-lambda

Docker images and test runners that replicate the live AWS Lambda environment

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Require image for ARM64 architecture

odidev opened this issue · comments

Lambda has added official support for ARM (https://aws.amazon.com/blogs/aws/aws-lambda-functions-powered-by-aws-graviton2-processor-run-your-functions-on-arm-and-get-up-to-34-better-price-performance/) now. So, I tried building lambci/lambda images on my arm64 local machine but to build any image here, first we need to build base image lambci/lambda-base-2. I am facing below error while building the base image lambci/lambda-base-2 on both AMD64 and ARM64 platform.


RUN yum --installroot=/opt reinstall -y filesystem-3.2-25.amzn2.0.4     setup-2.8.71-10.amzn2.0.1 glibc-2.26-39.amzn2 glibc-common-2.26-39.amzn2 &&   yum --installroot=/opt clean all 

---> Running in 5818f171e7d2 

Loaded plugins: ovl, priorities 

Repository 'amzn2-core': Error parsing config: Error parsing "mirrorlist = '$awsproto://$amazonlinux.$awsregion.$awsdomain/$releasever/$product/$target/aarch64/mirror.list'": URL must be http, ftp, file or https not "" 

Repository 'amzn2-core-source': Error parsing config: Error parsing "mirrorlist = '$awsproto://$amazonlinux.$awsregion.$awsdomain/$releasever/$product/$target/SRPMS/mirror.list'": URL must be http, ftp, file or https not "" 

Repository 'amzn2-core-debuginfo': Error parsing config: Error parsing "mirrorlist = '$awsproto://$amazonlinux.$awsregion.$awsdomain/$releasever/$product/$target/debuginfo/aarch64/mirror.list'": URL must be http, ftp, file or https not "" 

There are no enabled repos. 

Run "yum repolist all" to see the repos you have. 

To enable Red Hat Subscription Management repositories: 

     subscription-manager repos --enable <repo> 

To enable custom repositories: 

     yum-config-manager --enable <repo> 

I have also found in issue section one contributor has forked and made some changes and build the docker images for arm64 for these lambci/lambda images. I tried to build the forked repository as well but here also, I am facing the same issue as above.

Forked repository link: https://github.com/mLupine/docker-lambda

It will be very helpful if the image is released for the ARM64 platform. If required, I am happy to contribute. But as a start, Can you please provide me with some pointers on the above issues?

Do you have any plans on releasing arm64 images?