-
Notifications
You must be signed in to change notification settings - Fork 137
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
Build container binaries outside of docker #419
Build container binaries outside of docker #419
Conversation
71f5d87
to
a9be8dd
Compare
Codecov Report
@@ Coverage Diff @@
## master #419 +/- ##
=======================================
Coverage 33.08% 33.08%
=======================================
Files 24 24
Lines 2170 2170
=======================================
Hits 718 718
Misses 1376 1376
Partials 76 76 Continue to review full report at Codecov.
|
46ebdac
to
68e87eb
Compare
With this PR we get CI result in 1/2 the time! |
I tend to like $() for functions and ${} for variables similar to bash, but make doesn't differentiate. $() has better syntax highlighting though so there's that :D. Signed-off-by: Manuel Mendez <[email protected]>
Change variables to be defined with `:=` so they are "Simply expanded variables" and not recursive... which basically just means they are evaluated immediately instead of when used. This is the least surprising behavior. While here I changed the names of some variables so its shorter and a little clearer. I also dropped use of GOOS as it doesn't seem used and moved CGO_ENABLED out of the recipe since it'll be re-used soon. Signed-off-by: Manuel Mendez <[email protected]>
Better settings for a better time. Signed-off-by: Manuel Mendez <[email protected]>
Use the full name instead of the package path/dir name. Makes things easier to do the crosscompile case later. Signed-off-by: Manuel Mendez <[email protected]>
Build all the binaries! Signed-off-by: Manuel Mendez <[email protected]>
DRY ftw. Signed-off-by: Manuel Mendez <[email protected]>
This is much faster than building in docker. Signed-off-by: Manuel Mendez <[email protected]>
Signed-off-by: Manuel Mendez <[email protected]>
Signed-off-by: Manuel Mendez <[email protected]>
68e87eb
to
24ee42e
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.
Perfect! Thanks for taking care of this
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.
VERY NICE
/lgtm
Description
Builds the binaries used in the docker images outside of docker.
Why is this needed
Fixes: #368
How Has This Been Tested?
Checked the built binaries with
file
.