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.
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.
The project contains a Spring Boot app that exposes a single endpoint (/src).
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
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}}
This project is licensed under the MIT License - see the LICENCE file for details.