Skip to content

This is a generalised backend service which can be used to deploy to multiple clusters for testing purposes

License

Notifications You must be signed in to change notification settings

hmcts/recipes-backend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Recipes API backend

This is a generalised backend service that provides an API.

This repository and the CI/CD will generate a container image and Helm chart that can be consumed and deployed to AKS. It should be possible to deploy this to multiple AKS clusters with unique values e.g. CFT and SDS

The Helm chart in use is dependant on the HMCTS Java chart so all values are available for use within this chart.

Purpose

The purpose of this service is to provide an example of how a Spring Boot application can be set up in HMCTS, so that it can be processed by the pipeline and get deployed to AKS.

What's inside

The project contains a Spring Boot app that exposes a single endpoint (/src).

Building and deploying the application

Building the application

The project uses Gradle as a build tool. It already contains ./gradlew wrapper script, so there's no need to install gradle.

To build the project execute the following command:

  ./gradlew build

Running the application

See docker-compose.yml and set the required environment variables. They are currently unset.

Create and run docker image:

  docker-compose up --build

This will start the API container exposing the application on host port 9080

In order to test if the application is up, you can call its health endpoint:

  curl http://localhost:9080/health

You should get a response similar to this:

  {"status":"UP","diskSpace": {"status":"UP","total":249644974080,"free":137188298752,"threshold":10485760}}

License

This project is licensed under the MIT License - see the LICENCE file for details.

About

This is a generalised backend service which can be used to deploy to multiple clusters for testing purposes

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published