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

Add "serverless run" core plugin to the Serverless Framework #12

Open
pmuens opened this issue Jul 19, 2017 · 0 comments
Open

Add "serverless run" core plugin to the Serverless Framework #12

pmuens opened this issue Jul 19, 2017 · 0 comments
Assignees
Labels

Comments

@pmuens
Copy link
Contributor

pmuens commented Jul 19, 2017

This plugin should add the run plugin which features the serverless run command.

The plugins should do the following when the serverless run command is executed:

  1. Check if the local event gateway binary is downloaded on machine
  2. Check if the version of the local event gateway is up to date
  3. Re-download local event gateway it it’s not already downloaded / version is out of date
  4. Check if the local emulator binary is downloaded on machine
  5. Check if the version of the local emulator is up to date
  6. Re-download local emulator it it’s not already downloaded / version is out of date
  7. If local event gateway is not already running → Spawn new forked process and run local event gateway
  8. Increment count of running local event gateway instances by 1
  9. If local emulator is not already running → Spawn new forked process and run local emulator
  10. Increment count of running local emulator instances by 1
  11. Enter interactive terminal session where the user can enter events as JSON and send the events to the local event gateway by pressing enter

Log information (e.g. that the binary is downloaded, or the binary is starting) should be printed on the users terminal throughout the initialization process.

The following should happen if the user presses ctrl + c to exit the terminal session:

  1. Decrement count of running local event gateway and local emulator binaries by 1. Kill process of respective binary if it reaches the count 0 after decrementing.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants