Commit Graph

752 Commits

Author SHA1 Message Date
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
Tejal Desai e048b87222
Merge pull request #671 from abergmeier/fix_comment
Correct CheckPushPermission comment.
This is a typo fix.
2019-09-17 10:44:54 -07:00
Tejal Desai d67a822503
Merge pull request #767 from tejal29/new_release
release kaniko v0.12.0
2019-09-13 16:21:39 -07:00
Tejal Desai 7d23805adc
Update CHANGELOG.md 2019-09-13 16:16:50 -07:00
Tejal Desai e04436f88d
move from bug to feature. 2019-09-13 16:16:15 -07:00
Tejal Desai 116d851c2f release kaniko v0.12.0 2019-09-13 15:56:36 -07:00
Tejal Desai 224ac8407c
Merge pull request #760 from prary/path_env
Setting PATH
2019-09-13 15:29:47 -07:00
Tejal Desai 08acf221c6
Merge pull request #635 from discordianfish/patch-1
Remove cruft
2019-09-13 14:27:58 -07:00
Tejal Desai 9574d4f2a9
Merge pull request #493 from nielsdenissen/patch-1
Add desc for `--skip-tls-verify-pull` to README
2019-09-13 14:22:23 -07:00
Tejal Desai 30f1a7dae9 fix lint 2019-09-13 12:16:40 -07:00
Tejal Desai 9b9fb815a7 fix format 2019-09-13 11:56:57 -07:00
Tejal Desai 469fdaa50d test 2019-09-13 11:49:30 -07:00
Tejal Desai f33c71b3c5 Merge branch 'master' into path_env 2019-09-13 11:48:01 -07:00
Tejal Desai f0e571839d add unit tests 2019-09-13 11:21:43 -07:00
Tejal Desai a014c4a1e8 added unit tests 2019-09-13 11:00:05 -07:00
Tejal Desai 873b577e1a
Merge pull request #729 from xanonid/Remove_leading_slash_in_layer_tarball_paths
Remove leading slash in layer tarball paths (Closes: #726)
2019-09-13 10:05:25 -07:00
priyawadhwa 8acab90dec
Merge pull request #698 from takmatsu/s3-endpoint
Add support for S3 custom endpoint
2019-09-13 09:32:25 -04:00
priyawadhwa 38c05bae6d
Merge pull request #744 from chhsia0/layout-path
Added `--oci-layout-path` flag to save image in OCI layout.
2019-09-09 12:42:51 -04:00
Prashant 0158cbf70c Setting PATH for empty image as well 2019-09-04 17:23:59 +05:30
Prashant 17d1059ec4 Setting PATH to default PATH if PATH is missing 2019-09-04 16:44:55 +05:30
chhsia0 ea1a92712c Avoid comparing uncompressed and compressed images in the unit test. 2019-09-03 23:17:57 -07:00
Prashant 2c44539151 Setting PATH 2019-08-30 13:33:36 +05:30
chhsia0 11f3b791cd Renamed to `--oci-layout-path` and added a unit test. 2019-08-24 01:28:58 -07:00
chhsia0 7949d0de1d Added a README for the flag. 2019-08-24 01:04:18 -07:00
chhsia0 730b8b77c8 Added `--layout-path` flag to save image in OCI layout.
Fixed #296.

The output manifests may have `application/vnd.docker.distribution.manifest.v2+json`
as their media types instead of `application/vnd.oci.image.manifest.v1+json`.
2019-08-24 01:04:18 -07:00
Tejal Desai 1d3cf8a67d
Merge pull request #751 from tejal29/release_v0.11.0
Release v0.11.0
2019-08-23 16:00:43 -07:00
Tejal Desai 4b422ee5dd
Merge pull request #677 from priyawadhwa/git
Improve git buildcontext integration test
2019-08-23 15:03:27 -07:00
Tejal Desai e2e16a0165 Release v0.11.0 2019-08-23 15:01:51 -07:00
Tejal Desai 77cfb912f3
Merge pull request #750 from tejal29/add_user_header
add multiple user agents to kaniko if upstream_client_type value  is set
2019-08-23 14:39:21 -07:00
Tejal Desai 96947b8ca4 fix lint 2019-08-23 13:13:14 -07:00
Tejal Desai 6daffd8dd7 add multiple user agents to kaniko if upstream_client_type value is set 2019-08-23 11:29:05 -07:00
priyawadhwa 7adf2fcb50
Merge pull request #714 from MJDSys/reproducible_add
Make container layers captured using FS snapshots reproducible
2019-08-19 14:39:18 -07:00
priyawadhwa 0694be3e85
Merge pull request #717 from vm86/fix
fix unpacking archives via ADD
2019-08-19 13:24:53 -07:00
priyawadhwa 48e25aad5f
Merge pull request #739 from dzoeteman/build-args-cache
Reverted not including build args in cache key
2019-08-16 13:14:41 -07:00
Deniz Zoeteman c425f02866 Reverted not including build args in cache key 2019-08-16 15:09:52 +02:00
Tejal Desai a111681895
Merge pull request #497 from FountainheadTechnologies/include-warmer-in-debug-image
Include warmer in debug image
2019-08-09 13:16:53 -07:00
Tejal Desai b44a1b2802
Merge pull request #735 from xueshanf/patch-1
Bailout when there is not enough input arguments
2019-08-09 13:00:50 -07:00
Tejal Desai d6b2c5b93a
Merge pull request #730 from carlossg/git-ref
Document how to build from git reference
2019-08-09 13:00:26 -07: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
Xueshan Feng 06638fa4c1
Bailout when there is not enough input arguments
Currently the code carries on even missing required arguments.
2019-08-08 11:49:56 -07:00
Sharif Elgamal 56eeaf41e6
Merge pull request #452 from sharifelgamal/cache-fix
Create cache directory if it doesn't already exist
2019-08-02 13:41:38 -07:00
Sharif Elgamal b8281f8cb3
Merge pull request #723 from valentinsoe/warmer-reuse-cache
Add checking image presence in cache prior to downloading it
2019-08-02 13:33:09 -07:00
Sharif Elgamal 8a24115b6a
Prevent panic on nil image 2019-08-02 13:25:20 -07:00
Sharif Elgamal 6ad4cdf314
Merge branch 'master' of github.com:GoogleContainerTools/kaniko into cache-fix 2019-08-02 13:21:12 -07:00
Carlos Sanchez 9454b5d28b Document how to build from git reference 2019-07-31 17:25:02 +02:00
Luke Wood 80421f2a73 Update version of go-containerregistry. (#724)
Brings in a change from upstream to resolve ports to well-known values when comparing Host values to decide whether or not to send the Bearer Authorization header when pushing an image.

Upstream issue is https://github.com/google/go-containerregistry/issues/472.
2019-07-24 13:09:18 -07: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