apache / apache/openwhisk-wskdeploy
Support a "Deploy to OpenWhisk" button
- Dominant language
- Go
- Stars
- 75
- Forks
- 73
- PR merge metrics
- No merged PRs in 30d
Description
As discussed with @csantanapr and @mrutkows we should create a shared service (perhaps even an OpenWhisk web action) that can deploy resources from an arbitrary GitHub OpenWhisk demo application repo that has a `wskdeploy` manifest file in it.
This should be modeled on the existing tool for [deploying samples to Bluemix Cloud Foundry apps](https://www.ibm.com/blogs/bluemix/2016/01/deploy-to-bluemix-button-example/).
From the end user point of view (for example, someone who is looking to deploy their first sample app) they will see a button in the README (or other location, such a blog post) that says "Deploy to OpenWhisk." When clicked, the service will create all the resources the user needs to see what the application can do.
In addition, this service can also be used to automate TravisCI build testing for sample apps, to ensure they work with the latest OpenWhisk API.
A flow for this shared service might look like this:
1. User clicks the "Deploy to OpenWhisk" button
2. Link invokes an HTTP call to some endpoint along with sample app GitHub repo URL and the current logged in user context.
3. Service behind that HTTP call spins up a Docker container to clone the given repo, build the latest `wskdeploy` tool, and execute it with the repo's manifest file.
4. When done, the user should be redirected to the Bluemix console where they can see all of their actions.
This tool can start with the first 3 OpenWhisk 101 projects, but should easily be generic to be used for any repo with a manifest file.
- https://github.com/IBM/openwhisk-data-processing-message-hub/issues/5
- https://github.com/IBM/openwhisk-serverless-apis/issues/5
- https://github.com/IBM/openwhisk-data-processing-cloudant/issues/5
Contributor guide
Assessment
This issue has not been assessed yet.