-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Enable buildx support in docker container image extension #25542
Conversation
Thanks for your pull request! The title of your pull request does not follow our editorial rules. Could you have a look?
|
Do you see anything wrong with the way I added this to /**
* Additional command line arguments to be passed to the {@link #executableName}.
*/
@ConfigItem
public Optional<List<String>> additionalCommandArgs; I thought about just adding a Happy to have a conversation and/or change things up based on discussion. |
What is If we can avoid having catch-all configuration, I would prefer it. |
https://docs.docker.com/buildx/working-with-buildx Its used to build multi-arch images by emulating the arch outside of the arch of the system actually building the image. |
I'll have to take a look and get back to you |
See https://github.com/quarkusio/quarkus-super-heroes/blob/main/.github/workflows/build-push-container-images.yml#L81-L89 as well. With this change I wouldn't have to use the buildx github action. I could just use |
This comment has been minimized.
This comment has been minimized.
Sounds good. Happy to chat about it more and what you think the best approach would be. I agree having a "catch-all" that blindly appends things to the command line isn't the best idea. We could instead use a |
How does |
I don't think this is correct, because the executable is still |
Buildx is a plugin to the docker command, so you would run the command So in that use case where you are using the GitHub action with Maybe the thing to do is to introduce the new I'm not sure we could (or should) test that they have |
I think the simplest and most reasonable thing to do is add a |
I agree. If we do this, though, and the user in the workflow sets the action to I don't think that is the majority use case though. If you simply run I also think we should take it 1 step further. If the And of course, all of this will be documented in the documentation :) |
@geoand are there tests anywhere in the codebase that test all these config options and make sure the correct |
Nope, but you can certainly add some |
Something I just thought of. There are a bunch of options that buildx supports (https://docs.docker.com/engine/reference/commandline/buildx_build/#options). Some of these are just carry-over from the generic Instead of a single Output is important because docker buildx can only load created images into WDYT @geoand ? |
I like the idea |
@geoand take a look at what I pushed. I made a few other changes as well around tagging/pushing. When building multi-arch images in a single step, those images are not loaded into I used the combination of configuring any of the new If not using any of the buildx properties then things work the way they always did. I also wasn't sure if I needed to add |
This comment has been minimized.
This comment has been minimized.
8277db0
to
dd2911e
Compare
Once everything is done, we'll definitely need the commits in better shape :) |
I'm done coding. On the PR you can look on the top at the file browser. It combines the commits. I tried to rebase to a single commit but something got messed up when I merged main back in. |
We'll need the commits squashed / renamed, as we require semantic commits in Quarkus and a repository that builds properly at any commit. My request has nothing to do with viewing the changes |
I'll take care of it on Monday. |
f068ee6
to
6267670
Compare
c3878f6
to
e675000
Compare
This was spawned from the conversation in #25467 - a way to pass additional arguments to the
container-image-docker
build process.