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 for AWS Lambda builds #366

Open
dazza-codes opened this issue Dec 1, 2020 · 1 comment
Open

Support for AWS Lambda builds #366

dazza-codes opened this issue Dec 1, 2020 · 1 comment

Comments

@dazza-codes
Copy link

dazza-codes commented Dec 1, 2020

AWS announced https://aws.amazon.com/blogs/aws/new-for-aws-lambda-container-image-support/

  • support for docker images up to 10 Gb

AFAICT, the python manylinux platforms are CentOS?, whereas AWS lambci have been based on Debian/Ubuntu (this might be updated). It would be curious to evaluate the LSB-release compatibility of these two variants and whether AWS Lambda might be considered a common "OS" target for multibuild? This issue may be moot, since the new announcement proposes that arbitrary base images can be deployed, so long as they bundle a runtime API client.

According to the announcement, it may be possible to deploy a manylinux container that also bundles a Lambda Runtime Interface Client:

You can deploy your own arbitrary base images to Lambda, for example images based
on Alpine or Debian Linux. To work with Lambda, these images must implement the 
Lambda Runtime API. To make it easier to build your own base images, we are 
releasing Lambda Runtime Interface Clients implementing the Runtime API for all 
supported runtimes. These implementations are available via native package managers, 
so that you can easily pick them up in your images, and are being shared with the 
community using an open source license.

This links to

This boils down to:

pip install awslambdaric

I've been hacking away at a project to squeeze some larger python libraries into an AWS Lambda layer, which may not be necessary, but it might have some relevant tooling for building AWS lambda images since the layer builds use the lambci docker images:

See also the AWS annoucement for OSX instances in EC2

@mattip
Copy link
Collaborator

mattip commented Dec 1, 2020

Not sure how this is connected to this repo, which will always use the docker images produced for https://github.com/pypya/manylinux as the base image for the build setup. Or were you recommending them for the test images?

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

2 participants