-
Notifications
You must be signed in to change notification settings - Fork 94
OCPBUGS-87287: Updating openshift-enterprise-registry-container image to be consistent with ART for 5.0 #472
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,4 @@ | ||
| build_root_image: | ||
| name: release | ||
| namespace: openshift | ||
| tag: rhel-9-release-golang-1.25-openshift-4.22 | ||
| tag: rhel-9-release-golang-1.26-openshift-5.0 |
| Original file line number | Diff line number | Diff line change | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -1,9 +1,9 @@ | ||||||||||||||
| FROM registry.ci.openshift.org/ocp/builder:rhel-9-golang-1.25-openshift-4.22 AS builder | ||||||||||||||
| FROM registry.ci.openshift.org/ocp/builder:rhel-9-golang-1.26-openshift-5.0 AS builder | ||||||||||||||
| WORKDIR /go/src/github.com/openshift/image-registry | ||||||||||||||
| COPY . . | ||||||||||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Avoid
Suggested tightening-COPY . .
+COPY go.mod go.sum ./
+COPY cmd/ ./cmd/
+COPY pkg/ ./pkg/
+COPY hack/ ./hack/
+COPY vendor/ ./vendor/As per coding guidelines, " 📝 Committable suggestion
Suggested change
🤖 Prompt for AI AgentsSource: Coding guidelines |
||||||||||||||
| RUN hack/build-go.sh | ||||||||||||||
|
|
||||||||||||||
| FROM registry.ci.openshift.org/ocp/4.22:base-rhel9 | ||||||||||||||
| FROM registry.ci.openshift.org/ocp/5.0:base-rhel9 | ||||||||||||||
| RUN yum install -y rsync && yum clean all && rm -rf /var/cache/yum | ||||||||||||||
|
|
||||||||||||||
| # Copy both registry binaries: | ||||||||||||||
|
|
||||||||||||||
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.
Use approved catalog.redhat.com base images for both stages.
Both
FROMlines currently useregistry.ci.openshift.org, which violates the container base-image policy for Dockerfiles.As per coding guidelines, "
Base image: UBI minimal or distroless from catalog.redhat.com."Also applies to: 6-6
🤖 Prompt for AI Agents
Source: Coding guidelines