Skip to content
This repository was archived by the owner on Jan 15, 2023. It is now read-only.
This repository was archived by the owner on Jan 15, 2023. It is now read-only.

Require image for ARM64 architecture #357

@odidev

Description

@odidev

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions