AGENT-1577: Use master branch of appliance as image builder - #333
Conversation
Switch to the agent-release-iso-builder CI image that is built from the current OCP release branch. This replaces agent-preinstall-image-builder, which is now built from the branch of the same name and does not use stable branches.
|
@zaneb: This pull request references AGENT-1577 which is a valid jira issue. Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the task to target the "5.0.0" version, but no target version was set. DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
|
Skipping CI for Draft Pull Request. |
WalkthroughThe ISO builder now uses ChangesISO Builder Image Update
Estimated code review effort: 1 (Trivial) | ~3 minutes Suggested reviewers: 🚥 Pre-merge checks | ✅ 14 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (14 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: zaneb The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
There was a problem hiding this comment.
Caution
Some comments are outside the diff and can’t be posted inline due to platform limitations.
⚠️ Outside diff range comments (1)
tools/iso_builder/Dockerfile (1)
2-30: 🔒 Security & Privacy | 🟠 Major | 🏗️ Heavy liftAdd a separate final stage.
AS builderon Line 2 does not create a multi-stage build. The builder becomes the final image and retains build tools,/openshift-appliance, and the generatedappliance-config.yaml. The configuration is created from the mounted pull secret, and the cleanup commands do not remove it.Add a final stage that copies only the generated ISO and runs as a non-root user.
As per path instructions, Dockerfiles must use multi-stage builds and must not keep build tools or secrets in the final image.
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@tools/iso_builder/Dockerfile` around lines 2 - 30, Add a separate final stage after the existing builder stage, copying only the generated ISO from builder and configuring a non-root runtime user. Ensure the final image excludes build tools, /openshift-appliance, appliance-config.yaml, and any secret-derived files, while preserving the ISO output.Source: Path instructions
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Outside diff comments:
In `@tools/iso_builder/Dockerfile`:
- Around line 2-30: Add a separate final stage after the existing builder stage,
copying only the generated ISO from builder and configuring a non-root runtime
user. Ensure the final image excludes build tools, /openshift-appliance,
appliance-config.yaml, and any secret-derived files, while preserving the ISO
output.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository: openshift/coderabbit/.coderabbit.yaml
Review profile: CHILL
Plan: Enterprise
Run ID: 681f43aa-64de-42a9-95dc-f81855d71215
📒 Files selected for processing (3)
tools/iso_builder/CLAUDE.mdtools/iso_builder/Dockerfiletools/iso_builder/hack/build-ove-image.sh
Switch to the agent-release-iso-builder CI image that is built from the current OCP release branch.
This replaces agent-preinstall-image-builder, which is now built from the branch of the same name and does not use stable branches.
This depends on openshift/release#83022
Summary by CodeRabbit