Skip to content

Latest commit

 

History

History
43 lines (29 loc) · 1.14 KB

File metadata and controls

43 lines (29 loc) · 1.14 KB

Service Registry Python sample

CI

Sample Python application demonstrating the use of Service Registry in Tanzu Platform for Cloud Foundry.

For information on the Service Registry product in Tanzu Platform for Cloud Foundry, please see the documentation.

Building and Deploying

  • Create a Service Registry instance:
 cf create-service p.service-registry standard greeter-service-registry
  • Install dependencies
 # geeter-messages app
 pip install -r greeter-messages/requirements.txt

 # greeter app
 pip install -r greeter/requirements.txt
  • Push applications:
 cf push
 # or push each app separately
 cf push greeter-messages
 cf push greeter

Trying It Out

Call [ROUTE]/hello, where [ROUTE] is the route bound to the greeter application, with optional name and salutation parameters.

 $ curl "greeter.apps.example.cf-app.com/hello?name=John"
 Hello, John!