-
Notifications
You must be signed in to change notification settings - Fork 225
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
Enhancement: faas-cli local-run should run a build first #953
Comments
Related to: #952 |
As you start with wanting Contrast that with |
Thanks for commenting @rgee0 The name "local-run" could change to something else, it's currently' an experimental command. Why does it exist? To develop functions within Docker, without deploying to faasd / openfaas on K8s, which introduces additional delay. For that purpose, the build will always be required and has caught me several times, including in my own development and on the community call. The command is experimental so:
|
Shortening the feedback loop is always welcomed, especially so if you can easily remember how to achieve it. I wonder, if you haven't already considered it, whether |
The command that scaffold uses is In any case, names can be iterated on, code can be moved. Was this a feature you'd be interested in contributing partially or wholly? |
@alexellis I would like to work on this. |
Expected Behaviour
When running
faas-cli local-run
, the function should be built prior to running, to ensure the latest changes are presentCurrent Behaviour
I'd like to run
faas-cli local-build
or perhaps we could consider renaming tofaas-cli local
?And then have a build run using the existing cobra command/logic, followed by the current behaviour of
faas-cli local-run
executing after that.Why do you need this?
I got caught out where I had run a build, changed code, then ran local-run, but didn't see my changes.
Who is this for?
Developers writing functions for OpenFaaS CE/Pro
List All Possible Solutions and Workarounds
For now I just change my command to:
faas-cli build && faas-cli local-run
Which Solution Do You Recommend?
Open to input, but I think we should try to invoke the cobra command for builds for consistency.
The text was updated successfully, but these errors were encountered: