-
Notifications
You must be signed in to change notification settings - Fork 135
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
Add docker image building targets to Makefile #478
Conversation
Its not currently used. Signed-off-by: Manuel Mendez <[email protected]>
This will hopefully make the "main" targets of the makefile easier to find/use. Signed-off-by: Manuel Mendez <[email protected]>
Makefile now just has the targets that a caller is likely to be interested in, everything else goes into rules.mk. Hopefully this makes this Makefile easier to use/obvious. Signed-off-by: Manuel Mendez <[email protected]>
Signed-off-by: Manuel Mendez <[email protected]>
Codecov Report
@@ Coverage Diff @@
## master #478 +/- ##
=======================================
Coverage 32.09% 32.09%
=======================================
Files 44 44
Lines 3103 3103
=======================================
Hits 996 996
Misses 2017 2017
Partials 90 90 Continue to review full report at Codecov.
|
Thanks, when I look at Makefile I am not able to use it. I tried weeks ago
but it always requires too much time and I end up writing my own thing...
Do you think we can write something as part of the README.md about how to
do common tasks like genering all the binaries? single binaries? Does cross
compile? docker images and maybe clean the environment?
Thanks a lot!! This is mainly a request I personally have, but probably
many others have the same issue :D
…On Thu, Apr 8, 2021 at 4:50 PM Manuel Mendez ***@***.***> wrote:
@mmlb <https://github.com/mmlb> requested your review on: #478
<#478> Add docker image building
targets to Makefile.
—
You are receiving this because your review was requested.
Reply to this email directly, view it on GitHub
<#478 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAMOAO33OABYM44264A2F3TTHW7EHANCNFSM42TBXCGA>
.
|
I added I think the most relevant bits of that to README.md already. I also reworked the Makefile so only the "important" targets are there and also added |
@gianarb I was going to add the Also clean is just better off with |
This way the Dockerfile is written to take into account only its current dir for context which minimizes things uploaded to docker for the build. Signed-off-by: Manuel Mendez <[email protected]>
Signed-off-by: Manuel Mendez <[email protected]>
2324353
to
81f568e
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.
Thanks a lot!
Description
Adds make targets to build the docker images.
Why is this needed
Its not very obvious that a user needs to run
make crosscompile
before they can try to build the docker images (as came up in community slack yesterday).By having a proper target in the Makefile we might avoid this situation entirely.
How Has This Been Tested?
Ran
make images
Checklist:
I have: