Skip to content

Commit 1cf34d7

Browse files
committed
Enable spring health actuator
1 parent 6dc655f commit 1cf34d7

3 files changed

Lines changed: 5 additions & 1 deletion

File tree

docker/Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,8 @@ ENTRYPOINT ["/usr/local/bin/docker-entrypoint.sh"]
9999

100100
# Configure healthcheck
101101
# todo: make sure only the registry availability is checks since devices are not maintained by this instance.
102-
HEALTHCHECK --interval=15m --timeout=2m CMD bco-validate --host ${MQTT_BROKER} > /dev/null || exit 1
102+
HEALTHCHECK --interval=30s --timeout=5s --start-period=60s --retries=3 \
103+
CMD curl -f http://localhost:13781/actuator/health || exit 1
103104

104105
# Set command
105106
## Need to be in array form to not encapsulate command in another shell session because

module/api/graphql/build.gradle.kts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ dependencies {
2020

2121
api("org.eclipse.jetty:jetty-server:11.0.14")
2222
api("jakarta.servlet:jakarta.servlet-api:6.0.0")
23+
implementation("org.springframework.boot:spring-boot-starter-actuator:_")
2324

2425

2526

versions.properties

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,8 @@ plugin.org.springframework.boot=3.1.2
9494

9595
plugin.io.spring.dependency-management=1.1.2
9696

97+
version.org.springframework.boot..spring-boot-starter-actuator=3.1.2
98+
9799
version.kotlin=2.0.0
98100

99101
version.org.openbase..jul.communication.controller=3.7.2

0 commit comments

Comments
 (0)