-
Notifications
You must be signed in to change notification settings - Fork 65
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
deduplicate layer IDs to handle cases where duplicate layers are in t…
…he layer tree Signed-off-by: Jose R. Gonzalez <[email protected]>
- Loading branch information
Showing
3 changed files
with
109 additions
and
34 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
15 changes: 15 additions & 0 deletions
15
test/containerfiles/container-duplicate-noop-layers.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,15 @@ | ||
FROM registry.access.redhat.com/ubi8-minimal@sha256:9e458f41ff8868ceae00608a6fff35b45fd8bbe967bf8655e5ab08da5964f4d0 | ||
|
||
# This container file backs | ||
# quay.io/opdev/preflight-test-fixture:duplicate-layers, and is intended to test | ||
# an edge case with HasModifiedFiles where multiple duplicate layers were geting | ||
# squashed into a single entry in our layer-to-file map, causing invalid | ||
# modification flags. | ||
# | ||
# The produced artifact is about 100mb, so this fixture exists just to avoid | ||
# having that blob stored in-repo. | ||
|
||
COPY example-license.txt /LICENSE | ||
RUN microdnf install gzip -y | ||
COPY example-license.txt /LICENSE | ||
RUN microdnf install gzip -y |