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

Serverless Invoke inside the docker #11

Open
piercus opened this issue Feb 5, 2018 · 2 comments
Open

Serverless Invoke inside the docker #11

piercus opened this issue Feb 5, 2018 · 2 comments

Comments

@piercus
Copy link
Contributor

piercus commented Feb 5, 2018

Hello @alexleonescalera,

On my point of view, there is one missing killer-feature

Currently i would like to have a local test which is running 'with' packaged's version of packaged library.

It will give the ability to test :

  • Packaging
  • Some optimization
  • CI workflow tests

To do this, I need to have the ability to invoke the function inside a 'built docker' before deploying.

Design proposal

I would like to design it like :

serverless invoke docker --function --function functionName --stage dev --region us-east-1 --log

This would call serverless invoke local --function --function functionName --stage dev --region us-east-1 --log inside a specific amazonlinux docker container with all the zip librairies in the right place.

What do you think ?
Are you interested to include this into serverless-ephemeral ?
Are you open to PR regarding this ?
Do you see any future limitations ?

@piercus
Copy link
Contributor Author

piercus commented Feb 19, 2018

I think https://aws.amazon.com/blogs/aws/new-aws-sam-local-beta-build-and-test-serverless-applications-locally/ can be interesting for the purpose of testing locally inside docker

@alexleonescalera
Copy link
Contributor

Interesting, thanks for sharing. I just found out there is a Serverless plugin for SAM: https://github.com/SAPessi/serverless-sam
I'll try (as time and my project allows) taking a look at their code and dig more into SAM, and see how we can achieve local testing for Serverless Ephemeral libraries without reinventing the wheel.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants