-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Docker improvement #21
Conversation
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.
I can't really see any reason not to just make the default build
target statically linked? Is there that much benefit to having both on a small project like this?
16606ec
to
ebf7b2c
Compare
@yaegashi I've just checked over this and am happy with the content now, would you please squash the changes into logical commits and we'll get this merged |
156d4dd
to
01461f8
Compare
Update Makefile to build a static binary by default.
Update Dockefile to get a much smaller footprint with alpine image. Optimize ordering of build steps to avoid needless downloads. Include CA certificates needed for practical use.
Dockerfile.dev is ignored by both git and docker for faster development cycle of docker build.
01461f8
to
ccaa6e9
Compare
@JoelSpeed Squashed the changes into 3 commits. Feel free to ammend the commit logs or other wording issues before merging them. |
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.
Looks great, thanks very much!
Added audit log to indicate login username
* Support for tpl function in extra env values * Added ci tpl function test values * bump chart version up * updates to tpl test values and readme
Description
Update Makefile and Dockerfile to build a static binary and get a much smaller footprint with alpine image. It also includes CA certificates needed for practical use.
Add Dockerfile.dev in .gitignore and .dockerignore. It's to utilize cached build steps on Dockerfile development.
Optimize ordering of build steps in Dockerfile to avoid needless downloads.
Motivation and Context
This PR improves Docker building facilities to achieve a faster development cycle and a smaller footprint image for practical use.
How Has This Been Tested?
You can get build results very fast by utilizing cached build steps on development using Dockerfile.dev.
You can get 17.1MB in size by building this image.
Checklist: