kaniko/integration/dockerfiles
Aris Buzachis 61312a95ae
fix(WORKDIR): use the config.User for the new dir permissions (#2269)
WORKDIR ignores the currently set USER and creates the new directories
with the root user ownership.

This changes that, by executing a chown after the mkdir if needed, and
also handle the case where the provided USER is an uid and the passwd
file is not available to resolve to the username.

Fixes #2259

Signed-off-by: Aris Buzachis <buzachis.aris@gmail.com>

Signed-off-by: Aris Buzachis <buzachis.aris@gmail.com>
2022-09-28 21:18:40 -04:00
..
1097 Add secondary group impersonation w/ !cgo support 2020-03-28 22:01:20 -07:00
Dockerfile_dockerignore_relative Fix integration tests for #776 2019-10-04 10:31:40 +02:00
Dockerfile_dockerignore_relative.dockerignore Fix integration tests for #776 2019-10-04 10:31:40 +02:00
Dockerfile_git_buildcontext Improve git buildcontext integration test 2019-05-23 16:12:20 +02:00
Dockerfile_hardlink_base Extract filesystem in order rather than in reverse 2018-08-29 15:44:38 -07:00
Dockerfile_onbuild_base Run integration tests in Travis CI 2020-01-19 22:33:04 -08:00
Dockerfile_registry_mirror image: fix registry mirror setup 2020-02-16 11:41:51 +01:00
Dockerfile_relative_copy fix #1092 TestRelativePaths 2020-02-29 21:16:07 -08:00
Dockerfile_test_add chore: add workflows for pr tests (#1766) 2021-10-18 23:22:44 -07:00
Dockerfile_test_add_404 add should fail on 40x 2020-06-20 09:49:11 +02:00
Dockerfile_test_add_dest_symlink_dir Add new test for copy to symlink which should fail 2019-11-15 11:23:04 -08:00
Dockerfile_test_add_url_with_arg Add integration test for add url with arg 2019-11-15 14:44:39 -08:00
Dockerfile_test_arg_blank_with_quotes Issue #439 add additional tests for quotes 2019-10-25 16:08:57 -07:00
Dockerfile_test_arg_from_quotes Issue #439 add additional tests for quotes 2019-10-25 16:08:57 -07:00
Dockerfile_test_arg_from_single_quotes Issue #439 add additional tests for quotes 2019-10-25 16:08:57 -07:00
Dockerfile_test_arg_multi Fix arg handling for multi-stage images in COPY instructions. (#621) 2019-03-22 12:24:43 -05:00
Dockerfile_test_arg_multi_empty_val Fix quote strip behavior for ARG values 2019-11-08 14:28:31 -08:00
Dockerfile_test_arg_multi_with_quotes Issue #439 double quotes in ARG value 2019-10-24 16:30:25 -07:00
Dockerfile_test_arg_secret Expand build argument from environment when no value specified 2020-01-30 12:01:06 +01:00
Dockerfile_test_arg_two_level Added integration test for multi level argument 2020-05-24 13:04:31 +02:00
Dockerfile_test_cache Run integration tests in Travis CI 2020-01-19 22:33:04 -08:00
Dockerfile_test_cache_copy Adding missing integration test file 2019-11-04 09:30:58 -08:00
Dockerfile_test_cache_copy_oci Provide `--cache-repo` as OCI image layout path (#2250) 2022-09-28 10:19:02 -04:00
Dockerfile_test_cache_install Run integration tests in Travis CI 2020-01-19 22:33:04 -08:00
Dockerfile_test_cache_install_oci Provide `--cache-repo` as OCI image layout path (#2250) 2022-09-28 10:19:02 -04:00
Dockerfile_test_cache_oci Provide `--cache-repo` as OCI image layout path (#2250) 2022-09-28 10:19:02 -04:00
Dockerfile_test_cache_perm Fix file mode bug (#618) 2019-03-18 13:28:24 -05:00
Dockerfile_test_cache_perm_oci Provide `--cache-repo` as OCI image layout path (#2250) 2022-09-28 10:19:02 -04:00
Dockerfile_test_cmd Run integration tests in Travis CI 2020-01-19 22:33:04 -08:00
Dockerfile_test_complex_substitution Don't generate cache key, if not caching builds. 2020-04-13 16:50:13 -06: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_chown_nonexisting_user fix: getUIDandGID is able to resolve non-existing users and groups (#2106) 2022-07-12 10:21:37 -04: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_copy_symlink create correct link across Multistage builds 2020-03-07 11:28:16 -08:00
Dockerfile_test_daemons Deflake the daemon test (#532) 2019-01-17 15:30:08 -05:00
Dockerfile_test_dangling_symlink Ignore the target of dangling symlinks. 2020-04-13 16:26:19 -06:00
Dockerfile_test_deleted_file_cached GetFSFromLayers 2020-01-17 13:36:23 -08:00
Dockerfile_test_dockerignore Fix .dockerignore for build context copies in later stages (#1447) 2020-10-08 12:47:14 -07:00
Dockerfile_test_env Run integration tests in Travis CI 2020-01-19 22:33:04 -08:00
Dockerfile_test_expose Run integration tests in Travis CI 2020-01-19 22:33:04 -08:00
Dockerfile_test_extract_fs Run integration tests in Travis CI 2020-01-19 22:33:04 -08: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_from_multistage_capital Fix #519 capital letter in stage names 2020-01-20 15:57:05 -08: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_issue_519 add integration tests from GH issues 2020-02-27 11:04:55 -08:00
Dockerfile_test_issue_647 add integration tests from GH issues 2020-02-27 11:04:55 -08:00
Dockerfile_test_issue_684 add integration tests from GH issues 2020-02-27 11:04:55 -08:00
Dockerfile_test_issue_704 add integration tests from GH issues 2020-02-27 11:04:55 -08:00
Dockerfile_test_issue_1039 Resolve filepaths before scanning for changes 2020-02-20 09:45:44 -08:00
Dockerfile_test_issue_1837 refactor: Make CLI argument names consistent (#2084) 2022-08-22 09:10:11 -04:00
Dockerfile_test_issue_2049 fix: Add test for issue #2049 (#2114) 2022-06-01 06:55:36 -04:00
Dockerfile_test_issue_2066 fix: Regression test for #2066 (#2096) 2022-05-18 06:35:35 -04:00
Dockerfile_test_label Run integration tests in Travis CI 2020-01-19 22:33:04 -08:00
Dockerfile_test_maintainer Handle `MAINTAINERS` when passing `--single-snapshot`. 2020-04-13 15:54:27 -06:00
Dockerfile_test_meta_arg Run integration tests in Travis CI 2020-01-19 22:33:04 -08:00
Dockerfile_test_metadata Run integration tests in Travis CI 2020-01-19 22:33:04 -08:00
Dockerfile_test_multistage rename whitelist to ignorelist 2020-06-02 15:56:27 -07:00
Dockerfile_test_multistage_args_issue_1911 Fix resolving arguments over multi-stage build (#1928) 2022-02-10 09:22:21 -08: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_parent_dir_perms Fix parent directory permissions (#619) 2019-03-19 12:40:15 -05: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 Fix #1067 - image no longer available 2020-02-20 08:40:38 -08:00
Dockerfile_test_run Run integration tests in Travis CI 2020-01-19 22:33:04 -08:00
Dockerfile_test_run_2 Run integration tests in Travis CI 2020-01-19 22:33:04 -08:00
Dockerfile_test_run_new lint 2020-06-06 00:30:07 -07:00
Dockerfile_test_run_redo add integration tests 2020-06-06 00:53:08 -07:00
Dockerfile_test_scratch Resolve env replacement for FROM command 2018-06-04 11:51:33 -07:00
Dockerfile_test_snapshotter_ignorelist Fix snapshotter ignore list; do not attempt to delete whiteouts of ignored paths (#1652) 2021-06-04 10:07:24 -07:00
Dockerfile_test_target Add --target flag for multistage builds (#255) 2018-07-30 09:43:23 -07:00
Dockerfile_test_user Run integration tests in Travis CI 2020-01-19 22:33:04 -08:00
Dockerfile_test_user_home run: user LookupId 2020-03-05 16:44:55 +01:00
Dockerfile_test_user_nonexisting fix: getUIDandGID is able to resolve non-existing users and groups (#2106) 2022-07-12 10:21:37 -04:00
Dockerfile_test_user_run Run integration tests in Travis CI 2020-01-19 22:33:04 -08:00
Dockerfile_test_volume Run integration tests in Travis CI 2020-01-19 22:33:04 -08:00
Dockerfile_test_volume_2 Run integration tests in Travis CI 2020-01-19 22:33:04 -08:00
Dockerfile_test_volume_3 Fix a bug in volume handling for multi-stage images. (#554) 2019-02-07 09:01:49 -06:00
Dockerfile_test_volume_4 This fixes a bug in the interaction between volumes in base images (#555) 2019-02-08 14:40:37 -06:00
Dockerfile_test_whitelist Only return filepath.SkipDir for directories 2018-11-19 15:56:11 -05:00
Dockerfile_test_workdir Make sure integration test has a relative workdir 2020-05-04 09:48:09 -07:00
Dockerfile_test_workdir_with_user fix(WORKDIR): use the config.User for the new dir permissions (#2269) 2022-09-28 21:18:40 -04:00