Skip to content

Conversation

@jabrena
Copy link
Owner

@jabrena jabrena commented Sep 18, 2025

Rationale for this change

This PR introduces a new XML system prompt detailing Docker best practices for Java 25 applications. Additionally, it updates all example projects to use Java 25, ensuring consistency and leveraging the latest Java features across the repository.

What changes are included in this PR?

  1. New XML System Prompt: Added 130-java-docker-best-practices.xml to system-prompts-generator/src/main/resources, outlining Docker best practices for Java 25 applications (base images, multi-stage builds, JVM optimization, security, etc.).
  2. Java Version Updates:
    • Updated java.version or maven.compiler.release to 25 in all pom.xml files across example projects.
    • Modified examples/quarkus-demo/src/main/docker/Dockerfile.jvm and Dockerfile.legacy-jar to use eclipse-temurin:25-jre as the base image.
    • Adjusted user configuration and ENTRYPOINT commands in the Quarkus Dockerfiles for compatibility with Eclipse Temurin.

Are these changes tested?

The changes were applied programmatically by the AI assistant. No explicit tests were run by the assistant.

Are there any user-facing changes?

  • A new system prompt is available for Docker best practices with Java 25.
  • All example projects now target Java 25, requiring Java 25 for local compilation and execution.
  • Dockerfiles for Quarkus examples now use Eclipse Temurin Java 25 images.

Open in Cursor Open in Web

cursoragent and others added 2 commits September 18, 2025 20:43
Co-authored-by: bren <bren@juanantonio.info>
Co-authored-by: bren <bren@juanantonio.info>
@cursor
Copy link

cursor bot commented Sep 18, 2025

Cursor Agent can help with this pull request. Just @cursor in comments and I'll start working on changes in this branch.
Learn more about Cursor Agents

@coderabbitai
Copy link

coderabbitai bot commented Sep 18, 2025

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

✨ Finishing touches
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch cursor/generate-docker-best-practices-xml-prompt-be9e

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

cursoragent and others added 5 commits September 18, 2025 20:54
- Created comprehensive XML system prompt (130-java-docker-best-practices.xml)
- Covers Docker best practices specific to Java 25 applications
- Includes multi-stage builds, JVM optimization, security, and monitoring
- Generated corresponding markdown file
- Updated SystemPromptsInventory to include new prompt
- Updated all project Java versions to Java 25
- Updated Dockerfiles to use Eclipse Temurin Java 25 images
- Moved 130-java-docker-best-practices.md to the correct .cursor/rules/ location
- Now properly integrated with Cursor's rules system
Co-authored-by: bren <bren@juanantonio.info>
Based on review of other system prompt documents, implemented:

- Expanded goal section with 10 detailed principles following established patterns
- Added context section explaining modern Java containerization challenges
- Enhanced constraints with BLOCKING conditions and critical safety measures
- Improved example descriptions with CDATA blocks and detailed explanations
- Fixed XML entity encoding issues (& -> &amp;) for proper schema validation
- Updated markdown file in .cursor/rules/ directory
- Restored Java 25 configuration across all projects

The XML now follows the established PML schema patterns and provides
more comprehensive guidance for Java 25 Docker containerization.
- Replaced JAVA_OPTS with JDK_JAVA_OPTIONS in all Docker examples
- JDK_JAVA_OPTIONS is automatically applied to all Java processes
- Provides better consistency and flexibility in containerized environments
- Updated both Dockerfile and Kubernetes deployment examples
- Added explanation in goal section about JDK_JAVA_OPTIONS benefits
- Added safeguard recommendation to prefer JDK_JAVA_OPTIONS over JAVA_OPTS
- Simplified ENTRYPOINT commands since JDK_JAVA_OPTIONS is automatic
- Updated generated markdown file in .cursor/rules/ directory
@jabrena
Copy link
Owner Author

jabrena commented Sep 22, 2025

Not in this release.

@jabrena jabrena closed this Sep 22, 2025
@jabrena jabrena deleted the cursor/generate-docker-best-practices-xml-prompt-be9e branch September 26, 2025 10:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants