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

allow targetarch to be set by Docker buildkit #6549

Merged
merged 2 commits into from
Jan 30, 2023

Conversation

jakecoffman
Copy link
Member

According to the Docker docs, we shouldn't have to set the TARGETARCH if we simply declare it in the Dockerfiles as ARG TARGETARCH when using Docker buildkit.

This simplifies things a bit and allows any other architectures that our scripts don't explicitly handle to build the containers.

I tested this on my ARM machine and it works.

@@ -1,7 +1,5 @@
FROM ubuntu:20.04 as builder

ARG TARGETARCH=amd64
Copy link
Member Author

Choose a reason for hiding this comment

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

This wasn't used in this file so I removed it.

@Nishnha
Copy link
Member

Nishnha commented Jan 30, 2023

Could this close out #5536?
The PR also adds a build matrix for the new target arch but I don't think it's necessary since we have codespaces

@jakecoffman
Copy link
Member Author

@Nishnha no we still will need to add a workflow to build and publish for ARM to do that. This is just to clean up the scripts a bit.

Also I had reverted some changes @jeffwidman had done in #6502 and while researching it a bit more realized we don't have to set that value at all.

Copy link
Member

@jeffwidman jeffwidman left a comment

Choose a reason for hiding this comment

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

Oh nice, this is even cleaner than what I'd done!

@jakecoffman jakecoffman merged commit 0a94b90 into main Jan 30, 2023
@jakecoffman jakecoffman deleted the jakecoffman/use-automatic-targetarch branch January 30, 2023 21:46
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.

3 participants