-
Notifications
You must be signed in to change notification settings - Fork 20
👻 Adding ability for the build to use a podman cache #176
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
shawn-hurley
wants to merge
1
commit into
konveyor:main
Choose a base branch
from
shawn-hurley:feature/get-ready-for-composable-build-actions
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🧩 Analysis chain
Verify cache mount uid and assess Maven goal change.
The cache mount specifies
uid=1001, but RUN commands execute as root (uid 0) by default. This uid mismatch may cause permission issues or prevent effective caching. Verify that the uid is intentional and correct.Additionally, the change from
mvn clean installtomvn clean packageis a functional change:installwrites artifacts to the local repository, whilepackageonly builds the jar. This optimization works if downstream stages only need the packaged jar (which line 52 confirms), but verify there are no other consumers expecting artifacts in/root/.m2/repository.To verify the cache mount configuration, please confirm:
🏁 Script executed:
Length of output: 34
Let me adjust the search strategy to examine the Dockerfile more broadly.
Let me adjust the search strategy to examine the Dockerfile without relying on explicit file type detection.
🏁 Script executed:
Length of output: 196
🏁 Script executed:
Length of output: 1105
Let me simplify the approach and use more basic commands.
🏁 Script executed:
Length of output: 6761
Fix cache mount uid mismatch—RUN commands execute as root, not uid 1001.
The cache mount specifies
uid=1001, but theaddon-buildstage runs as root (uid 0) by default—no USER directive is set. This mismatch will prevent effective caching or cause permission issues. Change the cache mount touid=0to match the process user:RUN --mount=type=cache,id=m2_repo,uid=0,target=/root/.m2 JAVA_HOME=/usr/lib/jvm/java-17-openjdk mvn clean package -DskipTests=trueThe Maven goal change from
installtopackageis correct—the subsequent COPY confirms only the jar artifact fromtarget/is needed, not repository artifacts.🤖 Prompt for AI Agents