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
Cole Wippern
2aa481c15e
add unit tests for caching run and copy
2019-12-10 09:29:10 -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
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
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
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
2c13842451
Resolve symlink paths
2019-11-15 11:23:15 -08:00
Tejal Desai
334f0c70d6
fix golint
2019-11-07 15:11:29 -08:00
Don McCasland
5716c44ab8
Merge branch 'master' into bug-742-2
2019-11-04 09:25:25 -08:00
Tejal Desai
c5bc179c85
Merge pull request #816 from yangtaokm/azure-blobstorage-https
...
[WIP] Add support to download context file from Azure Blob Storage
2019-10-25 10:51:50 -07:00
yangtaokm
aa881d59cb
fix gofmt
2019-10-22 17:10:08 +08:00
yangtaokm
45c43a2c89
refactory the code and add CreateTargetTarfile in fs_util.go
2019-10-22 16:44:51 +08:00
Tao Yang
a86ffc8c57
Apply suggestions from code review
...
fix formatting based on review
Co-Authored-By: Tejal Desai <tejal29@gmail.com>
2019-10-21 10:19:32 +08:00
Prashant
fa162e3005
changing debug to trace
2019-10-18 19:03:11 +05:30
yangtaokm
78e9974694
Add more test case for azureblob_util.go
2019-10-14 13:55:03 +08:00
yangtaokm
3e6a24b152
Initial commit for Azure Blob Storage SupportX
2019-10-13 20:52:19 +08:00
Don McCasland
27020f23b9
Resolving comments
2019-10-08 12:19:20 -07:00
Don McCasland
4e1639c030
Addressing review comments
2019-10-07 10:46:28 -07:00
Tejal Desai
529bc4f20e
Merge pull request #805 from tejal29/fix_720
...
add debug level info what is the layer type
2019-10-04 16:19:49 -07:00
Tejal Desai
1a88d7ae9c
better logging
2019-10-04 16:04:12 -07:00
Tejal Desai
3ad9255806
add debug level info what is the layer type
2019-10-04 15:51:05 -07:00
Tejal Desai
1c821d050c
Merge pull request #796 from prary/version
...
Kaniko version
2019-10-04 14:32:14 -07:00
Tejal Desai
9eb4a1c1ff
Merge pull request #801 from victornoel/776-dockerignore-relative
...
Support Dockerfile.dockerignore
2019-10-04 01:56:40 -07:00
Victor Noel
ff7abba47b
Fix integration tests for #776
2019-10-04 10:31:40 +02:00
Tejal Desai
22188595f0
Merge pull request #768 from N4rm0/fix-envar-replacement-for-url
...
Fix #691 - ADD does not understand ENV variables
2019-10-04 01:17:22 -07:00
Victor Noel
5700de039d
Add more tests for #776
2019-10-04 10:08:39 +02:00
Tejal Desai
865d49c631
Merge pull request #694 from orisano/feat-optimize-build
...
feat: optimize build
2019-10-04 00:51:23 -07:00
Prashant
f9424d43e7
fixing lint and minor fix
2019-10-03 21:29:40 +05:30
Victor Noel
db12a77e6c
Fix #776
2019-10-03 17:53:14 +02:00
Don McCasland
e58ee0967a
Fixing logic for Copy command. The problem was not that tar files were being unpacked in wrong order. The problem was that the COPY command requires the FS to be unpacked before it does its work.
2019-09-26 11:29:53 -07:00
jonjohnsonjr
51734fc3a3
Merge pull request #765 from Onlinehead/fix/filesystem-delete-fix
...
Fix SIGSEGV on file system deletion while building
2019-09-25 11:47:35 -07:00
Monard Vong
019b26e9a0
Simplify logic
2019-09-22 01:09:36 +02:00
Антон Костенко
a21129f889
Fix typo and run go fmt over fs_util
2019-09-18 10:43:26 +02:00
Nao YONASHIRO
38fa3608ce
chore: fix megacheck
2019-09-18 17:19:15 +09:00
Nao YONASHIRO
d9d865c74a
test: add BenchmarkHasFilepathPrefix
2019-09-18 17:19:15 +09:00
Nao YONASHIRO
02d1ce5e1b
feat: optimize HasFilepathPrefix
2019-09-18 17:19:15 +09:00
Nao YONASHIRO
c87d2dba9c
feat: replace md5 to highwayhash
2019-09-18 17:19:15 +09:00
Don McCasland
1bb5a41d7d
Fixing lint issues. Adding tests for COPY command. Fixing issue with copying files out of snapshots
2019-09-16 10:48:31 -07:00
Monard Vong
d96cbfe0d3
Fix formatting
2019-09-16 00:03:10 +02:00
Monard Vong
13b8fb6345
remove trailing whitespace
2019-09-15 23:29:54 +02:00
Monard Vong
38474fad11
Fix #691 - ADD does not understand ENV variables
2019-09-15 23:08:44 +02:00
Антон Костенко
a1cc42bdb7
Fix https://github.com/GoogleContainerTools/kaniko/issues/756
2019-09-10 00:44:27 +02:00
xanonid
30db2c07d3
Also remove leading / from paths to file which are marked as deleted
2019-08-09 17:30:45 +02:00
xanonid
1fa2527a7b
Adapt tests such that expected paths do not contain a leading /
2019-08-09 14:24:03 +02:00
xanonid
c75749b840
Do not use leading slashes for paths in layer tarballs to be more compatible with docker
2019-08-09 14:24:03 +02:00
v.rul
7750094ec1
Add checking image presence in cache prior to downloading it
...
This changes allow to use kaniko-warmer multiple times without unnecessary docker image downloads.
To check image presence in cache directory I'm using existing cache function that is used by kaniko-executor.
I've considered building separate function to only check image presence, but it will have pretty much the same code.
Questionable decision is to embed CacheOptions type to KanikoOptions and WarmerOptions. Probably this should be resolved by creating interface providing needed options and implement it both mentioned structs. But I've struggled to get a meaningfull name to it.
To replicate previous behaviour of downloading regardless of cache state I've added --force(-f) option.
This changes provides crucial speed-up when downloading images from remote registry is slow.
Closes #722
2019-07-24 18:09:21 +03:00
Taylor Barrella
3422d5572a
Misc. small changes/refactoring ( #712 )
2019-07-23 15:10:22 -07:00
Taylor Barrella
5c0603a967
Update go-containerregistry
...
Resolves #607
* Deleted a duplicate Gopkg.lock block for github.com/otiai10/copy to
prevent `dep ensure` from deleting it from vendor/
* Searched for breaking changes. Only found ones for
remote.Delete/List/Write/WriteIndex. Searched for those and fixed
* Noticed that NewInsecureRegistry was deprecated and replaced it
2019-05-25 15:56:20 -07:00