Compare commits

..

10 Commits

Author SHA1 Message Date
80dbbb90a0 fix local config
Some checks failed
deploy to hetzner / deploy (push) Failing after 11m51s
Signed-off-by: Peter Siegmund <developer@mars3142.org>
2024-12-12 00:23:30 +01:00
c1122e9abd fix dependencies
Signed-off-by: Peter Siegmund <developer@mars3142.org>
2024-12-12 00:22:51 +01:00
dependabot[bot]
395ccacf0a Bump org.springframework.boot from 3.3.5 to 3.4.0
Bumps [org.springframework.boot](https://github.com/spring-projects/spring-boot) from 3.3.5 to 3.4.0.
- [Release notes](https://github.com/spring-projects/spring-boot/releases)
- [Commits](https://github.com/spring-projects/spring-boot/compare/v3.3.5...v3.4.0)

---
updated-dependencies:
- dependency-name: org.springframework.boot
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-12-12 00:11:03 +01:00
dependabot[bot]
30eb922427 Bump io.sentry.jvm.gradle from 4.12.0 to 4.14.1
Bumps [io.sentry.jvm.gradle](https://github.com/getsentry/sentry-android-gradle-plugin) from 4.12.0 to 4.14.1.
- [Release notes](https://github.com/getsentry/sentry-android-gradle-plugin/releases)
- [Changelog](https://github.com/getsentry/sentry-android-gradle-plugin/blob/main/CHANGELOG.md)
- [Commits](https://github.com/getsentry/sentry-android-gradle-plugin/compare/4.12.0...4.14.1)

---
updated-dependencies:
- dependency-name: io.sentry.jvm.gradle
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-12-12 00:10:48 +01:00
dependabot[bot]
7701524322 Bump org.springframework.boot from 3.3.4 to 3.3.5
Bumps [org.springframework.boot](https://github.com/spring-projects/spring-boot) from 3.3.4 to 3.3.5.
- [Release notes](https://github.com/spring-projects/spring-boot/releases)
- [Commits](https://github.com/spring-projects/spring-boot/compare/v3.3.4...v3.3.5)

---
updated-dependencies:
- dependency-name: org.springframework.boot
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-10-28 08:22:32 +01:00
6e88162fcf update git config uri
Signed-off-by: Peter Siegmund <developer@mars3142.org>
2024-10-28 08:21:23 +01:00
dependabot[bot]
3b77400dcc Bump io.sentry.jvm.gradle from 4.11.0 to 4.12.0
Bumps [io.sentry.jvm.gradle](https://github.com/getsentry/sentry-android-gradle-plugin) from 4.11.0 to 4.12.0.
- [Release notes](https://github.com/getsentry/sentry-android-gradle-plugin/releases)
- [Changelog](https://github.com/getsentry/sentry-android-gradle-plugin/blob/main/CHANGELOG.md)
- [Commits](https://github.com/getsentry/sentry-android-gradle-plugin/compare/4.11.0...4.12.0)

---
updated-dependencies:
- dependency-name: io.sentry.jvm.gradle
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-10-27 22:00:31 +01:00
22972fdc37 update edge-service config
Signed-off-by: Peter Siegmund <developer@mars3142.org>
2024-10-27 21:59:41 +01:00
144ec36a75 add OpenTelemetry
Signed-off-by: Peter Siegmund <developer@mars3142.org>
2024-10-23 08:38:30 +02:00
1720f57f7c Update application.yml
Signed-off-by: Peter Siegmund <developer@mars3142.org>
2024-10-20 23:42:50 +02:00
5 changed files with 39 additions and 22 deletions

View File

@@ -14,6 +14,8 @@ COPY --chown=app ./gradle/ ./gradle
COPY --chown=app ./gradlew ./build.gradle ./settings.gradle ./app.json ./ COPY --chown=app ./gradlew ./build.gradle ./settings.gradle ./app.json ./
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
# Build the production package # Build the production package
RUN ./gradlew clean build -x test RUN ./gradlew clean build -x test
@@ -24,6 +26,11 @@ RUN useradd -m app
USER app USER app
COPY --chown=app --from=build /usr/src/app/build/libs/*-SNAPSHOT.jar /usr/app/config.jar COPY --chown=app --from=build /usr/src/app/build/libs/*-SNAPSHOT.jar /usr/app/config.jar
COPY --chown=app --from=build /usr/src/app/opentelemetry-javaagent.jar /usr/app/opentelemetry-javaagent.jar
ENV JAVA_TOOL_OPTIONS="-javaagent:/usr/app/opentelemetry-javaagent.jar"
ENV OTEL_SERVICE_NAME="config-service"
ENV OTEL_EXPORTER_OTLP_ENDPOINT="http://opentelemetry-collector.web:4318"
HEALTHCHECK CMD curl --fail http://localhost:5000/actuator/health || exit 1 HEALTHCHECK CMD curl --fail http://localhost:5000/actuator/health || exit 1

View File

@@ -1,8 +1,7 @@
plugins { plugins {
id 'java' id 'java'
id 'org.springframework.boot' version '3.3.4' id 'org.springframework.boot' version '3.4.0'
id 'io.spring.dependency-management' version '1.1.6' id 'io.spring.dependency-management' version '1.1.6'
id "io.sentry.jvm.gradle" version "4.11.0"
} }
group = 'dev.mars3142.fhq' group = 'dev.mars3142.fhq'
@@ -25,7 +24,7 @@ repositories {
} }
ext { ext {
set('springCloudVersion', "2023.0.3") set('springCloudVersion', "2024.0.0")
} }
dependencies { dependencies {

View File

@@ -17,11 +17,9 @@ spring:
native: native:
search-locations: classpath:/configurations search-locations: classpath:/configurations
git: git:
uri: https://github.com/${GIT_USER}/configuration.git uri: https://github.com/${GIT_USER}/remote-config.git
username: ${GIT_USER} username: ${GIT_USER}
password: ${GIT_TOKEN} password: ${GIT_TOKEN}
clone-on-start: true
default-label: main default-label: main
searchPaths: configurations
profiles: profiles:
active: native active: native

View File

@@ -14,15 +14,16 @@ info:
logging: logging:
level: level:
com: com.netflix.discovery: off
netflix:
discovery: off
management: management:
endpoint: endpoint:
health: health:
probes: probes:
enabled: true enabled: true
web:
exposure:
include: refresh, bus-refresh, beans, env
sentry: sentry:
dsn: https://354321d371291036cffcdb5b1a72fd6e@o394865.ingest.us.sentry.io/4507718826262528 dsn: https://354321d371291036cffcdb5b1a72fd6e@o394865.ingest.us.sentry.io/4507718826262528

View File

@@ -1,6 +1,25 @@
server: server:
port: ${PORT:8080} port: ${PORT:8080}
springdoc:
enable-native-support: true
api-docs:
enabled: true
swagger-ui:
enabled: true
path: /swagger-ui.html
config-url: /v3/api-docs/swagger-config
urls:
- url: /v3/api-docs
name: API Gateway Service
primaryName: API Gateway Service
- url: /timezone-service/v3/api-docs
name: Timezone Service
primaryName: Timezone Service
- url: /google-service/v3/api-docs
name: Google Service
primaryName: Google Service
spring: spring:
cloud: cloud:
gateway: gateway:
@@ -18,33 +37,26 @@ spring:
locator: locator:
enabled: false enabled: false
routes: routes:
- id: edge
uri: lb://edge-service
predicates:
- Path=/v3/api-docs/**
filters:
- RewritePath=/v3/api-docs/(?<path>.*), /$\{path}/v3/api-docs
- id: timezone-service - id: timezone-service
uri: lb://timezone-service uri: lb://timezone-service
predicates: predicates:
- Path=/v1/timezone/**, /health/timezone, /timezone/v3/api-docs - Path=/v1/timezone/**, /health/timezone, /timezone-service/v3/api-docs
filters: filters:
- RewritePath=/health/timezone, /actuator/health - RewritePath=/health/timezone, /actuator/health
- RewritePath=/timezone/(?<segment>.*), /$\{segment} - RewritePath=/timezone-service/(?<segment>.*), /$\{segment}
- id: google-service - id: google-service
uri: ${GOOGLE_SERVICE_URI:http://google-service.web:8080} uri: ${GOOGLE_SERVICE_URI:http://google-service.web:8080}
predicates: predicates:
- Path=/v1/account/**, /health/google, /google/v3/api-docs - Path=/v1/account/**, /health/google, /google-service/v3/api-docs
filters: filters:
- RewritePath=/health/google, /actuator/health - RewritePath=/health/google, /actuator/health
- RewritePath=/google/(?<segment>.*), /$\{segment} - RewritePath=/google-service/(?<segment>.*), /$\{segment}
- id: token-service - id: token-service
uri: ${BACKEND_SERVICE_URI:http://backend-service.web:8080} uri: ${BACKEND_SERVICE_URI:http://backend-service.web:8080}
predicates: predicates:
- Path=/v1/token/**, /health/backend, /token/v3/api-docs - Path=/v1/token/**, /health/backend, /token-service/v3/api-docs
filters: filters:
- RewritePath=/health/backend, /actuator/health - RewritePath=/health/backend, /actuator/health
- RewritePath=/token/(?<segment>.*), /$\{segment} - RewritePath=/token-service/(?<segment>.*), /$\{segment}