Skip to content

[go1.25] Use AlmaLinux 8 as go-build base#788

Closed
hjiawei wants to merge 1 commit intogo1.25from
alma-base-go1.25
Closed

[go1.25] Use AlmaLinux 8 as go-build base#788
hjiawei wants to merge 1 commit intogo1.25from
alma-base-go1.25

Conversation

@hjiawei
Copy link
Collaborator

@hjiawei hjiawei commented Mar 18, 2026

No description provided.

@hjiawei hjiawei requested a review from Copilot March 18, 2026 22:52
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR updates the calico-go-build container build to use AlmaLinux 8 as the base OS image (instead of UBI8), simplifying repo setup by relying on Alma’s native repositories.

Changes:

  • Switch the go-build Dockerfile base stage from registry.access.redhat.com/ubi8/ubi:latest to almalinux:8.
  • Consolidate system dependency installation into a single dnf install step with powertools enabled.
  • Remove now-unneeded AlmaLinux .repo files and the AlmaLinux RPM GPG key from the image build context.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
images/calico-go-build/Dockerfile Moves go-build base to AlmaLinux 8 and updates dependency install flow; final scratch stage now copies from builder.
images/calico-go-build/almalinux/almalinux.repo Deleted; previously provided Alma BaseOS repo config for UBI-based builds.
images/calico-go-build/almalinux/almalinux-appstream.repo Deleted; previously provided Alma AppStream repo config for UBI-based builds.
images/calico-go-build/almalinux/almalinux-powertools.repo Deleted; previously provided Alma PowerTools repo config for UBI-based builds.
images/calico-go-build/almalinux/RPM-GPG-KEY-AlmaLinux Deleted; previously provided AlmaLinux GPG key for the custom repo setup.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

You can also share your feedback on Copilot code review. Take the survey.

@hjiawei hjiawei closed this Mar 20, 2026
@hjiawei hjiawei deleted the alma-base-go1.25 branch March 20, 2026 16:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants