Fix Docker building (and also build for forks)#15389
Conversation
Review Summary by QodoFix Docker building and enable builds for repository forks
WalkthroughsDescription• Remove repository restriction to enable Docker builds for forks • Update Maven and JDK versions in Dockerfiles • Add explicit module-info.java file copies to Docker build context • Separate Docker build commands into individual RUN layers Diagramflowchart LR
A["Docker Build Workflow"] -->|Remove repo check| B["Enable Fork Builds"]
C["Dockerfile.jabkit/jabsrv"] -->|Update versions| D["Maven 3.9.14, JDK 26"]
C -->|Add module-info copies| E["Include Java modules"]
C -->|Separate RUN commands| F["Optimize layer caching"]
B --> G["Fixed Docker Build"]
D --> G
E --> G
F --> G
File Changes1. .github/workflows/dockerimages.yml
|
Code Review by Qodo
1. amazoncorretto commented FROM line
|
|
|
||
| # Is not debian-based | ||
| # FROM amazoncorretto:25-jdk AS build | ||
| # FROM amazoncorretto:26-jdk AS build |
There was a problem hiding this comment.
1. Amazoncorretto commented from line 📘 Rule violation ⚙ Maintainability
A commented-out FROM ... AS build line is kept in a modified section of the Dockerfile, which is considered commented-out code. This increases maintenance noise and violates the requirement to remove commented-out code in touched areas.
Agent Prompt
## Issue description
A commented-out Docker instruction (`# FROM ...`) remains in a modified part of the Dockerfile.
## Issue Context
The project compliance rules require removing commented-out code in touched sections.
## Fix Focus Areas
- Dockerfile.jabkit[4-4]
ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools
This comment has been minimized.
This comment has been minimized.
✅ All tests passed ✅🏷️ Commit: 090a26f Learn more about TestLens at testlens.app. |
Related issues and pull requests
Extracted from #15357
PR Description
Docker build was not working. This fixes it.
Steps to test
See CI passing OR run
docker build . -t jabkit -f Dockerfile.jabkitChecklist
CHANGELOG.mdin a way that can be understood by the average user (if change is visible to the user)