docker-lambda icon indicating copy to clipboard operation
docker-lambda copied to clipboard

Shift to using official images as base

Open mhart opened this issue 5 years ago • 5 comments

Now that SAM CLI is v1.0.0, AWS has published some official images, such as amazon/aws-sam-cli-emulation-image-java11

These don't seem to be documented anywhere, but it's probably better in the long run to look into using these instead of the current approach.

mhart avatar Jul 21 '20 21:07 mhart

Hi @mhart, over at bref we've been using your images to build PHP runtimes for Lambda. Thanks a lot for that!

I'm wondering whether we should switch to official AWS images, the thing is though I can't find them on Docker: https://hub.docker.com/search?q=amazon%20lambda&type=image The one you mention seems very specific, is there any equivalent to lambci/lambda and would you recommend using it?

Thanks a lot!

mnapoli avatar Oct 26 '20 10:10 mnapoli

Hey Matthieu, glad they've been useful to you for bref! I remember when I got PHP running many moons ago on Lambda (running Laravel's test suite no less 😆 ) – so it's great to see y'all have created a home for it.

In terms of official AWS images – I'd say check in in a month or two 😉

mhart avatar Oct 26 '20 12:10 mhart

Right!

And re Laravel tests, that's awesome! Reminds me of a project I started back then: a CI running on Lambda ^^ I managed to compile MySQL and run it inside Lambda, so that functional tests could run in 1000× parallelization but each test runner still has its own independent MySQL instance (and yes the data is lost, but for functional tests that's fine).

mnapoli avatar Oct 26 '20 12:10 mnapoli

Yeah, that's exactly what we do – with Postgres, Redis and Elasticsearch. I'll be talking more about this (running GitHub Actions on Lambda specifically) for reInvent 👍

mhart avatar Oct 26 '20 12:10 mhart

Oh yeahhh 😏

mnapoli avatar Oct 26 '20 17:10 mnapoli