serverless-package-python-functions icon indicating copy to clipboard operation
serverless-package-python-functions copied to clipboard

Feature Request : support "invoke local" and deploy a single function

Open iharush opened this issue 7 years ago • 6 comments

Add support for "invoke local" Serverless command, invoke the function in the package folder structure with common_files and dependencies on root dir.

Run on local machine will probably need to use pip without docker.

In addition, it would be great to be able to deploy only one function. serverless deploy -f functionName

Thanks, Itay

iharush avatar Nov 08 '17 09:11 iharush

How about the progress of this feature?

For my macbook pro and developing service, deploying using serverless deploy (includes about 40 functions per 1 service) takes about 30 minutes.

But sometimes I want to fix a small bug and test on cloud. In this case, the requirements are packaging ONLY one function and uploading ONLY one function (this is already implemented, using serverless deploy function -f funtionName).

I want serverless deploy -f functionName to create only ONE functionName's package and upload (replace).

Thanks, Ken

k-ogawa-1988 avatar Apr 15 '18 10:04 k-ogawa-1988

+1 on this feature

MrTeale avatar Jun 27 '18 15:06 MrTeale

I wrote a simple patch for this (and an extra pip upgrade inside docker container) but since there are so many dangling PRs on this repo I put it on Github Gists instead: https://gist.github.com/mehdisadeghi/7b17a8eb5d5db2ae8de722d469d4a174. Give it a try, instructions on the Gist page. Edit: it contains only the invoke local part and just enough to run a single function.

mehdisadeghi avatar Aug 16 '18 14:08 mehdisadeghi

+1 on the feature request to be able to deploy a single function.

jamesrgrace avatar Aug 13 '19 01:08 jamesrgrace

Edit: it contains only the invoke local part and just enough to run a single function.

@mehdisadeghi : can you clarify - does this patch implement the single function deploy, or only the invoke local part?

jamesrgrace avatar Aug 13 '19 01:08 jamesrgrace

@jamesrgrace it is only for invoking functions locally. It also upgrades pip inside the local container.

mehdisadeghi avatar Aug 13 '19 12:08 mehdisadeghi