Can someone please guide me through as how to implement CUPS (cloud foundary user provided services), with the Predix Dashboard seed?
Answer by Manish Jain · May 25, 2017 at 07:56 AM
Hi @gurleen.k@tcs.com, CUPS variables are accessible the same way we access VCAP variables.
Creating the CUPS service with the env variables you want to configure.
cf cups sample-common-dev-services -p '{"rserv_http_api_uri":"https://rabbitmq-management-35.system.asv-pr.ice.predix.io/api/","uaa_uri":"https://12345678-8892-4566-93333-sjsdkjd.predix-uaa.run.asv-pr.ice.predix.io","blobstore_url":"https://bucket-12345678-9876-567-93a4-7883d40cd5b4.store.gecis.io","blobstore_access_key_id":"xxxxx3506-fffff-rrrrr--1","blobstore_secret_access_key":"12345678-5678-41234-456-4556666"}'
While deploying the SEED application on Predix bind the application with CUPS service sample-common-dev-services manually or using manifest. In your app.js or node file you can now access these variable using CFEnv package in node or manually parsing
https://docs.cloudfoundry.org/buildpacks/node/node-service-bindings.html
https://www.npmjs.com/package/cfenv
Hope that helps
thanks Manish! I will try this and shall let you know in case i face any challenge.
Setting up the Dashboard Seed project: bower error 4 Answers
"grunt serve" for Dashboard Seed App giving Errors- ServerResponse has no method 'Status' 4 Answers
Dashboard Seed Initial Requirements 3 Answers
Angular JS UI-Router resolve issue with predix - seed. 1 Answer
user login issue with predix seed 6 Answers