This repository contains samples for use with SCDF for PCF.
The sample app requires the cf CLI to be a targeted and authenticated to a PCF foundry with the SCDF for PCF tile
installed. To create a SCDF for PCF service instance run:
$ cf create-service p-dataflow standard dataflow
To build the sample app, simply run:
$ ./mvnw package
-
Deploy the API Sample app by running:
$ cf push api-sample -p api-sample/target/api-sample.jar --no-startThis will create an application named
api-sampleand upload the API Sample Spring Boot application. -
Bind to the Spring Cloud Data Flow Service Instance running:
$ cf bind-service api-sample dataflowIf your service instance has a name other than
dataflow, you will need to run something like:$ cf bind-service api-sample YOUR_DATAFLOW_SI --binding-name dataflowNote: The
binding-nameoption is only available on PCF 2.1 and higher. -
Start the API Sample app by running:
$ cf start api-sample
The API Sample application has two REST endpoints: /version and /apps. Each of these endpoints invoke the Data
Flow server's API. See the DemoApplication class for more details.