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

Extend OpenWhisk Runtime Support #3454

Merged
merged 3 commits into from
Apr 13, 2017
Merged

Extend OpenWhisk Runtime Support #3454

merged 3 commits into from
Apr 13, 2017

Conversation

jthomas
Copy link
Contributor

@jthomas jthomas commented Apr 11, 2017

What did you implement:

New version (0.6) of the OpenWhisk plugin will include support for non-Node.js runtimes. I have added templates to the create plugin and also updated the documentation with new features.

How did you implement it:

Trivial changes to the create plugin for the new templates. Docs updated based upon the new features.

How can we verify it:

sls create --template openwhisk-python
sls create --template openwhisk-swift

Todos:

  • Write tests
  • Write documentation
  • Fix linting errors
  • Make sure code coverage hasn't dropped
  • Provide verification config / commands / resources
  • Enable "Allow edits from maintainers" for this PR
  • Update the messages below

Is this ready for review?: YES
Is it a breaking change?: NO

@pmuens
Copy link
Contributor

pmuens commented Apr 12, 2017

Thanks @jthomas 👍

Will be reviewed ASAP!

This example will generate scaffolding for a service with `openwhisk` as a provider and `nodejs` as runtime. The scaffolding
will be generated in the `my-new-service` directory. This directory will be created if not present. Otherwise Serverless
will use the already present directory.
This example will generate scaffolding for a service with `openwhisk` as a provider and `nodejs` as runtime. The scaffolding will be generated in the `my-new-service` directory. This directory will be created if not present. Otherwise Serverless will use the already present directory.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Which is a correct one? Line 56 says nodejs:6 runtime and line 66 says just nodejs runtime. But commands look same

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Either works, you can just use nodejs for the default version or add an explicit version tag.

@@ -18,6 +18,8 @@ This runs your code locally by emulating the Apache OpenWhisk environment. Pleas
serverless invoke local --function functionName
```

__*Please note that only the JavaScript and Python runtimes are supported with this command.*__

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So how is the runtime called? JavaScript runtime (line 21) or NodeJs runtime (line 65) ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can change this to be "Node.js" but I assume most people will understand what this refers too?

| :--------------------------------------- | :------ |
| [OpenWhisk Node Simple](https://github.com/serverless/examples/tree/master/openwhisk-node-simple) <br/> Boilerplate project repository for OpenWhisk provider with Serverless Framework. | nodeJS |
| [OpenWhisk Python Simple](https://github.com/serverless/examples/tree/master/openwhisk-python-simple) <br/> Boilerplate project repository for OpenWhisk provider with Serverless Framework. | python |
| [OpenWhisk Swift Simple](https://github.com/serverless/examples/tree/master/openwhisk-swift-simple) <br/> Boilerplate project repository for OpenWhisk provider with Serverless Framework. | swift |

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we mention versions of runtimes here?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's not mentioned for the other projects.

Copy link
Contributor

@pmuens pmuens left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the update @jthomas 👍

and thanks @vladgolubev for your review!

Really like how the OpenWhisk provider plugin adds more and more functionality! 💯

I just pushed a minor fix and will merge once the build succeeds. :shipit:

@pmuens pmuens merged commit fea2699 into serverless:master Apr 13, 2017
@pmuens pmuens modified the milestone: 1.12 Apr 13, 2017
@jthomas
Copy link
Contributor Author

jthomas commented Apr 13, 2017

🎉 🎉 🎉

Thanks for the quick turn around on this!

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

Successfully merging this pull request may close these issues.

None yet

3 participants