Skip to content

chore(dockerfiles): drop obsolete pingcap-base old centos-stream Dockerfile - #1215

Merged
ti-chi-bot[bot] merged 1 commit into
mainfrom
chore/drop-old-centos-stream-base
Nov 19, 2026
Merged

ti-chi-bot[bot] merged 1 commit into
mainfrom
chore/drop-old-centos-stream-base

Conversation

@wuhuizuo

Copy link
Copy Markdown
Contributor

What changed

  • Deleted dockerfiles/bases/pingcap-base/old.centos-stream.Dockerfile.

Why

The Dockerfile is unused and no longer buildable:

  • Nothing references it: not dockerfiles/bases/skaffold.yaml, not build-old.sh, not any workflow under .github/workflows/.
  • It is based on centos:8 (EOL) and installs RPMs by absolute URL from mirror.centos.org and dl.rockylinux.org, which are retired — it cannot resolve or build anymore.
  • Its replacement, 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.
  • No CI paths reference it; pull-prod-runtime-images/release-prod-runtime-images glob dockerfiles/bases/**/*.Dockerfile but only act on artifacts declared in skaffold.yaml.

…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.

@ti-chi-bot ti-chi-bot Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 grep and 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.

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.
  • 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.

@ti-chi-bot ti-chi-bot Bot added the size/S label Nov 19, 2026

@wuhuizuo wuhuizuo left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/approve

@ti-chi-bot

ti-chi-bot Bot commented Nov 19, 2026

Copy link
Copy Markdown

[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

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@ti-chi-bot ti-chi-bot Bot added the approved label Nov 19, 2026
@ti-chi-bot
ti-chi-bot Bot merged commit 94e7013 into main Nov 19, 2026
7 checks passed
@ti-chi-bot
ti-chi-bot Bot deleted the chore/drop-old-centos-stream-base branch November 19, 2026 14:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant