From c192c790a7ab5aafdada55af14821685193a47d7 Mon Sep 17 00:00:00 2001 From: Alfredo Date: Mon, 25 Nov 2024 10:53:17 +0100 Subject: [PATCH] cid-2963 Adds /actuator/health endpoint --- README.md | 4 ++++ build.gradle.kts | 7 +++++++ 2 files changed, 11 insertions(+) diff --git a/README.md b/README.md index 8e92347..58a4dae 100644 --- a/README.md +++ b/README.md @@ -43,6 +43,10 @@ The SAP LeanIX agent discovers self-built software in self-hosted GitHub Enterpr This command starts the agent and exposes it on port 8000. The agent starts scanning your organizations and repositories. + +6. The container hosts a live service that runs continuously. + - It provides a health endpoint at `/actuator/health`, which can be used to monitor the service's health. + **Note**: The Docker image for the agent is currently unavailable. It will become available for download once a new version is released. Please check the [Releases](https://github.com/leanix/leanix-github-agent/releases) page for updates. ## Support and Feedback diff --git a/build.gradle.kts b/build.gradle.kts index e29de5f..a5d6e8a 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -33,6 +33,7 @@ dependencyManagement { dependencies { implementation("org.springframework.boot:spring-boot-starter") + implementation("org.springframework.boot:spring-boot-starter-actuator") implementation("org.springframework.boot:spring-boot-starter-cache") implementation("com.github.ben-manes.caffeine:caffeine:2.8.8") implementation("org.springframework.cloud:spring-cloud-starter-openfeign") @@ -42,6 +43,12 @@ dependencies { implementation("com.fasterxml.jackson.core:jackson-annotations:2.17.1") implementation("com.expediagroup:graphql-kotlin-spring-client:7.0.2") + developmentOnly("io.netty:netty-resolver-dns-native-macos:4.1.85.Final") { + artifact { + classifier = "osx-aarch_64" + } + } + // Dependencies for generating JWT token implementation("io.jsonwebtoken:jjwt-impl:0.11.2") implementation("io.jsonwebtoken:jjwt-jackson:0.11.2")