Yoan Blanc
3ff2ee3ba5
copy: unit test for chown
...
Signed-off-by: Yoan Blanc <yoan@dosimple.ch>
2020-03-17 15:19:00 +01:00
Dani Raznikov
c136f886a9
Add support to --chown flag to ADD command
2020-03-14 16:24:40 +02:00
Tejal Desai
9592f2640f
more tests similar to docker cp
2020-03-09 15:54:35 -07:00
Tejal Desai
c523c691eb
revert back to old 0.17.1 behavior
2020-03-06 23:48:31 -08:00
Tejal Desai
8f87267002
fix lint error
2020-03-06 21:37:00 -08:00
Tejal Desai
6c14d202a3
better error wrapping and add more tests for copy
2020-03-06 17:18:36 -08:00
Tejal Desai
b4b70d040a
wip
2020-03-06 13:08:02 -08:00
Tejal Desai
3cc8aa2a9c
fix resolve link for dirs with trailing /
2020-03-06 09:38:00 -08:00
Yoan Blanc
fc668cd2b5
fixup! fixup! fixup! run: user LookupId
...
Signed-off-by: Yoan Blanc <yoan@dosimple.ch>
2020-03-05 17:26:04 +01:00
Yoan Blanc
bd77f131fd
fixup! fixup! run: user LookupId
...
Signed-off-by: Yoan Blanc <yoan@dosimple.ch>
2020-03-05 17:00:14 +01:00
Yoan Blanc
67fbdef360
fixup! run: user LookupId
...
Signed-off-by: Yoan Blanc <yoan@dosimple.ch>
2020-03-05 16:49:13 +01:00
Yoan Blanc
c7028c6d2f
run: user LookupId
...
Signed-off-by: Yoan Blanc <yoan@dosimple.ch>
2020-03-05 16:44:55 +01:00
Yoan Blanc
c553184416
user_test: docker doesn't care about group really
...
Signed-off-by: Yoan Blanc <yoan@dosimple.ch>
2020-03-05 16:34:06 +01:00
Tejal Desai
9e83210b07
Rebase over 1105
2020-03-04 14:16:24 -08:00
Yoan Blanc
3d9bb21f75
user: keep existing HOME env
...
Signed-off-by: Yoan Blanc <yoan@dosimple.ch>
2020-03-04 14:14:25 -08:00
Yoan Blanc
fec7c126f9
run: set userStr
...
Signed-off-by: Yoan Blanc <yoan@dosimple.ch>
2020-03-04 14:14:10 -08:00
Yoan Blanc
52acd798f8
run: unset any HOME variable after USER ran
...
Running USER didn't reset HOME which had to be explicitly set.
Closes #1082
Signed-off-by: Yoan Blanc <yoan@dosimple.ch>
2020-03-04 14:12:42 -08:00
Tejal Desai
c1e3f42625
fix user metadata string
2020-03-04 13:08:38 -08:00
Tejal Desai
17f808da8a
check for filepath.Walk error everywhere
2020-02-28 04:23:27 -08:00
Tejal Desai
8d9e6b8ea5
Merge pull request #1027 from tejal29/small_refacto
...
refactor copy.chown code and add more tests
2020-02-07 13:48:05 -08:00
Tejal Desai
a17ad8e8e8
Merge pull request #882 from cvgw/u/cvgw/reuse-cached-layer
...
Do not recompute layers retrieved from cache
2020-02-07 13:37:39 -08:00
Tejal Desai
d94a1ed53b
fix linter
2020-02-06 11:40:41 -08:00
Tejal Desai
9dba097a7e
refactor and add more tests
2020-02-06 11:40:41 -08:00
Tejal Desai
2cd68d2e2f
fix flake in copy symlink
2020-02-05 14:40:52 -08:00
Tejal Desai
56125ff464
Rebase from master with some changes
2020-02-03 14:57:10 -08:00
xanonid
ac4c80d241
Refactor code, introduce constants for uid/gid = -1
2020-02-03 14:56:23 -08:00
xanonid
e3b5a7b85d
Support COPY --chown flag ( Closes : #9 )
2020-02-03 14:56:23 -08:00
Tejal Desai
18fec3ba38
fix lint
2020-02-03 11:03:58 -08:00
Tejal Desai
db6f6c5ad3
more tests and do not error out if user not found
2020-02-03 10:11:40 -08:00
Tejal Desai
956495784e
fix group string being always set to uid in case a user has a gid set
2020-02-01 15:19:36 -08:00
Tejal Desai
0529579db7
Merge pull request #971 from tejal29/915
...
Fix Symlinks not being copied across stages
2020-01-27 10:58:49 -08:00
Tejal Desai
e8fffda7cb
Merge pull request #995 from tejal29/507
...
Fix home and group set for user command
2020-01-24 22:18:09 -08:00
Tejal Desai
308137f46d
Merge pull request #994 from wmuizelaar/fix_extracted_verbose_logging
...
Change loglevel for extractedFiles to debug. Fixes #901
2020-01-24 14:04:50 -08:00
Cole Wippern
cd9be5d513
reuse cached layer
2020-01-23 16:48:26 -08:00
Tejal Desai
048de00c33
Fix home and group set for user command
2020-01-23 15:07:15 -08:00
Cole Wippern
a2aae6274d
Merge pull request #973 from cvgw/u/cgwippern/fix-issue-704
...
Fix issue #704
2020-01-23 13:00:34 -08:00
Wietse Muizelaar
05a316c26c
Change loglevel for extractedFiles to debug. Fixes https://github.com/GoogleContainerTools/kaniko/issues/901
2020-01-23 21:37:06 +01:00
Tejal Desai
da7e9928e4
Fix Symlinks not being copies across stages
2020-01-22 11:47:10 -08:00
Cole Wippern
b9b61e2a12
Merge pull request #943 from shortstories/bugfix/copy-with-symlink
...
Fix #942 COPY or ADD to symlink destination breaks image
2020-01-20 20:55:35 -08:00
ohchang-kwon
df767bb195
apply code review results
2020-01-21 12:07:13 +09:00
Cole Wippern
876f24b0c9
update caching run and copy extracted files
...
Update caching run and copy commands to use the new
GetFSFromLayers method and include the whiteout option so that
whiteout files are extracted and included in extractedFiles
2020-01-17 14:19:58 -08:00
Sam Stoelinga
64bfc3eabb
Fix bug with docker compatibility
...
ArgsEscaped according to Docker docs should only be set in Windows
environments: https://docs.docker.com/engine/api/v1.30/
It was causing integration test to fail with following message:
```
FAIL: TestRun/test_Dockerfile_test_metadata (8.48s)
"Diff": {
"Adds": [
"ArgsEscaped: true"
],
"Dels": [
"ArgsEscaped: false"
]
```
However docker 18.xx returns ArgsEscaped: true
whereas docker 19.xx returns ArgsEscaped: false
Hence this patch also adds the docker version check to the integration
to ignore ArgsEscaped being different when 18.xx is used.
2020-01-13 21:18:54 -08:00
ohchang-kwon
fb4d1f9c8d
add handling when source directory does not have slash suffix
2020-01-03 19:21:29 +09:00
ohchang-kwon
70270a65f0
apply goimports
2020-01-03 17:46:29 +09:00
ohchang-kwon
d6fe98aa49
Fixed an issue where the image is broken if there are symlink in the destination path when ADD, COPY
2020-01-03 16:28:12 +09:00
Cole Wippern
bdabd774fc
Update linter and fix errors
...
* disable linters that are now enabled by default in new version
* fix linter errors
2019-12-21 12:27:14 -08:00
Cole Wippern
9e9b8a6e71
Fix #899 cached copy results in inconsistent key
...
* Update cached copy command to return the same result for
files used from context so that cached and uncached copy
commands produce the same cache key
* Update tests for fix
* Add test for cached run command key consistency
2019-12-15 10:23:31 -08:00
Cole Wippern
2aa481c15e
add unit tests for caching run and copy
2019-12-10 09:29:10 -08:00
Cole Wippern
7b4b768edf
Update copy command cache key logic
...
Include the digest of the stage specified in the --from argument for
COPY commands which use --from
2019-12-09 16:48:20 -08:00
Cole Wippern
6d0c8da90e
more stagebuilder caching tests
2019-11-28 08:42:13 -08:00