[![Build Status]()
Java spring boot application has been developed for service-broker which will give profile, configuration details for jacoco agent/server and generated jacoco.exec will used for Sonar runner to get coverage report. This service-broker will be registered in cloudfoundry , so that in future we can create a service and from the service bind VCAP_SERVICES values to any application.
The application is Java spring boot application and packaged as a executable JAR file. To build the application user needs maven build tool.
Here our assumption is you have preinstalled CF CLI .To deploy application either user needs manifest file where user will make all required entries or user can directoly push the application by using arguments via CF CLI. If user is not passing buildpack url then default cloud foundary buildpack url will be used here
To deploy run the following commands: If user is having manifest file
$ mvn package
$ cf push
If user is passing arguments from CF CLI
$ mvn package
$ cf push <app_name> �p <jar_name>
To register servicebroker in cloud foundary use following steps:
$ cf create-service-broker <service_broker> <username> <password> <url_for_service_broker>
List all services,plans and description
$ cf marketplace
$ cf create-service <service_broker> <plans> <service_name>
Now user can bind any application with this created service.
Since the application is designed to work in a PaaS environment, all configuration is done with environment variables. The server
and profile
value is the only one that is provided by Dynatrace. All others are unique to a deployment.
Key | Description |
---|---|
configuration |
The jacoco agent configuation to provide to all applications. |
The model is for the REST/Controller level. It can be extended as needed.