You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openwhisk.apache.org by gi...@git.apache.org on 2017/05/09 20:38:26 UTC

[GitHub] pritidesai commented on issue #157: Add manifest for support of the data processing cloudant use case.

pritidesai commented on issue #157: Add manifest for support of the data processing cloudant use case.
URL: https://github.com/apache/incubator-openwhisk-wskdeploy/issues/157#issuecomment-300294088
 
 
   Hi Daniel, 
   
   wskdeploy does create package binding named "openwhisk-cloudant" and rest of the components from manifest file.
   
   ```
   bin/wskdeploy -p ~/IBM/openwhisk-data-processing-cloudant
            ____      ___                   _    _ _     _     _
           /\   \    / _ \ _ __   ___ _ __ | |  | | |__ (_)___| | __
      /\  /__\   \  | | | | '_ \ / _ \ '_ \| |  | | '_ \| / __| |/ /
     /  \____ \  /  | |_| | |_) |  __/ | | | |/\| | | | | \__ \   <
     \   \  /  \/    \___/| .__/ \___|_| |_|__/\__|_| |_|_|___/_|\_\
      \___\/              |_|
   
   Packages:
   Name: data-processing
       bindings:
     * dependency: openwhisk-cloudant
       location: /whisk.system/cloudant
   
     * action: write-to-cloudant
       bindings:
           - CLOUDANT_USERNAME : "<username>"
           - CLOUDANT_PASSWORD : "<password>"
           - CLOUDANT_DATABASE : "<database>"
       annotations:
     * action: write-from-cloudant
       bindings:
       annotations:
     * action: write-from-cloudant-sequence
       bindings:
       annotations:
   
   
   Triggers:
   * trigger: image-uploaded
       bindings:
           - dbname : "<database>"
       annotations:
           - name: feed value: openwhisk-cloudant/changes
   
    Rules
   * rule: echo-images
       - trigger: image-uploaded
       - action: data-processing/write-from-cloudant-sequence
   
   Do you really want to deploy this? (y/N): y
   2017/05/09 13:33:23 Deploying package data-processing ...
   2017/05/09 13:33:23 Done!
   Deploying dependency openwhisk-cloudant ...
   2017/05/09 13:33:23 Deploying package bindingopenwhisk-cloudant ...
   2017/05/09 13:33:23 Done!
   2017/05/09 13:33:23 Deploying action data-processing/write-to-cloudant ...
   2017/05/09 13:33:23 Done!
   2017/05/09 13:33:23 Deploying action data-processing/write-from-cloudant ...
   2017/05/09 13:33:24 Done!
   2017/05/09 13:33:24 Deploying action data-processing/write-from-cloudant-sequence ...
   2017/05/09 13:33:24 Done!
   2017/05/09 13:33:24 Deploying trigger feed image-uploaded ...
   Done!
   Deploying rule echo-images ... Done!
   
   Deployment completed successfully.
   ```
   
   And here is my env. variables:
   
   ```
   $ env | grep CLOUDANT
   CLOUDANT_PASSWORD=<password>
   CLOUDANT_USERNAME=<username>
   CLOUDANT_HOST=<host>
   CLOUDANT_INSTANCE=openwhisk-cloudant
   CLOUDANT_DATABASE=<database>
   ```
   
   I am using latest wskdeploy from master and [manifest](https://github.com/IBM/openwhisk-data-processing-cloudant/blob/master/manifest.yaml) from master branch as well.
   
   What kind of error do you see?
 
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services