-
Notifications
You must be signed in to change notification settings - Fork 426
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
Convert to multi-stage builds #589
Convert to multi-stage builds #589
Conversation
@tianon I've got some minimal changes in the templates to support multi-stage builds. I'm not sure what's up with the CI failure, however:
...I can reproduce the same error locally, but I'm not sure of the source of the error. It seems like Note that I had to add the Assistance is appreciated! I will of course clean up commit history once this is figured out. |
Sorry! If you drop your |
This is just about ready for review. I need to figure out why the alpine image is quite a bit larger with these changes in my env:
UPDATE: hmm I really have no idea why it's 35mb larger, especially since the ubuntu one is the same size 🤔 |
Within the running containers the sizes are comparable:
|
I'm not going to worry too much about the local image size because if I build from |
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.
Overall pretty minor comments all around! 👍
I did compare CI builds of yours to recent master CI builds, and the sizes look comparable:
- https://github.com/docker-library/rabbitmq/actions/runs/3483776129/jobs/5827634135#step:8:19 (your
3-alpine
, ~126MiB) - https://github.com/docker-library/rabbitmq/actions/runs/3483672593/jobs/5827423409#step:8:19 (master's
3-alpine
, ~128MiB) - Ubuntu-based builds were similar, yours at ~228MiB, master at ~229MiB
👍
(To be explicit: I think the |
I've always wondered exactly why |
@tianon thanks for the review. Seems like multiple builds are being generated for the same Docker image? https://github.com/docker-library/rabbitmq/actions/runs/3500314277 ...not sure if that's due to my changes or something in |
That's intentional -- note the |
@tianon I'll resolve the conflicts. Anything else need to be done? |
Hmm, investigating the latest round of alpine build failures. |
Follow-up to #587 Use buildkit
Ah, that's probably #592 -- Alpine 3.17 updated the default OpenSSL in the distro to OpenSSL 3, so maybe that's conflicting somehow (I thought we had some mitigations to avoid that but maybe they broke or something)? |
@tianon are we waiting on one more review here? Do you need anything else from me? |
Yeah, just waiting for @yosifkit to get some time to go through it again 👍 |
Changes: - docker-library/rabbitmq@86ae345: Merge pull request docker-library/rabbitmq#589 from lukebakken/lukebakken/multi-stage-2 - docker-library/rabbitmq@625a9a2: Update 3.11 to 3.11.5 - docker-library/rabbitmq@175c1b8: Update 3.10 to 3.10.13 - docker-library/rabbitmq@9afab9b: Update 3.9 to 3.9.27 - docker-library/rabbitmq@99d3ad5: Convert to multi-stage builds
Changes: - docker-library/rabbitmq@878cc31: Update 3.9 to otp 25.2 - docker-library/rabbitmq@eb98ea3: Update 3.11 to otp 25.2 - docker-library/rabbitmq@3d32bb2: Update 3.10 to otp 25.2 - docker-library/rabbitmq@86ae345: Merge pull request docker-library/rabbitmq#589 from lukebakken/lukebakken/multi-stage-2 - docker-library/rabbitmq@625a9a2: Update 3.11 to 3.11.5 - docker-library/rabbitmq@175c1b8: Update 3.10 to 3.10.13 - docker-library/rabbitmq@9afab9b: Update 3.9 to 3.9.27 - docker-library/rabbitmq@99d3ad5: Convert to multi-stage builds
Start with the Ubuntu template
Follow-up to #587