-
Notifications
You must be signed in to change notification settings - Fork 188
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
merge: Enable analysis for multistage Dockerfiles
This merge brings in changes that will enable analysis of multistage Dockerfiles. The problem with building multistage Dockerfiles is that Docker deletes the intermediate stages. One is finally left with the last container image that will contain the bare minimum to run something that was compiled in the previous stages. To get around this, Tern will split the Dockerfiles into several Dockerfiles corresponding to each of the stages. To prevent errors in copying artifacts from one stage to the next, Tern creates the intermediate Dockerfiles like so: original Dockerfile: FROM x as stage1 ... FROM y as stage2 ... FROM z as stage3 Intermediate Dockerfiles: 1: FROM x as stage1 ... 2: FROM x as stage1 ... FROM y as stage2 ... Tern will finally build the original Dockerfile to get the last stage for analysis. Note that the locking function still doesn't make use of this feature. Signed-off-by: Nisha K <nishak@vmware.com>
- Loading branch information
Showing
4 changed files
with
115 additions
and
63 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters