-
Notifications
You must be signed in to change notification settings - Fork 788
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2688 from nalind/moar-dockerignore-1.16
[release-1.16] ADD and COPY: descend into excluded directories, sometimes
- Loading branch information
Showing
34 changed files
with
241 additions
and
26 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
7 changes: 7 additions & 0 deletions
7
tests/conformance/testdata/dockerignore/allowlist/alternating-nothing/.dockerignore
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,7 @@ | ||
** | ||
!subdir | ||
subdir/subdir1 | ||
!subdir/subdir1/subdir2 | ||
subdir/subdir1/subdir2/subdir3 | ||
!subdir/subdir1/subdir2/subdir3/subdir4 | ||
subdir/subdir1/subdir2/subdir3/subdir4/subdir5 |
8 changes: 8 additions & 0 deletions
8
tests/conformance/testdata/dockerignore/allowlist/alternating-nothing/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,8 @@ | ||
FROM scratch | ||
ADD subdir / | ||
ADD subdir/subdir1 / | ||
ADD subdir/subdir1/subdir2 / | ||
ADD subdir/subdir1/subdir2/subdir3 / | ||
ADD subdir/subdir1/subdir2/subdir3/subdir4 / | ||
ADD subdir/subdir1/subdir2/subdir3/subdir4/subdir5 / | ||
ADD subdir/subdir1/subdir2/subdir3/subdir4/subdir5/file / |
1 change: 1 addition & 0 deletions
1
...rignore/allowlist/alternating-nothing/subdir/subdir1/subdir2/subdir3/subdir4/subdir5/file
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 @@ | ||
Hi, I'm a file. |
8 changes: 8 additions & 0 deletions
8
tests/conformance/testdata/dockerignore/allowlist/alternating-other/.dockerignore
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,8 @@ | ||
** | ||
!subdir | ||
subdir/subdir1 | ||
!subdir/subdir1/subdir2 | ||
subdir/subdir1/subdir2/subdir3 | ||
!subdir/subdir1/subdir2/subdir3/subdir4 | ||
subdir/subdir1/subdir2/subdir3/subdir4/subdir5 | ||
!subdir/subdir1/subdir2/subdir3/subdir4/subdir5/file |
8 changes: 8 additions & 0 deletions
8
tests/conformance/testdata/dockerignore/allowlist/alternating-other/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,8 @@ | ||
FROM scratch | ||
ADD subdir / | ||
ADD subdir/subdir1 / | ||
ADD subdir/subdir1/subdir2 / | ||
ADD subdir/subdir1/subdir2/subdir3 / | ||
ADD subdir/subdir1/subdir2/subdir3/subdir4 / | ||
ADD subdir/subdir1/subdir2/subdir3/subdir4/subdir5 / | ||
ADD subdir/subdir1/subdir2/subdir3/subdir4/subdir5/file / |
1 change: 1 addition & 0 deletions
1
...erignore/allowlist/alternating-other/subdir/subdir1/subdir2/subdir3/subdir4/subdir5/file2
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 @@ | ||
Hi, I'm a file. |
8 changes: 8 additions & 0 deletions
8
tests/conformance/testdata/dockerignore/allowlist/alternating/.dockerignore
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,8 @@ | ||
** | ||
!subdir | ||
subdir/subdir1 | ||
!subdir/subdir1/subdir2 | ||
subdir/subdir1/subdir2/subdir3 | ||
!subdir/subdir1/subdir2/subdir3/subdir4 | ||
subdir/subdir1/subdir2/subdir3/subdir4/subdir5 | ||
!subdir/subdir1/subdir2/subdir3/subdir4/subdir5/file |
8 changes: 8 additions & 0 deletions
8
tests/conformance/testdata/dockerignore/allowlist/alternating/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,8 @@ | ||
FROM scratch | ||
ADD subdir / | ||
ADD subdir/subdir1 / | ||
ADD subdir/subdir1/subdir2 / | ||
ADD subdir/subdir1/subdir2/subdir3 / | ||
ADD subdir/subdir1/subdir2/subdir3/subdir4 / | ||
ADD subdir/subdir1/subdir2/subdir3/subdir4/subdir5 / | ||
ADD subdir/subdir1/subdir2/subdir3/subdir4/subdir5/file / |
1 change: 1 addition & 0 deletions
1
...ta/dockerignore/allowlist/alternating/subdir/subdir1/subdir2/subdir3/subdir4/subdir5/file
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 @@ | ||
Hi, I'm a file. |
1 change: 1 addition & 0 deletions
1
tests/conformance/testdata/dockerignore/allowlist/nothing-dot/.dockerignore
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 @@ | ||
** |
5 changes: 5 additions & 0 deletions
5
tests/conformance/testdata/dockerignore/allowlist/nothing-dot/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,5 @@ | ||
FROM busybox | ||
RUN touch /file | ||
FROM scratch | ||
COPY --from=0 /file / | ||
ADD . . |
1 change: 1 addition & 0 deletions
1
tests/conformance/testdata/dockerignore/allowlist/nothing-slash/.dockerignore
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 @@ | ||
** |
5 changes: 5 additions & 0 deletions
5
tests/conformance/testdata/dockerignore/allowlist/nothing-slash/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,5 @@ | ||
FROM busybox | ||
RUN touch /file | ||
FROM scratch | ||
COPY --from=0 /file / | ||
ADD / / |
2 changes: 2 additions & 0 deletions
2
tests/conformance/testdata/dockerignore/allowlist/subdir-file/.dockerignore
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 @@ | ||
** | ||
!folder1/file1 |
2 changes: 2 additions & 0 deletions
2
tests/conformance/testdata/dockerignore/allowlist/subdir-file/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,2 @@ | ||
FROM scratch | ||
ADD folder1 /f1 |
1 change: 1 addition & 0 deletions
1
tests/conformance/testdata/dockerignore/allowlist/subdir-file/folder1/file1
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 @@ | ||
Hi, I'm file 1. |
1 change: 1 addition & 0 deletions
1
tests/conformance/testdata/dockerignore/allowlist/subdir-file/folder1/file2
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 @@ | ||
Hi, I'm file 2. |
2 changes: 2 additions & 0 deletions
2
tests/conformance/testdata/dockerignore/allowlist/subdir-nofile/.dockerignore
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 @@ | ||
** | ||
!folder1/file |
2 changes: 2 additions & 0 deletions
2
tests/conformance/testdata/dockerignore/allowlist/subdir-nofile/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,2 @@ | ||
FROM scratch | ||
ADD folder1 /f1 |
1 change: 1 addition & 0 deletions
1
tests/conformance/testdata/dockerignore/allowlist/subdir-nofile/folder1/file1
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 @@ | ||
Hi, I'm file 1. |
1 change: 1 addition & 0 deletions
1
tests/conformance/testdata/dockerignore/allowlist/subdir-nofile/folder1/file2
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 @@ | ||
Hi, I'm file 2. |
2 changes: 2 additions & 0 deletions
2
tests/conformance/testdata/dockerignore/allowlist/subsubdir-file/.dockerignore
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 @@ | ||
** | ||
!folder/subfolder/file |
5 changes: 5 additions & 0 deletions
5
tests/conformance/testdata/dockerignore/allowlist/subsubdir-file/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,5 @@ | ||
FROM busybox | ||
RUN touch /file | ||
FROM scratch | ||
COPY --from=0 /file / | ||
ADD . . |
1 change: 1 addition & 0 deletions
1
tests/conformance/testdata/dockerignore/allowlist/subsubdir-file/folder/subfolder/file
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 @@ | ||
I'm a file. |
2 changes: 2 additions & 0 deletions
2
tests/conformance/testdata/dockerignore/allowlist/subsubdir-nofile/.dockerignore
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 @@ | ||
** | ||
!folder/subfolder/file |
5 changes: 5 additions & 0 deletions
5
tests/conformance/testdata/dockerignore/allowlist/subsubdir-nofile/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,5 @@ | ||
FROM busybox | ||
RUN touch /file | ||
FROM scratch | ||
COPY --from=0 /file / | ||
ADD . . |
1 change: 1 addition & 0 deletions
1
tests/conformance/testdata/dockerignore/allowlist/subsubdir-nofile/folder/file
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 @@ | ||
I'm a file. |
2 changes: 2 additions & 0 deletions
2
tests/conformance/testdata/dockerignore/allowlist/subsubdir-nosubdir/.dockerignore
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 @@ | ||
** | ||
!folder/subfolder/file |
5 changes: 5 additions & 0 deletions
5
tests/conformance/testdata/dockerignore/allowlist/subsubdir-nosubdir/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,5 @@ | ||
FROM busybox | ||
RUN touch /file | ||
FROM scratch | ||
COPY --from=0 /file / | ||
ADD . . |
1 change: 1 addition & 0 deletions
1
tests/conformance/testdata/dockerignore/allowlist/subsubdir-nosubdir/folder/file
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 @@ | ||
Hi, I'm a file |