kaniko/integration/dockerfiles
Priya Wadhwa b0b36ed85a Re-add support for .dockerignore file
This PR adds support for the dockerignore file. Previously when kaniko
had support for the dockerignore file, kaniko first went through the
build context and deleted files that were meant to be ignored. This
resulted in a really bad bug where files in user mounted volumes would
be deleted (my bad).

This time around, instead of modifying the build context at all, kaniko
will check if a file should be excluded when executing ADD/COPY
commands. If a file should be excluded (based on the .dockerignore) it
won't be copied over from the buildcontext and shouldn't end up in the
final image.

I also added a .dockerignore file and Dockerfile as an integration test,
which should fail if the dockerignore is not being processed correctly or if files aren't being excluded correctly.
Also, I removed all the integration testing from the previous version of the
dockerignore support.
2018-12-10 15:20:25 -08:00
..
Dockerfile_hardlink_base Extract filesystem in order rather than in reverse 2018-08-29 15:44:38 -07:00
Dockerfile_onbuild_base Fully qualify images in dockerfile tests (#257) 2018-07-25 17:56:17 -07:00
Dockerfile_test_add Fixes a whitelist issue when untarring files in ADD commands. (#371) 2018-09-28 11:42:07 -07:00
Dockerfile_test_cache Fix typo and update comments 2018-09-17 11:05:57 +01:00
Dockerfile_test_cache_install Fix caching for multi-step builds. (#441) 2018-11-09 12:28:18 -06:00
Dockerfile_test_cmd Fix integration test 2018-09-11 10:07:54 -07:00
Dockerfile_test_copy Don't copy same files twice in copy integration tests (#273) 2018-08-03 10:01:29 -07:00
Dockerfile_test_copy_bucket Don't copy same files twice in copy integration tests (#273) 2018-08-03 10:01:29 -07:00
Dockerfile_test_copy_reproducible Don't copy same files twice in copy integration tests (#273) 2018-08-03 10:01:29 -07:00
Dockerfile_test_copy_same_file_many_times Always snapshot files in COPY and RUN commands 2018-08-23 18:23:39 -07:00
Dockerfile_test_daemons reproduced 247 with integration test 2018-07-26 11:16:26 -07:00
Dockerfile_test_dockerignore Re-add support for .dockerignore file 2018-12-10 15:20:25 -08:00
Dockerfile_test_env Environment variables with multiple '=' are not parsed correctly (#278) 2018-08-07 10:22:48 -07:00
Dockerfile_test_expose Fully qualify images in dockerfile tests (#257) 2018-07-25 17:56:17 -07:00
Dockerfile_test_extract_fs Fully qualify images in dockerfile tests (#257) 2018-07-25 17:56:17 -07:00
Dockerfile_test_extraction Update test for link and file extraction to non-empty dir 2018-10-13 08:04:27 +09:00
Dockerfile_test_hardlink fixed digests for integration test 2018-11-19 15:26:02 -05:00
Dockerfile_test_ignore Add --ignore flag 2018-10-12 12:09:59 -07:00
Dockerfile_test_label Fully qualify images in dockerfile tests (#257) 2018-07-25 17:56:17 -07:00
Dockerfile_test_meta_arg parse arg commands at the top of dockerfiles (#404) 2018-11-06 15:27:09 -08:00
Dockerfile_test_metadata Fully qualify images in dockerfile tests (#257) 2018-07-25 17:56:17 -07:00
Dockerfile_test_multistage Get absolute path of file before checking whitelist 2018-08-17 18:29:11 -04:00
Dockerfile_test_mv_add Extract filesystem in order rather than in reverse 2018-08-29 15:44:38 -07:00
Dockerfile_test_onbuild Integration test refactoring (#126) 2018-05-15 13:42:35 -07:00
Dockerfile_test_registry Fully qualify images in dockerfile tests (#257) 2018-07-25 17:56:17 -07:00
Dockerfile_test_replaced_hardlinks Enable overwriting of links (solves #351) (#360) 2018-09-26 07:14:35 -07:00
Dockerfile_test_replaced_symlinks Enable overwriting of links (solves #351) (#360) 2018-09-26 07:14:35 -07:00
Dockerfile_test_run Set default home value (#281) 2018-08-10 12:58:07 -07:00
Dockerfile_test_run_2 Fully qualify images in dockerfile tests (#257) 2018-07-25 17:56:17 -07:00
Dockerfile_test_scratch Resolve env replacement for FROM command 2018-06-04 11:51:33 -07:00
Dockerfile_test_target Add --target flag for multistage builds (#255) 2018-07-30 09:43:23 -07:00
Dockerfile_test_user_run Modify integration test for setting root user explicitly 2018-10-18 18:08:34 +09:00
Dockerfile_test_volume Fix handling of volume directive 2018-09-28 11:16:25 +09:00
Dockerfile_test_volume_2 Fix handling of volume directive 2018-09-28 11:16:25 +09:00
Dockerfile_test_whitelist Only return filepath.SkipDir for directories 2018-11-19 15:56:11 -05:00
Dockerfile_test_workdir Integration test refactoring (#126) 2018-05-15 13:42:35 -07:00