kaniko/pkg/commands
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
..
add.go Fix caching for multi-step builds. (#441) 2018-11-09 12:28:18 -06:00
arg.go parse arg commands at the top of dockerfiles (#404) 2018-11-06 15:27:09 -08:00
base_command.go Improve cache layer uploads. (#443) 2018-11-12 16:22:04 -06:00
cmd.go Rework cache key generation a bit. (#375) 2018-10-03 16:16:12 -05:00
cmd_test.go Rework cache key generation a bit. (#375) 2018-10-03 16:16:12 -05:00
commands.go Improve cache layer uploads. (#443) 2018-11-12 16:22:04 -06:00
copy.go Re-add support for .dockerignore file 2018-12-10 15:20:25 -08:00
entrypoint.go Rework cache key generation a bit. (#375) 2018-10-03 16:16:12 -05:00
entrypoint_test.go Rework cache key generation a bit. (#375) 2018-10-03 16:16:12 -05:00
env.go Rework cache key generation a bit. (#375) 2018-10-03 16:16:12 -05:00
env_test.go Rework cache key generation a bit. (#375) 2018-10-03 16:16:12 -05:00
expose.go Rework cache key generation a bit. (#375) 2018-10-03 16:16:12 -05:00
expose_test.go Rework cache key generation a bit. (#375) 2018-10-03 16:16:12 -05:00
healthcheck.go Rework cache key generation a bit. (#375) 2018-10-03 16:16:12 -05:00
label.go Rework cache key generation a bit. (#375) 2018-10-03 16:16:12 -05:00
label_test.go Update deps 2018-07-31 16:23:23 -07:00
onbuild.go Rework cache key generation a bit. (#375) 2018-10-03 16:16:12 -05:00
onbuild_test.go Rework cache key generation a bit. (#375) 2018-10-03 16:16:12 -05:00
run.go Improve cache layer uploads. (#443) 2018-11-12 16:22:04 -06:00
run_test.go Add test for setting root user explicitly 2018-10-18 17:46:43 +09:00
shell.go Rework cache key generation a bit. (#375) 2018-10-03 16:16:12 -05:00
shell_test.go Rework cache key generation a bit. (#375) 2018-10-03 16:16:12 -05:00
stopsignal.go Rework cache key generation a bit. (#375) 2018-10-03 16:16:12 -05:00
stopsignal_test.go Rework cache key generation a bit. (#375) 2018-10-03 16:16:12 -05:00
user.go Rework cache key generation a bit. (#375) 2018-10-03 16:16:12 -05:00
user_test.go Rework cache key generation a bit. (#375) 2018-10-03 16:16:12 -05:00
volume.go Refactor the build loop. (#385) 2018-10-09 12:15:17 -05:00
volume_test.go Refactor the build loop. (#385) 2018-10-09 12:15:17 -05:00
workdir.go Fix caching for multi-step builds. (#441) 2018-11-09 12:28:18 -06:00
workdir_test.go Update deps 2018-07-31 16:23:23 -07:00