Skip to content

Latest commit

 

History

History
55 lines (40 loc) · 1.74 KB

07-petclinic-repos.md

File metadata and controls

55 lines (40 loc) · 1.74 KB

Setup Spring Pet Clinic code and config repositories

You will need to setup two repositories.

Spring Pet Clinic Source Code Repo

The sample application is based upon Spring Pet Clinic canonical app, with adjustments made to add Tanzu Observability integration.

You can choose to fork, my repo https://github.com/doddatpivotal/spring-petclinic which may grow stale and be done with it.

Or you could fork the Spring Project's repo https://github.com/spring-projects/spring-petclinic and make the appropriate adjustments.

  1. Add following to spring petclinic pom.xml
<wavefront.version>2.0.1</wavefront.version>
<dependencyManagement>
  <dependencies>
    <dependency>
      <groupId>com.wavefront</groupId>
      <artifactId>wavefront-spring-boot-bom</artifactId>
      <version>${wavefront.version}</version>
      <type>pom</type>
      <scope>import</scope>
    </dependency>
  </dependencies>
</dependencyManagement>
...
<dependency>
  <groupId>com.wavefront</groupId>
  <artifactId>wavefront-spring-boot-starter</artifactId>
</dependency>
  1. Update PetclinicIntegrationTests.java
import org.springframework.test.context.ActiveProfiles;
@ActiveProfiles("test")
  1. Add test profile properties /src/test/resources/application-test.properties
management.metrics.export.wavefront.enabled=false
management.metrics.export.wavefront.apiToken=foo

Spring Pet Clinic Kubernetes Config Repo

Go to Next Step

Create Concourse Pipeline for Spring Pet Clinic