kaniko/integration
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
..
context Fixes a whitelist issue when untarring files in ADD commands. (#371) 2018-09-28 11:42:07 -07:00
dockerfiles Re-add support for .dockerignore file 2018-12-10 15:20:25 -08:00
ignore Re-add support for .dockerignore file 2018-12-10 15:20:25 -08:00
.dockerignore Re-add support for .dockerignore file 2018-12-10 15:20:25 -08:00
cleanup.go Pass bucket and repo as args to tests 2018-07-31 09:53:59 -07:00
cmd.go Only return stdout when running commands for integration tests 2018-09-25 10:05:11 -07:00
gcs.go fix mispell 2018-10-14 00:38:18 +02:00
images.go Add benchmarking code (#448) 2018-11-28 11:54:12 -08:00
integration_test.go Re-add support for .dockerignore file 2018-12-10 15:20:25 -08:00