Repository navigation
chore(dockerfiles): drop obsolete pingcap-base old centos-stream Dockerfile - #1215
Conversation
…erfile The file still builds on the EOL centos:8 image and pulls RPMs straight from mirror.centos.org and dl.rockylinux.org, which no longer resolve. It is not referenced by skaffold.yaml, build-old.sh, or any workflow, so retire it instead of keeping a broken, unusable definition around.
There was a problem hiding this comment.
I have already done a preliminary review for you, and I hope to help you do a better job.
Summary
This PR removes an obsolete Dockerfile (old.centos-stream.Dockerfile) from the repo. The file is no longer referenced anywhere, is based on an EOL CentOS 8 image, and contains URLs that no longer resolve, making it unbuildable. The PR cleanup improves repository clarity by removing dead and unsupported base image definitions. The diff is straightforward, and the justification and verification steps are thorough.
Code Improvements
-
Repository Cleanliness and Future-proofing
- The removal is appropriate and helps prevent confusion or accidental use of deprecated base images.
- Consider adding a short note in the
dockerfiles/bases/README.md(if present) or the repo's docs about the removal of old CentOS 8 support to inform contributors explicitly.
-
Verification Robustness
- While
grepand CI workflow checks are helpful, consider adding a note on whether any downstream repos or tooling might still reference this file. If applicable, confirm with stakeholders or maintainers of related projects.
- While
Best Practices
-
Documentation
- The PR description is detailed and clear. Consider adding a one-line comment or removal rationale in the commit message itself for future historical context, e.g.,
Remove obsolete old.centos-stream.Dockerfile due to CentOS 8 EOL and unbuildable state. - If there exists a central place documenting the supported base images, update it to reflect the removal.
- The PR description is detailed and clear. Consider adding a one-line comment or removal rationale in the commit message itself for future historical context, e.g.,
-
Testing Coverage
- Since the file is being deleted, no testing changes are needed. However, verify that no automated image-building pipelines or release scripts expect this image by running full CI or relevant build/test suites.
Critical Issues
No critical issues found. The change is a clean deletion of dead code without any risk of breaking current functionality.
Overall, this PR is a good maintenance practice. Just consider augmenting documentation or internal notes for future maintainers.
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: wuhuizuo 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 |
What changed
dockerfiles/bases/pingcap-base/old.centos-stream.Dockerfile.Why
The Dockerfile is unused and no longer buildable:
dockerfiles/bases/skaffold.yaml, notbuild-old.sh, not any workflow under.github/workflows/.centos:8(EOL) and installs RPMs by absolute URL frommirror.centos.organddl.rockylinux.org, which are retired — it cannot resolve or build anymore.dockerfiles/bases/pingcap-base/Dockerfile(Rocky Linux 9), has been in place for a long time.Retiring the file keeps
dockerfiles/bases/free of dead definitions that would suggest old CentOS Stream 8 base images are still supported.Verification
grep -rn "old.centos-stream"over the repo: no matches besides the deleted file.pull-prod-runtime-images/release-prod-runtime-imagesglobdockerfiles/bases/**/*.Dockerfilebut only act on artifacts declared inskaffold.yaml.