We already talked about Serverless Computing. Here is serverless computing test drive step by step guide for complete newbies with IBM OpenWhisk RSS package and IBM Bluemix free trial. It is really a funny new thing to play. We written the command line part for MacOS X users as IBM actually has no OS specific guide for the OpenWhisk RSS Package. Commonly on MacOS X we use iTerm2, Homebrew and ZSH.
Serverless Computing Test Drive : Needed Things
You need to install this command line package (if not already installed) :
1 | https://clis.ng.bluemix.net/ui/home.html |
You need to have an IBM Bluemix account. In your Bluemix control panel search with OpenWhisk. You’ll get the thing. Click it and download OpenWhisk CLI. I have slightly changed modified the method of usage of that OpenWhisk CLI iTerm2, Homebrew and ZSH combination.
---
Supposed you downloaded it to :
1 | /Users/abhishekghosh/Desktop/wsk |
then run :
1 | /Users/abhishekghosh/Desktop/wsk |
as command from iTerm2 instead of wsk
.
In other words, they will say wsk
as command, but you’ll run the path with command. If they say, run :
1 | wsk property get |
You’ll run :
1 | /Users/abhishekghosh/Desktop/wsk property get |
Because we have not downloaded wsk
at $HOME
or not integrated with the total CLI. Actually they have more easy package and examples to play with :
1 | https://github.com/IBM/openwhisk-rest-api-trigger |
At this moment, supported languages are JS/NodeJS, Swift, Java, Python etc. Now we need some Event Providers data emitter for analytics, IoT, mobile etc things. Cloudant is easy to test example. There is documentation :
1 | https://console-regional.ng.bluemix.net/docs/openwhisk/openwhisk_catalog.html#openwhisk_ecosystem |
Serverless Computing Test Drive : IBM OpenWhisk RSS Package
I kept a modified fork of that OpenWhisk RSS Package :
1 | https://github.com/AbhishekGhosh/incubator-openwhisk-package-rss |
There is another related thing around it :
1 | http://blog.ibmjstart.net/2016/08/31/subscribe-rss-feeds-using-new-openwhisk-package/ |
Clone that incubator-openwhisk-package-rss
:
1 2 3 | git clone https://github.com/AbhishekGhosh/incubator-openwhisk-package-rss cd incubator-openwhisk-package-rss ls |
Everything is like our regular PaaS like Heroku, RedHat OpenShift, Cloud Foundry. Those few points are not exactly easily written but otherwise the examples are enough. Practice with it.
Tagged With paperuri:(a8db84f96f14775cdd3e90d76fb0a1fa) , wsk commands