Tejal Desai
b1970a3584
Merge pull request #792 from loganprice/FixAddTar
...
Fix Ability for ADD to unTar a file
2020-01-21 09:55:25 -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
e19cc228ba
Merge pull request #941 from stijndehaes/feature/cache-warmer-private-reg-support
...
Support for private registries in the cache warmer
2020-01-17 08:38:59 -08:00
Tejal Desai
e702d75e9c
Merge pull request #964 from samos123/fix-argsescape
...
Fix bug with docker compatibility ArgsEscaped
2020-01-16 16:13:57 -08:00
Stijn De Haes
3fa8f686db
Support for private registries in the cache warmer
...
Closes #503
Signed-off-by: Stijn De Haes <stijndehaes@gmail.com>
2020-01-15 15:35:42 +01:00
lou-lan
da0e7c7bdc
Clean code (Condition is always 'false' because 'err' is always 'nil' ).
2020-01-14 15:11:22 +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
Cole Wippern
776fa43eb2
refactor cache.Warm and add tests
2020-01-10 12:29:17 -08:00
Cole Wippern
b1b0513c05
Fix #926 cache warmer and method signature
2020-01-10 12:29:16 -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
328847ffc2
Fix #925 broken insecure pull
2019-12-21 21:50:43 -08:00
Logan.Price
812c66ecc0
chore: add error check
2019-12-21 15:42:00 -08:00
Logan.Price
c5a29962f2
chore: add unit test for unTar function
2019-12-21 15:42:00 -08:00
Logan.Price
6a35a84034
fix: update unTar function to actually extract and save the contents of an achieve
2019-12-21 15:42:00 -08:00
Nao YONASHIRO
cbba7cec3f
chore: fix typo
2019-12-21 14:44:12 -08:00
Nao YONASHIRO
2599c0c69b
docs: fix wrong document
2019-12-21 14:42:58 -08:00
Cole Wippern
229820550e
Merge pull request #869 from prary/go_modules
...
changing to modules from dependencies
2019-12-21 12:56:15 -08: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
Prashant Arya
976b4265fb
changing to modules from dependencies
2019-12-21 12:18:09 -08:00
Prashant Arya
85f1a5db00
Merge branch 'master' of https://github.com/GoogleContainerTools/kaniko into log
2019-12-19 03:20:56 +00: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
b19214ad1e
Use cachekey not digest for COPY --from src
...
* use the cachekey of the src stage rather than the digest
for COPY --from commands as they are reproducible unlike digests
* track digest to cache keys and stage indexes to digest
* add extra debug logging for troubleshooting cachekey building issues
* convert Sha256 hashes to hex encoded strings rather than plain strings
for easier human reading
2019-12-10 08:45:13 -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
Tejal Desai
acb5b9f7c9
Merge pull request #839 from antechrestos/fix/upcase_for_from_stage_name
...
Fix failure when using capital letters in image alias in 'FROM ... AS…' instruction
2019-12-09 15:39:39 -08:00
Tejal Desai
03b1b1ce4c
Merge pull request #905 from poy/fixes/904
...
when copying, skip files with the same name
2019-12-09 13:07:13 -08:00
Tejal Desai
56f92e74af
Merge pull request #849 from wripley/master
...
Modified error message for writing image with digest file
2019-12-09 12:57:33 -08:00
poy
0a2f2957ec
when copying, skip files with the same name
...
When using the COPY command, if the source and destination have the same
the file should be skipped rather than copied. This is to prevent the
file from being overwritten and therefore producing an empty file.
fixes #904
2019-12-08 00:57:27 -07:00
Ben Einaudi
d22a7608c2
Fix failure when using capital letters in image alias in 'FROM ... AS' instruction
...
The third library moby/buildkit lowers the image alias used in 'FROM .. AS' instruction.
This change fixes this issue by making the resolve of dependencies agnostic to case.
Fixes #592
Fixes #770
2019-12-06 12:04:26 +01:00
Cole Wippern
7ba65daf7f
cleanup executor/build_test.go
2019-11-28 09:36:39 -08:00
Cole Wippern
828e764b95
add boilerplate for composite_cache_test
2019-11-28 09:18:58 -08:00
Cole Wippern
6d0c8da90e
more stagebuilder caching tests
2019-11-28 08:42:13 -08:00
Cole Wippern
33f3191b17
Don't hardcode hashes for stagebuilder tests
2019-11-27 21:47:00 -08:00
Cole Wippern
697037cbcf
Add unit tests for compositecache and stagebuilder
...
* add mock types for testing
* enhance error messaging
* add tests
2019-11-27 21:47:00 -08:00
Cole Wippern
54635c3d39
don't exit optimize early so we record cache keys
2019-11-27 17:09:00 -08:00
Cole Wippern
2755ae4470
Final cachekey for stage
...
Store the last cachekey generated for each stage
If the base image for a stage is present in the map of digest
and cachekeys use the retrieved cachekey instead of the base image
digest in the compositecache
2019-11-27 14:40:05 -08:00
Prashant Arya
857715012f
changing log level
2019-11-26 17:52:11 +00:00
Cole Wippern
bfd8562855
Merge pull request #879 from cvgw/u/cvgw/update_error_handling_and_logging_for_cache_retrieve
...
Update error handling and logging for cache
2019-11-23 10:20:40 -08:00
Cole Wippern
a6e458caf1
Update error handling and logging for cache
...
Previously we returned a low level file system error when checking for
a cached image. By adding a more human friendly log message and explicit
error handling we improve upon the user experience.
2019-11-22 14:54:38 -08:00
Cole Wippern
b057776849
Merge pull request #857 from cvgw/u/cgwippern/symlink-bug
...
Resolve symlink targets to abs path before copying
2019-11-22 10:02:58 -08:00
Cole Wippern
2b26dfea61
Add unit tests for resolveIfSymlink
2019-11-15 11:23:15 -08:00
Cole Wippern
2c13842451
Resolve symlink paths
2019-11-15 11:23:15 -08:00
Cole Wippern
50f1373837
Update Add command RequiresUnpackedFS
2019-11-15 11:23:15 -08:00
Cole Wippern
006b4996cb
Fix quote strip behavior for ARG values
...
* fixes issue 847
* previous implementation did not properly parse blank
values which were enclosed in quotes
2019-11-08 14:28:31 -08:00
Will Ripley
f6aa8f709b
Modified error message for writing image with digest file
2019-11-08 12:59:25 -06:00
Tejal Desai
1d5e294f27
Merge pull request #841 from wripley/master
...
Added --image-name-with-digest flag
2019-11-08 08:24:26 -08:00
Tejal Desai
b04d15db82
fix the issue now
2019-11-07 15:29:56 -08:00