-
Notifications
You must be signed in to change notification settings - Fork 898
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
chore: Improve image build speed #1919 #1948
chore: Improve image build speed #1919 #1948
Conversation
Signed-off-by: Justin Marquis <[email protected]>
Codecov Report
@@ Coverage Diff @@
## master #1948 +/- ##
==========================================
+ Coverage 82.42% 82.43% +0.01%
==========================================
Files 119 119
Lines 16913 16913
==========================================
+ Hits 13940 13943 +3
+ Misses 2282 2280 -2
+ Partials 691 690 -1
Continue to review full report at Codecov.
|
Signed-off-by: Justin Marquis <[email protected]>
Signed-off-by: Justin Marquis <[email protected]>
Signed-off-by: Justin Marquis <[email protected]>
Kudos, SonarCloud Quality Gate passed! |
I noticed line# 66 of the Dockerfile we were compiling The release workflow now also supports all of the optimizations. Image build times should be about 10 minutes now!!! All these changes have been fully tested, I have ran them on GitHub runners, built images locally and verified images sizes and binaries work on both architectures. Please add a label of "test-arm-image" to this PR. |
@harikrongali can you please review this when you get a chance? |
@crenshaw-dev can you review? |
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!
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.
thank you!
* chore: Improve image build speed argoproj#2 Signed-off-by: Justin Marquis <[email protected]> * chore: Added test-arm-image test for arm64 Signed-off-by: Justin Marquis <[email protected]> * chore: enabled buildkit for docker build commands Signed-off-by: Justin Marquis <[email protected]> * chore: support for releases and further docker optimizations Signed-off-by: Justin Marquis <[email protected]>
Signed-off-by: Justin Marquis [email protected]
This is a follow-up to PR#1919. Cache created from the
controller-image
should be used to build theplugin-image
. Buildx uses Buildkit under the hood and uses "Automatic garbage collection" which has a default policy of 10% of free disk space. Disabling the garbage collection ensures that the cache is temporarily stored for the duration of the runner.I also made a small change to the Dockerfile to provide support for older versions of Docker and Podman which do not support multiple args on a single line.
Checklist:
(a) I've created an enhancement proposal and discussed it with the community, (b) this is a bug fix, or(c) this is a chore."fix(controller): Updates such and such. Fixes #1234"
.