Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cross-build step with multiplatform build logging is ambiguous #1187

Closed
cpuguy83 opened this issue Oct 3, 2019 · 5 comments
Closed

Cross-build step with multiplatform build logging is ambiguous #1187

cpuguy83 opened this issue Oct 3, 2019 · 5 comments

Comments

@cpuguy83
Copy link
Member

cpuguy83 commented Oct 3, 2019

When performing a build step such as this example:

FROM --platform=$BUILDPLATFORM AS hello
RUN echo hello; sleep 10

And then building for multiple target platforms, it is difficult to tell which platform target is running or failed because the output effectively shows BUILDPLATFORM (in this case).

Example from above might look like this even though I'm building for both linux/amd64 and linux/arm64, both only show linux/amd64:

[ linux/amd64 hello 1/1 ] RUN  echo hello; sleep 10
hello
[ linux/amd64 hello 1/1 ] RUN  echo hello; sleep 10
hello
@tonistiigi
Copy link
Member

Showing linux/amd64 in there is correct as the hello/sleep binary running there is linux/amd64 but as it is confusing we could detect the case where TARGETPLATFORM for Dockerfile stage is not the same as current platform and show both then.

@chendave
Copy link
Collaborator

+1

@chendave
Copy link
Collaborator

/assign

@chendave chendave self-assigned this Oct 10, 2019
@chendave
Copy link
Collaborator

if anyone want a quick fix, pls feel free to assign this to yourself.

@pkoenig10
Copy link

Fixed by #2576

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants