Commit Graph

178 Commits

Author SHA1 Message Date
Viktor Farcic 5e4fe2b9f2
docs: Added a video introduction to Kaniko (#1517)
* Video introduction

* Update README.md

Add new references section

Co-authored-by: Tejal Desai <tejal29@gmail.com>
2021-02-22 22:22:59 -08:00
Sascha Schwarze 69f942f751
Improve retry behavior for push operation (#1578)
* Update go-containerregistry to 0.4

* Implement --push-retry argument
2021-02-22 21:25:58 -08:00
Max Wittig 09cac63b7b
docs(readme): add dockerfile flag documentation (#1566) 2021-02-08 09:59:41 -08:00
Or Geva b3e036aab2
Add --image-name-tag-with-digest flag (#1541) 2021-01-19 13:28:05 -08:00
Alec Rajeev 397912d96c
Fix travis-ci link (#1535) 2021-01-03 10:09:28 -08:00
Tejal Desai 9f76932171
Update GowalkDir dependency to pick up fixes. Added default 90 min timeout for walking FS. Override it with environment variable. Add slowjam to kaniko pod (#1530) 2020-12-21 22:40:37 -08:00
Tejal Desai b04399eeac
add caching copy layers back (#1518)
* add caching copy layers back

* fix test

* lint

* fix test - 2

* Add integration test

* fix lint
2020-12-11 00:25:03 -08:00
Vincent Behar 131828a1ad
feat: support multiple registry mirrors with fallback (#1498)
Fixes #1473

The initial implementation of the registry mirror only allowed a single mirror, and if pulling from the mirror failed, the build would fail.

This change introduces:
- multiple registry mirrors instead of a single one
- fallback if an image can't be pulled from a registry

This is the same behavior as the docker daemon and will allow using a registry mirror such as `mirror.gcr.io` which is incomplete and doesn't have all the content that the default registry on docker.io has.

Note that there are no changes in the CLI flags, the `--registry-mirror` flag is still valid. But now it can be used multiple times to set up more than one registry mirror.

Co-authored-by: Tejal Desai <tejaldesai@google.com>
2020-12-08 16:16:25 -08:00
Lars Toenning 5fad5f360f
Document flags for tarball build only (#1503) 2020-12-08 16:13:53 -08:00
mickkael 275cc9a7e7
Add option customPlatform (#1500)
* Add option customPlatform

* fix formatting

* fix No newline at end of file
2020-12-08 16:11:18 -08:00
zhouhaibing089 83424ba1a1
doc: clarify the format of --registry-mirror (#1504)
In the context of Docker Hub ratelimit, registry mirror has been applied
more and more. It's very unfortunate that kaniko doesn't take the same
form as docker/containerd. The registry mirror shouldn't have scheme
like `https://` included. This is not explicitly described in the doc.
2020-12-08 16:04:19 -08:00
Tejal Desai bbd06c48bd
Add docs for GKE workload identity. (#1476)
* Add docs for GKE workload identity.

* Add instructions to use kaniko pod with Workload identity

* grammar fix
2020-11-02 23:21:40 -08:00
Ian Kerins 1240333657
Stop caching COPY layers (#1408)
Cached COPY layers are expensive in that they both need to be retrieved
over the network and occupy space in the layer cache.

They are unnecessary in that we already have all resources needed to
execute the COPY locally, and doing so is a trivial file-system
operation.  This is in contrast to RUN layers, which can do
arbitrary and unbounded work.

The end result is that cached COPY commands were more expensive when
cached, not less.  Remove them.

Resolves #1357
2020-09-30 17:18:50 -07:00
好风 63153a3b33
Update README.md (#1437)
fix writing
2020-09-30 16:46:03 -07:00
Didier Durand fdbd250af8
Readme.md : Kaniko -> kaniko (#1435)
Hi there,
The preferred spelling seems to be all lowercase: I fixed those with uppercase K.
(Sorry for this modest intial contribution ;-) but I hope to come back with more..
Didier
2020-09-30 16:44:06 -07:00
Thomas Stromberg 3012551204 Run doctoc 2020-08-29 11:03:43 -07:00
Thomas Stromberg c0b88a03de Add missing flags/options to README, sort them 2020-08-29 11:01:44 -07:00
Tejal Desai 2a4ab62a08
Merge pull request #1394 from isker/patch-1
Update README.md re: layer cache behavior
2020-08-27 17:44:42 -07:00
Tejal Desai fdd2d4871b
Merge pull request #1398 from kskumgk63/patch-1
Fix links on README
2020-08-27 17:44:06 -07:00
Tejal Desai 71b6a244ba
Update README.md
use v1 endpoint.
2020-08-27 15:34:57 -07:00
Keisuke Umegaki a77fc85861
Fix link, --context-sub-path ,--skip-unused-stages 2020-08-26 10:59:06 +09:00
Ian Kerins 6bab9ed4d1
Update README.md re: layer cache behavior
#1357
2020-08-21 22:23:57 -04:00
Tejal Desai 3387ceddfb
Merge pull request #1385 from renatosuero/add-gcr-instructions
Added instructions to use gcr without kubernetes
2020-08-17 15:28:08 -07:00
Renato Suero 268fdb4f2a
Added instructions to use gcr without kubernetes 2020-08-17 16:14:21 +02:00
Tejal Desai 1bf66ef435
Merge pull request #1153 from why-xn/master
Checkout a specific git commit
2020-08-13 10:41:26 -07:00
Tejal Desai d83338e372
Merge pull request #1318 from caarlos0/git
feat: accept GIT_TOKEN
2020-08-13 10:40:07 -07:00
Takumasa Sakao 71f37f084d Format json & yaml in README 2020-08-03 06:09:01 +09:00
Carlos Alexandro Becker ed04106af4 Merge remote-tracking branch 'upstream/master' into git 2020-07-29 23:24:17 -03:00
Alexander Sharov 5f7872b0a8 Fix README.md 2020-06-16 21:26:06 +04:00
Carlos Alexandro Becker 8322cbe3b6
feat: accept GIT_TOKEN
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2020-06-15 11:16:50 -03:00
Gabriel Virga 362c8dd519
Instructions to run kaniko using kubectl and STDIN
Example on README of how to run kaniko using kubectl and standard input
2020-05-27 17:51:44 -04:00
Art Begolli 38c0b194a2 docs: add registry-certificate flag to readme 2020-05-21 13:06:13 +01:00
Tejal Desai 31feaa4c12
Merge pull request #1263 from yorinasub17/git-auth-token-env
Add ability to set git auth token using environment variables
2020-05-20 00:59:14 -07:00
Tejal Desai 37e454dab4
Update README.md 2020-05-19 14:27:13 -07:00
Tejal Desai 864e6c2ae7
Make support clause more bold.
Add that kaniko is not officially support more evident.
2020-05-19 14:26:15 -07:00
Yoriyasu Yano 6e615a8ff9 Add ability to set git auth token using environment variables
Currently the only way to set the git auth is by including it in the context
git URL. This can be problematic for certain environments such as ECS where the
command args for are stored in logs. Introduces updates to allow setting the
authentication info using the environment variables `GIT_USERNAME` and
`GIT_PASSWORD`.
2020-05-11 10:59:48 -05:00
Gábor Lipták 27c5d86670
Add GoReportCard badge to README 2020-05-07 16:22:43 -04:00
Jon Henrik Bjørnstad 1eb4f8447b Documentation for --log-timestamp 2020-05-04 10:25:38 +02:00
Tejal Desai f401b86746
Merge pull request #1204 from giovanism/patch-1
Update Pushing to Docker Hub to use v2 api
2020-05-03 20:54:33 -07:00
Tejal Desai c641f6ff3a
Merge pull request #1199 from luba239/patch-1
Fix line endings in shell script
2020-05-03 20:42:22 -07:00
Michel Hollands 1d23574cc1 Add --log-format parameter to README.md
The --log-format parameter was introduced in v0.18.0 but was not added to the README.md
Closes #1215
2020-05-03 15:49:41 +01:00
Tejal Desai 36748facc5
Merge pull request #1203 from dani29/cache
Set very large logs to Trace level
2020-05-01 10:35:15 -07:00
Tejal Desai 7ccf05fae3
Merge pull request #1165 from JordanGoasdoue/multistage-now-respects-dependencies
feat: multistages now respect dependencies without building unnecessary stages
2020-05-01 10:34:47 -07:00
Tejal Desai 8a780be748
Merge pull request #1139 from JordanGoasdoue/allow-injecting-context-tar-gz
feat: allow injecting through stdin tar.gz on kaniko
2020-05-01 10:24:05 -07:00
Giovan Isa Musthofa ad3ed6bcf6
Update Pushing to Docker Hub to use v2 api 2020-04-19 14:44:49 +07:00
Dani Raznikov 04888f2690 Set loud logs to trace level 2020-04-18 20:27:25 +03:00
Jordan Goasdoué 8cbc7a8ca2 feat: multistages is now built without unusued stages 2020-04-17 09:59:56 +02:00
Liubov Grinkevich 2cac43619f
Fix line endings in shell script
Add escapes to line endings, remove extra quote
2020-04-16 15:35:50 +03:00
Carlos Alexandro Becker 4bd1444be0
docs: --sub-path
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2020-04-08 14:08:57 -03:00
Shihab Hasan 99b08059c4 Checkout a specific git commit 2020-03-23 12:12:52 +06:00