-
Notifications
You must be signed in to change notification settings - Fork 278
Add support for docker buildx on linux builds #594
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
Conversation
This ensures that the platform in the image manifest matches the platform of the binaries.
What kinda effort are we looking at to align the build with Windows? I'd rather not maintain 2 different systems |
@brycahta Agreed, but currently it's a big unknown to me. I didn't discover it until yesterday. Have been trying to get a build running on a Windows laptop with buildx but so far no luck. Documentation on that use case seems kinda scarce, too, oddly. Lots of "cross-compile all your Linux containers from a Windows machine" but very little of "use buildx on Windows to build Windows containers". Should be possible, but I don't yet have any idea how much work it will be. |
7f60ff0 to
d249eac
Compare
This ensures that we will keep any existing images in the remote manifest when we add the new image to that manifest list.
d249eac to
80f7283
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you also update docker build commands in BUILD.md? It could also be a good place to add some info regarding Windows using build instead of buildx
🙏 many thanks |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
This ensures that the platform in the image manifest matches the platform of the binaries.
Issue #, if available: #584
Description of changes:
TARGETOSandTARGETARCHlinux/armanddarwin/amd64images, since they are not used in production workloads. Continuing to build them now would require using a different base image thanamazonlinux:2, which does not support those architectures.Testing:
Tested with GitHub Actions on my fork, publishing to an ECR Public repo in my personal AWS account. Windows and Linux builds worked successfully, and the manifests are correct.
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.