Skip to content

Conversation

@andyatmiami
Copy link
Contributor

⚠️: NO GH ISSUE

Modified the Dockerfiles for backend, controller, and frontend to use the --platform=$BUILDPLATFORM directive, enabling better compatibility for multi-platform builds.

This change limits the exposure to emulation required to produce the image - ensuring the "base layer" is always built on the same architecture as the build system.

This is safe:

  • for controller and backend because go build already supports cross-compilation
  • for frontend because the webpack config simply outputs HTML/JS files to be including in the final stage of the build.

Modified the Dockerfiles for backend, controller, and frontend to use the `--platform=$BUILDPLATFORM` directive, enabling better compatibility for multi-platform builds.

This change limits the exposure to emulation required to produce the image - ensuring the "base layer" is always built on the same architecture as the build system.

This is safe:
- for `controller` and `backend` because `go` build already supports cross-compilation
- for `frontend` because the `webpack` config simply outputs HTML files to be including in the final state of the build.

Signed-off-by: Andy Stoneberg <[email protected]>
@github-project-automation github-project-automation bot moved this to Needs Triage in Kubeflow Notebooks Oct 28, 2025
@google-oss-prow google-oss-prow bot added do-not-merge/work-in-progress area/backend area - related to backend components labels Oct 28, 2025
@google-oss-prow google-oss-prow bot requested review from ederign and paulovmr October 28, 2025 20:30
@google-oss-prow google-oss-prow bot added area/controller area - related to controller components area/frontend area - related to frontend components area/v2 area - version - kubeflow notebooks v2 size/XS labels Oct 28, 2025
@andyatmiami andyatmiami marked this pull request as ready for review October 30, 2025 20:15
@andyatmiami
Copy link
Contributor Author

/ok-to-test

@thesuperzapper
Copy link
Member

Thanks for this!

Will make our lives much better!

/lgtm
/approve

@google-oss-prow
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: thesuperzapper

The full list of commands accepted by this bot can be found here.

The pull request process is described here

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

@google-oss-prow google-oss-prow bot merged commit 48ae3c7 into kubeflow:notebooks-v2 Oct 30, 2025
23 of 24 checks passed
@github-project-automation github-project-automation bot moved this from Needs Triage to Done in Kubeflow Notebooks Oct 30, 2025
@andyatmiami andyatmiami deleted the ci/faster-multi-arch-image-builds branch October 31, 2025 19:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved area/backend area - related to backend components area/controller area - related to controller components area/frontend area - related to frontend components area/v2 area - version - kubeflow notebooks v2 lgtm ok-to-test size/XS

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants