Skip to content

Add build platform specification to Dockerfile#180

Merged
felix-kaestner merged 1 commit intomainfrom
cross-compilation-build-platform
Mar 3, 2026
Merged

Add build platform specification to Dockerfile#180
felix-kaestner merged 1 commit intomainfrom
cross-compilation-build-platform

Conversation

@felix-kaestner
Copy link
Contributor

@felix-kaestner felix-kaestner commented Feb 9, 2026

This patch adds the specification for the build platform to the Dockerfile to effectively make use of the cross compilation capabilities of Go in the build stage. See https://www.docker.com/blog/faster-multi-platform-builds-dockerfile-cross-compilation-guide/ for a detailed explanation.

This reduces the workflow execution from ~30min1 to ~4min2.

Footnotes

  1. https://github.com/ironcore-dev/network-operator/actions/runs/22599079048/job/65476427191

  2. https://github.com/ironcore-dev/network-operator/actions/runs/22623850875/job/65555278544

@felix-kaestner felix-kaestner requested a review from a team as a code owner February 9, 2026 09:06
@felix-kaestner felix-kaestner marked this pull request as draft February 9, 2026 09:17
@hardikdr hardikdr added the area/metal-automation Automation processes within the Metal project. label Feb 10, 2026
@hardikdr hardikdr added this to Roadmap Feb 10, 2026
@felix-kaestner felix-kaestner marked this pull request as ready for review March 3, 2026 10:44
@felix-kaestner felix-kaestner force-pushed the cross-compilation-build-platform branch from ffc53fd to fc3e845 Compare March 3, 2026 10:44
This patch adds the specification for the build platform to the
Dockerfile to effectively make use of the cross compilation capabilities
of Go in the build stage.

See https://www.docker.com/blog/faster-multi-platform-builds-dockerfile-cross-compilation-guide/ for a detailed explanation.
@felix-kaestner felix-kaestner force-pushed the cross-compilation-build-platform branch from fc3e845 to 4f8ba7a Compare March 3, 2026 12:50
@felix-kaestner felix-kaestner enabled auto-merge (squash) March 3, 2026 12:57
@felix-kaestner felix-kaestner merged commit eaec319 into main Mar 3, 2026
12 checks passed
@felix-kaestner felix-kaestner deleted the cross-compilation-build-platform branch March 3, 2026 13:00
@github-project-automation github-project-automation bot moved this to Done in Roadmap Mar 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/metal-automation Automation processes within the Metal project.

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants