Salanap/java debug ai (#416)

* stashing changes on my local branch

* updated the java demo with debug points and jaeger tracing

---------

Co-authored-by: Salman Paracha <salmanparacha@MacBook-Pro-261.local>
This commit is contained in:
Salman Paracha 2025-03-04 12:49:34 -08:00 committed by GitHub
parent e77fc47225
commit 2e2680c98c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
11 changed files with 135 additions and 1 deletions

View file

@ -14,5 +14,10 @@ WORKDIR /app
# Copy the built jar from the previous stage
COPY --from=build /app/target/weather-forecast-service-0.0.1-SNAPSHOT.jar app.jar
# Expose the port on which the app runs (default Spring Boot is 8080)
# Expose the application port and the debug port
EXPOSE 8081
ENTRYPOINT ["java", "-jar", "app.jar"]
EXPOSE 5005
# Start the application with remote debugging enabled
ENTRYPOINT ["java", "-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:5005", "-jar", "app.jar"]