Uh oh!
There was an error while loading. Please reload this page.
Build and release low-size images with binary only - #250
Conversation
ciaranmcnulty
left a comment
There was a problem hiding this comment.
This looks good to me. It might be interesting in future to build them together with bake
Wirone
commented
Jul 12, 2022
@ciaranmcnulty do you mean Let's see what @alcohol says about it 🙂 |
alcohol
commented
Jul 25, 2022
I think a binary-only image is a good idea. The current build process/matrix is a bit crude admittedly, but, it works (:tm:) :sweat_smile: . Probably due for an overhaul, but this PR might do for now. Though it does not account for how the official images are generated. So in its current state, it would only apply for the community image on Docker Hub and Amazon ECR. |
Wirone
commented
Jul 25, 2022
Yes, I know and it was done like this on purpose. There's a doubt in PR's description:
I just thought I will follow this repository's convention and official tags will be handled somewhere else 😉 Even with regular I think it could be solved in separate MR that could automate process of creating MRs to official Docker registry. Anyway, not a blocker IMHO. |
This is probably doable. It actually is not very complicated. I update my fork of docker-library/official-images using the generate-stackbrew-library.sh script from this repository. I redirect the output of said script to library/composer, commit and push my changes, and then submit a pull-request (which takes like 2 seconds using |
alcohol
commented
Oct 28, 2022
Sorry for taking so long to get back to this. Could you update your PR to take into account the 2.4 directory? I'll merge it ASAP then. |
4098cff to
b3d6979CompareWirone
commented
Oct 28, 2022
@alcohol Done 🙂 Great news! PS. I did not remove you from review, I just clicked "request re-review" from @ciaranmcnulty 🤷♂️ |
alcohol
commented
Oct 31, 2022
Cheers |
alcohol
commented
Dec 20, 2022
Drats, this change seems to have broken the bashbrew script. Can't quite figure out what step though. |
Wirone
commented
Dec 21, 2022
@alcohol can you point me to that "bashbrew script"? What's failing? |
alcohol
commented
Dec 21, 2022
I managed to patch it. Turns out it wasn't really setup to parse dockerfiles with multiple |
Fixes#249
📖 Blog post with explanation.
ℹ️ INFO
I think it can be cleaned up to minimise redundancy, but I did not want refactor current process, rather follow existing convention.
Dockerfiles are fully backward compatible, because the last target in the file (which is built when--targetoption is not defined) builds full image, same as currently.diveoutput forstandalone-binaryandbinary-with-runtimetarget builds:2.4MB vs 188MB, quite a difference 😉
❓ Questions / doubts:
*-binimages there from now on?