-
Notifications
You must be signed in to change notification settings - Fork 642
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 support of docker multi stage builds #1057
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1057 +/- ##
============================================
+ Coverage 51.98% 52.27% +0.29%
+ Complexity 1486 1405 -81
============================================
Files 150 147 -3
Lines 7951 7566 -385
Branches 1192 1149 -43
============================================
- Hits 4133 3955 -178
+ Misses 3412 3233 -179
+ Partials 406 378 -28
|
dc4c1a9
to
00e11fa
Compare
*/ | ||
@Deprecated | ||
public static String extractBaseImage(File dockerFile, FixedStringSearchInterpolator interpolator) throws IOException { |
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 ! The PR looks good, but could you please elaborate a bit why mutlti stage builds would make sense in the context of d-m-p ? Do you have concrete use case ? |
Hi, @rhuss
I faced it when started mysql container for integration test with fixtures. So
In turn
But when i run my test i want to get rid of intermediate fixture files and patcher application so that image become more lightweight. |
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'm fine with the change, let's merge it.
This PR adds support of docker multi stage builds using
Dockerfile
.See https://docs.docker.com/develop/develop-images/multistage-build/ for feature description.