Commit Graph

226 Commits

Author SHA1 Message Date
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
Jordan Goasdoué d08a767454 feat: allow injecting through stdin tar.gz on kaniko 2020-03-18 12:29:49 +01:00
Tejal Desai 3d438f6298
Merge pull request #1141 from samos123/docs
Update README on running in Docker
2020-03-17 17:03:06 -07:00
Tejal Desai a173bf020b
Merge pull request #1115 from JordanGoasdoue/allow-build-context-from-local-targz
feat: add support of local '.tar.gz' file inside the kaniko container
2020-03-17 15:24:10 -07:00
Sam Stoelinga bb76d8c3cc Update README on running in Docker
Make the running in Docker section more clear by showing the actual
docker run command instead of only the utility.
2020-03-17 00:09:41 -07:00
Jordan GOASDOUE fda7ed4f74 feat: add support of local '.tar.gz' file inside the kaniko container 2020-03-12 22:51:30 +01:00
Yoan Blanc 53326fa0bf
executor: add --label flag
Signed-off-by: Yoan Blanc <yoan@dosimple.ch>
2020-03-07 18:17:26 +01:00
Batuhan Apaydın 30920d537e fixing docker run command in README.md
Signed-off-by: Batuhan Apaydın <batuhan.apaydin@trendyol.com>
2020-03-04 16:37:01 +03:00
Tejal Desai 8d2b205ef2
Merge pull request #1060 from DracoBlue/patch-1
Fixed typo in README.md
2020-02-28 11:01:16 -08:00
DracoBlue 2a71eaeda5
Fixed typo in README.md 2020-02-16 20:29:01 +01:00
Yoan Blanc edc4eb33f4
Merge remote-tracking branch 'origin/master' into registry-mirror 2020-02-16 09:28:54 +01:00
Thomas Strömberg dfd3030c69
Document that Kaniko is not officially supported
This is in-line with what I will be doing with our other GoogleContainerTools projects. Thoughts?
2020-02-10 16:50:34 -08:00
Tejal Desai 47ab3fe997
Merge branch 'master' into registry-mirror 2020-01-29 11:42:06 -08:00
Tejal Desai 8b991f6baf Add falg to --whitelist-var-run set to true to preserver default kaniko behaviour of /var/run ignored. Set it to false to add /var/run in destination directory 2020-01-28 10:52:36 -08:00
Tejal Desai c8b19894bb Revert "additional-whitelist"
This reverts commit ac8e123815.
2020-01-28 08:52:29 -08:00
cvgw ac8e123815 additional-whitelist
* update readme
* improve test
* change default
2020-01-24 10:22:20 -08:00
Yoan Blanc 140879fadd
Merge remote-tracking branch 'origin/master' into registry-mirror 2020-01-18 09:35:56 +01:00
Cole Wippern 732b270035
Merge pull request #930 from carlossg/ecr
Push to ECR using instance roles
2019-12-22 10:56:09 -08:00
Yoan Blanc 3678b70239
Merge remote-tracking branch 'origin/master' into registry-mirror 2019-12-22 11:10:15 +01:00
Josh Soref 22bcd28931 Grammar (#911)
* spelling: environment

* spelling: into

* spelling: certificate

* grammar: based on

* spelling: its

* spelling: non-root

* grammar: unnecessary comma in a compound predicate

* grammar: comma after introductory phrase

* grammar: pronoun problem

(per app.grammarly.com)
2019-12-21 12:54:23 -08:00
Cole Wippern 005860818f
Merge pull request #867 from dastrobu/fix-toc-in-readme
Update outdated toc in README.md
2019-12-21 12:52:50 -08:00
Carlos Sanchez 16aff6a974 Using credsStore is simpler
and we don't need to push to multiple registries likely
2019-12-21 13:06:47 +01:00
Carlos Sanchez 6b85605285 Push to ECR using instance roles
Add instructions

Fixes #785
2019-12-21 12:54:18 +01:00
Tejal Desai fbdb8f39c8
Merge branch 'master' into registry-mirror 2019-12-09 15:40:56 -08:00
Tejal Desai 632651581e
Merge pull request #906 from Pweetoo/master
updated readme
2019-12-09 15:39:14 -08:00
Tejal Desai c54d1a5e72
Merge branch 'master' into fix-toc-in-readme 2019-12-09 12:56:50 -08:00
Tejal Desai 05da029663
Merge pull request #872 from edbighead/fix/readme-anchors
Fix README.md anchor links
2019-12-09 12:54:52 -08:00
Tejal Desai 6e4811ad9f
Merge pull request #876 from totomz/not-valid-link-ecr-readme
Invalid link to missing file config.json
2019-12-09 12:53:53 -08:00
Tejal Desai a7bbe171fb
Merge pull request #861 from GoogleContainerTools/balopat-patch-1
nits in README
2019-12-09 12:51:59 -08:00
Pweetoo 32e321af78
updated readme
Added argument -n for echo command.
2019-12-09 09:15:26 +01:00
Yoan Blanc 980c87ac17
Merge remote-tracking branch 'origin/master' into registry-mirror 2019-12-05 19:12:47 +01:00
Eduard Laur c2a8b33f9c Fix README.md anchor links 2019-11-26 12:54:55 +02:00
tommaso.doninelli c49b4747bd Invalid link to missing file config.json
Link points to the AWS ECR Credentials Helper config that explain how to
configure it
2019-11-22 07:12:31 +01:00
Cole Wippern 02db3c18fa Update readme
* Know Issues
  * kaniko in non-official images
  * v1 Registry Schema
2019-11-21 12:58:19 -08:00
Daniel Strobusch 0c1949ba1d
Update outdated toc in README.md
Links to command line arguments where all broken on github, since preceding dashes where missing from the links. This commit contains an autogenerated doc after running: doctoc --github README.md (version 1.4.0)
2019-11-17 13:05:21 +01:00
Tejal Desai 4f789a0dfe
Add survey link to Readme. 2019-11-15 12:04:11 -08:00
Balint Pato 8eb05761ad
nits 2019-11-15 09:50:44 -08:00
Tejal Desai 907ae256a4
update Readme.md 2019-11-11 10:38:18 -08:00
Tejal Desai a122fc6360
Add Slack channel url 2019-11-11 10:35:02 -08:00
Yoan Blanc 6e2287c969
readme: add --registry-mirror
Signed-off-by: Yoan Blanc <yoan@dosimple.ch>
2019-11-10 12:55:31 +01:00
priyawadhwa d4badf36d6
Merge pull request #829 from codevbus/fix-run-in-docker-doc-828
828: clean up docker doc, fix context var in run cmd
2019-10-28 12:56:35 -07:00
Mike Vanbuskirk 8f7eb00433 828: revert context to workspace, clean up doc 2019-10-22 17:39:37 -04:00
yangtaokm 616eb83d92 Refactory and Code and Merge remote-tracking branch 'upstream/master' into azure-blobstorage-https 2019-10-22 16:43:11 +08:00
Mike Vanbuskirk d970fa8af3 828: clean up docker doc, fix context var in run cmd 2019-10-21 22:45:54 -04:00
yangtaokm 3e6a24b152 Initial commit for Azure Blob Storage SupportX 2019-10-13 20:52:19 +08:00
Petr Ruzicka c1bf362400 Details about --tarPath usage improved 2019-10-09 11:29:49 +02:00
Tejal Desai de093f9e05
Merge pull request #129 from carlossg/credentials-pass
Use kaniko with docker config.json password
2019-10-04 08:44:28 -07:00
Tejal Desai 14ed530234
fix the /root to /kaniko 2019-10-04 01:32:38 -07:00
debuggy 7771d1b448 Add getting started tutorial 2019-09-26 17:13:39 +08:00
Herrmann Hinz 0bd5eb51f7
double help text about skip-verify-tls
removed
2019-09-18 12:33:04 +02: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
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