Skip to content

Support limited cross-buildability - #146

Draft
tianon wants to merge 1 commit into
docker-library:mainfrom
infosiftr:cross
Draft

Support limited cross-buildability#146
tianon wants to merge 1 commit into
docker-library:mainfrom
infosiftr:cross

Conversation

@tianon

@tianon tianon commented Aug 18, 2026

Copy link
Copy Markdown
Member

Specifically, this requires doi.jq's new build_can_cross function to return true (which it currently does only for oci-import images), and a Jenkins node with the cross-ARCH label and a credential for the arch with a -cross suffix.

The build is also targeted such that if a native node is available, it will satisfy the label expression and be used (which is what allows this to continue working as-is without any infra changes and not perform any "cross" builds).

Assisted-By: "claude my eyes right out"

Specifically, this requires `doi.jq`'s new `build_can_cross` function to return `true` (which it currently does *only* for `oci-import` images), *and* a Jenkins node with the `cross-ARCH` label *and* a credential for the arch with a `-cross` suffix.

The build is also targeted such that if a native node is available, it will satisfy the label expression and be used (which is what allows this to continue working as-is without any infra changes and not perform any "cross" builds).

Assisted-By: "claude my eyes right out"
@tianon
tianon requested review from a team and LaurentGoderre as code owners August 18, 2026 23:41
@tianon

tianon commented Aug 18, 2026

Copy link
Copy Markdown
Member Author

The biggest "gap" here for cross-building anything besides oci-import is that bashbrew will neither parse nor allow FROM --platform so we can't actually do successful cross-builds with this without also having something like docker-library/bashbrew@c2bfb6a and solving the edge cases it points at.

@tianon
tianon marked this pull request as draft August 19, 2026 23:10
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