diff options
Diffstat (limited to 'test/build')
-rw-r--r-- | test/build/from-multiple-files/Dockerfile1.alpine | 2 | ||||
-rw-r--r-- | test/build/from-multiple-files/Dockerfile1.scratch | 2 | ||||
-rw-r--r-- | test/build/from-multiple-files/Dockerfile2.glob | 2 | ||||
-rw-r--r-- | test/build/from-multiple-files/Dockerfile2.nofrom | 1 | ||||
-rw-r--r-- | test/build/from-multiple-files/Dockerfile2.withfrom | 2 | ||||
-rw-r--r-- | test/build/from-scratch/Dockerfile | 1 | ||||
-rw-r--r-- | test/build/http-context-subdir/context.tar | bin | 0 -> 10240 bytes | |||
-rw-r--r-- | test/build/http-context/context.tar | bin | 0 -> 10240 bytes | |||
-rw-r--r-- | test/build/preserve-volumes/Dockerfile | 22 | ||||
-rw-r--r-- | test/build/volume-perms/Dockerfile | 6 |
10 files changed, 38 insertions, 0 deletions
diff --git a/test/build/from-multiple-files/Dockerfile1.alpine b/test/build/from-multiple-files/Dockerfile1.alpine new file mode 100644 index 000000000..c6e3fc405 --- /dev/null +++ b/test/build/from-multiple-files/Dockerfile1.alpine @@ -0,0 +1,2 @@ +FROM alpine +COPY Dockerfile1.alpine /Dockerfile1 diff --git a/test/build/from-multiple-files/Dockerfile1.scratch b/test/build/from-multiple-files/Dockerfile1.scratch new file mode 100644 index 000000000..4f9ab8a60 --- /dev/null +++ b/test/build/from-multiple-files/Dockerfile1.scratch @@ -0,0 +1,2 @@ +FROM scratch +COPY Dockerfile1.scratch /Dockerfile1 diff --git a/test/build/from-multiple-files/Dockerfile2.glob b/test/build/from-multiple-files/Dockerfile2.glob new file mode 100644 index 000000000..1d843ba07 --- /dev/null +++ b/test/build/from-multiple-files/Dockerfile2.glob @@ -0,0 +1,2 @@ +FROM alpine +COPY Dockerfile* / diff --git a/test/build/from-multiple-files/Dockerfile2.nofrom b/test/build/from-multiple-files/Dockerfile2.nofrom new file mode 100644 index 000000000..0473c91d8 --- /dev/null +++ b/test/build/from-multiple-files/Dockerfile2.nofrom @@ -0,0 +1 @@ +COPY Dockerfile2.nofrom / diff --git a/test/build/from-multiple-files/Dockerfile2.withfrom b/test/build/from-multiple-files/Dockerfile2.withfrom new file mode 100644 index 000000000..fa3b96908 --- /dev/null +++ b/test/build/from-multiple-files/Dockerfile2.withfrom @@ -0,0 +1,2 @@ +FROM alpine +COPY Dockerfile2.withfrom / diff --git a/test/build/from-scratch/Dockerfile b/test/build/from-scratch/Dockerfile new file mode 100644 index 000000000..c35f1b5f5 --- /dev/null +++ b/test/build/from-scratch/Dockerfile @@ -0,0 +1 @@ +FROM scratch diff --git a/test/build/http-context-subdir/context.tar b/test/build/http-context-subdir/context.tar Binary files differnew file mode 100644 index 000000000..533ae524e --- /dev/null +++ b/test/build/http-context-subdir/context.tar diff --git a/test/build/http-context/context.tar b/test/build/http-context/context.tar Binary files differnew file mode 100644 index 000000000..2e5f3a515 --- /dev/null +++ b/test/build/http-context/context.tar diff --git a/test/build/preserve-volumes/Dockerfile b/test/build/preserve-volumes/Dockerfile new file mode 100644 index 000000000..922f565d7 --- /dev/null +++ b/test/build/preserve-volumes/Dockerfile @@ -0,0 +1,22 @@ +FROM alpine +RUN mkdir -p /vol/subvol/subsubvol +RUN dd if=/dev/zero bs=512 count=1 of=/vol/subvol/subsubvol/subsubvolfile +VOLUME /vol/subvol +# At this point, the contents below /vol/subvol should be frozen. +RUN dd if=/dev/zero bs=512 count=1 of=/vol/subvol/subvolfile +# In particular, /vol/subvol/subvolfile should be wiped out. +RUN dd if=/dev/zero bs=512 count=1 of=/vol/volfile +# However, /vol/volfile should exist. +VOLUME /vol +# And this should be redundant. +VOLUME /vol/subvol +# And now we've frozen /vol. +RUN dd if=/dev/zero bs=512 count=1 of=/vol/anothervolfile +# Which means that in the image we're about to commit, /vol/anothervolfile +# shouldn't exist, either. + +# ADD files which should persist. +ADD Dockerfile /vol/Dockerfile +RUN stat /vol/Dockerfile +ADD Dockerfile /vol/Dockerfile2 +RUN stat /vol/Dockerfile2 diff --git a/test/build/volume-perms/Dockerfile b/test/build/volume-perms/Dockerfile new file mode 100644 index 000000000..4dced7738 --- /dev/null +++ b/test/build/volume-perms/Dockerfile @@ -0,0 +1,6 @@ +FROM alpine +VOLUME /vol/subvol +# At this point, the directory should exist, with default permissions 0755, the +# contents below /vol/subvol should be frozen, and we shouldn't get an error +# from trying to write to it because we it was created automatically. +RUN dd if=/dev/zero bs=512 count=1 of=/vol/subvol/subvolfile |