Skip to content

Commit

Permalink
Merge pull request #12 from garamb1/health_check
Browse files Browse the repository at this point in the history
Add Spring Health Checks
  • Loading branch information
garamb1 authored Jan 11, 2024
2 parents 33d45f0 + f748072 commit 77b95fb
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
4 changes: 3 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,6 @@ FROM eclipse-temurin:17
MAINTAINER garambo.it
ARG JAR_FILE=build/libs/*.jar
COPY ${JAR_FILE} retrosearch.jar
ENTRYPOINT ["java","-jar","/retrosearch.jar"]
ENTRYPOINT ["java","-jar","/retrosearch.jar"]
HEALTHCHECK --interval=30s --timeout=1s \
CMD curl -f http://localhost:3000/actuator/health || exit 1
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.5.1-testing
0.5.2-testing
1 change: 1 addition & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ springBoot {
dependencies {
implementation 'org.springframework.boot:spring-boot-starter-thymeleaf'
implementation 'org.springframework.boot:spring-boot-starter-web'
implementation 'org.springframework.boot:spring-boot-starter-actuator'
implementation 'org.jsoup:jsoup:1.16.2'
implementation 'commons-validator:commons-validator:1.7'
implementation 'org.apache.httpcomponents:httpclient:4.5.14'
Expand Down

0 comments on commit 77b95fb

Please sign in to comment.