-
Notifications
You must be signed in to change notification settings - Fork 787
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a conformance test to check how many layers the image we build uses, compared to the build using `docker build`. imagebuilder always adds exactly one layer, so there's no point in checking it. Count layers by counting the number of layer blobs that include items that we aren't specifically ignoring, because we create some things as side-effects of RUN instructions, and we already don't count them when comparing filesystems, and we don't want to count the layers that only supply them, because otherwise we'd have a lot of failures. Signed-off-by: Nalin Dahyabhai <[email protected]>
- Loading branch information
Showing
48 changed files
with
404 additions
and
11 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
FROM busybox | ||
ADD . . | ||
ADD . . |
4 changes: 4 additions & 0 deletions
4
tests/conformance/testdata/layers/base-plus-arg-plus-add/Dockerfile
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
FROM busybox | ||
ARG A=B | ||
LABEL B=$ARG | ||
ADD . . |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
FROM busybox | ||
ARG A=B | ||
LABEL B=$ARG |
3 changes: 3 additions & 0 deletions
3
tests/conformance/testdata/layers/base-plus-cmd-plus-add/Dockerfile
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
FROM busybox | ||
CMD ["/bin/sh"] | ||
ADD . . |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
FROM busybox | ||
CMD ["/bin/sh"] |
Oops, something went wrong.