optimize setup
Some checks failed
deploy to hetzner / deploy (push) Failing after 11m18s

Signed-off-by: Peter Siegmund <developer@mars3142.org>
This commit is contained in:
2025-08-23 00:06:46 +02:00
parent 2ef81803c6
commit 9bb7a2e764
5 changed files with 8 additions and 22 deletions

View File

@@ -11,7 +11,7 @@ USER app
# Copy all needed project files to a folder # Copy all needed project files to a folder
COPY --chown=app ./gradle/ ./gradle COPY --chown=app ./gradle/ ./gradle
COPY --chown=app ./gradlew ./build.gradle ./settings.gradle ./app.json ./ COPY --chown=app ./gradlew ./build.gradle ./settings.gradle ./
COPY --chown=app ./src ./src COPY --chown=app ./src ./src
RUN curl -OL https://github.com/open-telemetry/opentelemetry-java-instrumentation/releases/latest/download/opentelemetry-javaagent.jar RUN curl -OL https://github.com/open-telemetry/opentelemetry-java-instrumentation/releases/latest/download/opentelemetry-javaagent.jar

View File

@@ -1,14 +0,0 @@
{
"healthchecks": {
"web": [
{
"type": "readiness",
"name": "web check",
"description": "Checking if the app responds to the /actuator/health/readiness endpoint",
"path": "/actuator/health/readiness",
"port": 5000,
"attempts": 3
}
]
}
}

View File

@@ -28,12 +28,12 @@ ext {
} }
dependencies { dependencies {
implementation 'org.springframework.cloud:spring-cloud-config-server'
implementation 'org.springframework.boot:spring-boot-starter-actuator'
implementation 'org.springframework.cloud:spring-cloud-starter-netflix-eureka-client'
implementation 'com.github.ben-manes.caffeine:caffeine:3.1.8'
compileOnly 'org.projectlombok:lombok'
annotationProcessor 'org.projectlombok:lombok' annotationProcessor 'org.projectlombok:lombok'
compileOnly 'org.projectlombok:lombok'
implementation 'com.github.ben-manes.caffeine:caffeine:3.1.8'
implementation 'org.springframework.boot:spring-boot-starter-actuator'
implementation 'org.springframework.cloud:spring-cloud-config-server'
implementation 'org.springframework.cloud:spring-cloud-starter-netflix-eureka-client'
testImplementation 'org.springframework.boot:spring-boot-starter-test' testImplementation 'org.springframework.boot:spring-boot-starter-test'
testRuntimeOnly 'org.junit.platform:junit-platform-launcher' testRuntimeOnly 'org.junit.platform:junit-platform-launcher'
} }

View File

@@ -43,7 +43,7 @@ spring:
- RewritePath=/timezone-service/(?<segment>.*), /$\{segment} - RewritePath=/timezone-service/(?<segment>.*), /$\{segment}
- id: google-service - id: google-service
uri: ${GOOGLE_SERVICE_URI:http://google-service.web:8080} uri: lb://google-service
predicates: predicates:
- Path=/v1/account/**, /health/google, /google-service/v3/api-docs - Path=/v1/account/**, /health/google, /google-service/v3/api-docs
filters: filters:
@@ -51,7 +51,7 @@ spring:
- RewritePath=/google-service/(?<segment>.*), /$\{segment} - RewritePath=/google-service/(?<segment>.*), /$\{segment}
- id: token-service - id: token-service
uri: ${BACKEND_SERVICE_URI:http://backend-service.web:8080} uri: lb://backend-service
predicates: predicates:
- Path=/v1/token/**, /health/backend, /token-service/v3/api-docs - Path=/v1/token/**, /health/backend, /token-service/v3/api-docs
filters: filters: