Compare commits

..

10 Commits

Author SHA1 Message Date
fe854136ae latest dependencies
Some checks failed
deploy to hetzner / deploy (push) Failing after 11m28s
Signed-off-by: Peter Siegmund <developer@mars3142.org>
2024-12-12 00:35:52 +01:00
dependabot[bot]
329b82232f Bump org.springdoc:springdoc-openapi-starter-webflux-ui
Bumps [org.springdoc:springdoc-openapi-starter-webflux-ui](https://github.com/springdoc/springdoc-openapi) from 2.6.0 to 2.7.0.
- [Release notes](https://github.com/springdoc/springdoc-openapi/releases)
- [Changelog](https://github.com/springdoc/springdoc-openapi/blob/main/CHANGELOG.md)
- [Commits](https://github.com/springdoc/springdoc-openapi/compare/v2.6.0...v2.7.0)

---
updated-dependencies:
- dependency-name: org.springdoc:springdoc-openapi-starter-webflux-ui
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-12-12 00:12:38 +01:00
dependabot[bot]
040e14153d Bump com.nimbusds:nimbus-jose-jwt from 9.41.2 to 9.47
Bumps [com.nimbusds:nimbus-jose-jwt](https://bitbucket.org/connect2id/nimbus-jose-jwt) from 9.41.2 to 9.47.
- [Changelog](https://bitbucket.org/connect2id/nimbus-jose-jwt/src/master/CHANGELOG.txt)
- [Commits](https://bitbucket.org/connect2id/nimbus-jose-jwt/commits/tag/9.47)

---
updated-dependencies:
- dependency-name: com.nimbusds:nimbus-jose-jwt
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-12-12 00:12:23 +01:00
dependabot[bot]
d1da8a0cb1 Bump io.sentry.jvm.gradle from 4.11.0 to 4.14.1
Bumps [io.sentry.jvm.gradle](https://github.com/getsentry/sentry-android-gradle-plugin) from 4.11.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.11.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:12:08 +01:00
dependabot[bot]
867e36b913 Bump org.springdoc:springdoc-openapi-starter-webflux-api
Bumps [org.springdoc:springdoc-openapi-starter-webflux-api](https://github.com/springdoc/springdoc-openapi) from 2.6.0 to 2.7.0.
- [Release notes](https://github.com/springdoc/springdoc-openapi/releases)
- [Changelog](https://github.com/springdoc/springdoc-openapi/blob/main/CHANGELOG.md)
- [Commits](https://github.com/springdoc/springdoc-openapi/compare/v2.6.0...v2.7.0)

---
updated-dependencies:
- dependency-name: org.springdoc:springdoc-openapi-starter-webflux-api
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-12-12 00:11:48 +01:00
dependabot[bot]
e81ed33d74 Bump org.springframework.boot from 3.3.4 to 3.4.0
Bumps [org.springframework.boot](https://github.com/spring-projects/spring-boot) from 3.3.4 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.4...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:34 +01:00
1a9f9999af fake fullscreen 404 screen
Signed-off-by: Peter Siegmund <developer@mars3142.org>
2024-10-27 23:46:38 +01:00
358b06b323 starting custom 404 page
Signed-off-by: Peter Siegmund <developer@mars3142.org>
2024-10-27 23:40:33 +01:00
b523a2fd61 add springdoc
Signed-off-by: Peter Siegmund <developer@mars3142.org>
2024-10-27 23:40:07 +01:00
c30129cd97 add OpenTelemetry
Signed-off-by: Peter Siegmund <developer@mars3142.org>
2024-10-23 08:38:53 +02:00
6 changed files with 62 additions and 34 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/edge.jar COPY --chown=app --from=build /usr/src/app/build/libs/*-SNAPSHOT.jar /usr/app/edge.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="edge-service"
ENV OTEL_EXPORTER_OTLP_ENDPOINT="http://opentelemetry-collector.web:4318"
HEALTHCHECK CMD curl --fail http://localhost:5000/actuator/health/liveness || exit 1 HEALTHCHECK CMD curl --fail http://localhost:5000/actuator/health/liveness || exit 1

View File

@@ -1,9 +1,8 @@
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 'idea' id 'idea'
id "io.sentry.jvm.gradle" version "4.11.0"
} }
group = 'dev.mars3142.fhq' group = 'dev.mars3142.fhq'
@@ -26,9 +25,9 @@ repositories {
} }
ext { ext {
set('springCloudVersion', "2023.0.3") set('springCloudVersion', "2024.0.0")
set('springModulithVersion', "1.2.1") set('springModulithVersion', "1.2.1")
set('springCloudGCPVersion', "5.4.1") set('springCloudGCPVersion', "5.9.0")
} }
dependencies { dependencies {
@@ -41,11 +40,11 @@ dependencies {
implementation 'io.grpc:grpc-netty' implementation 'io.grpc:grpc-netty'
implementation 'org.springframework.cloud:spring-cloud-starter-bootstrap' implementation 'org.springframework.cloud:spring-cloud-starter-bootstrap'
implementation 'io.netty:netty-all' implementation 'io.netty:netty-all'
implementation 'com.nimbusds:nimbus-jose-jwt:9.41.2' implementation 'com.nimbusds:nimbus-jose-jwt:9.47'
implementation 'org.springframework.cloud:spring-cloud-starter-netflix-eureka-client' implementation 'org.springframework.cloud:spring-cloud-starter-netflix-eureka-client'
implementation 'com.github.ben-manes.caffeine:caffeine:3.1.8' implementation 'com.github.ben-manes.caffeine:caffeine:3.1.8'
implementation 'org.springdoc:springdoc-openapi-starter-webmvc-ui:2.6.0' implementation 'org.springdoc:springdoc-openapi-starter-webflux-ui:2.7.0'
implementation 'org.springdoc:springdoc-openapi-starter-webmvc-api:2.6.0' implementation 'org.springdoc:springdoc-openapi-starter-webflux-api:2.7.0'
implementation 'org.springframework.boot:spring-boot-starter-thymeleaf' implementation 'org.springframework.boot:spring-boot-starter-thymeleaf'
implementation 'org.springframework.cloud:spring-cloud-starter-config' implementation 'org.springframework.cloud:spring-cloud-starter-config'
testImplementation 'io.projectreactor:reactor-test' testImplementation 'io.projectreactor:reactor-test'

View File

@@ -0,0 +1,19 @@
body {
height: 100vh;
display: grid;
justify-content: center;
transition: background-color 1s;
}
canvas {
margin-top: -5em;
margin-bottom: -3em;
pointer-events: none;
}
.rive-canvas {
width: 100%;
height: 100%;
margin: auto;
display: block;
}

View File

@@ -1,27 +0,0 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Rive Hello World</title>
</head>
<body>
<div style="text-align: center">
<canvas id="canvas" width="400" height="400"></canvas>
</div>
<script src="https://unpkg.com/@rive-app/canvas@2.20.0"></script>
<script>
const r = new rive.Rive({
src: "https://cdn.rive.app/animations/vehicles.riv",
canvas: document.getElementById("canvas"),
autoplay: true,
// artboard: "Arboard", // Optional. If not supplied the default is selected
stateMachines: "bumpy",
onLoad: () => {
// Ensure the drawing surface matches the canvas size and device pixel ratio
r.resizeDrawingSurfaceToCanvas();
},
});
</script>
</body>
</html>

Binary file not shown.

View File

@@ -0,0 +1,30 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8"/>
<meta content="IE=edge" http-equiv="X-UA-Compatible"/>
<meta content="width=device-width, initial-scale=1.0" name="viewport"/>
<title>404</title>
<link href="/css/404.css" rel="stylesheet"/>
</head>
<body style="background-color: #EB3A60;">
<div style="text-align: center">
<canvas id="rive-canvas" style="width: 100%; height: 100%; margin: auto; display: block;"></canvas>
</div>
<script src="https://unpkg.com/@rive-app/canvas@2.20.0"></script>
<script>
const r = new rive.Rive({
src: "https://cdn.rive.app/animations/vehicles.riv",
// OR the path to a discoverable and public Rive asset
// src: '/public/example.riv',
canvas: document.getElementById("rive-canvas"),
autoplay: true,
// artboard: "Arboard", // Optional. If not supplied the default is selected
stateMachines: "bumpy",
onLoad: () => {
r.resizeDrawingSurfaceToCanvas();
},
});
</script>
</body>
</html>