priyawadhwa
32b3b4f604
Merge pull request #703 from caarlos0/git-branch
...
feat: support specifying branch for cloning
2019-07-16 15:02:00 -07:00
Carlos Alexandro Becker
35bff80fda
chore: empty commit
...
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com >
2019-07-14 16:13:42 -03:00
Carlos Alexandro Becker
46a738f2b2
fix: integration tests
...
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com >
2019-06-22 12:18:42 -03:00
Carlos Alexandro Becker
f578b09846
fix: remove single branch option
...
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com >
2019-06-22 12:17:46 -03:00
Carlos Alexandro Becker
c45e05f668
clean: remove debug msg
...
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com >
2019-06-22 11:45:42 -03:00
Carlos Alexandro Becker
f0b9ad3a57
feat: support specifying branch for cloning
...
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com >
2019-06-22 11:45:07 -03:00
priyawadhwa
baba32c308
Merge pull request #701 from priyawadhwa/release
...
Release v0.10.0
v0.10.0
2019-06-19 11:56:22 -06:00
Priya Wadhwa
7ed6fec424
Release v0.10.0
2019-06-19 10:41:35 -07:00
Andreas Bergmeier
7cc899b09e
Add SkipVerify support to CheckPushPermissions. ( #663 )
...
Extract makeTransport, which allows using the current mechanism used for
pushing.
Fixes #628 .
2019-06-14 12:34:55 -07:00
priyawadhwa
2fc8a7f4bc
Merge pull request #665 from orisano/chore-fix-typo
...
chore: fix typo
2019-05-23 16:06:11 +02:00
priyawadhwa
1723613e8f
Merge pull request #672 from vkartik97/issue#269
...
Creating github Build Context
2019-05-23 16:05:27 +02:00
Kartik Verma
f137f81884
Resolved Merge Conflicts
...
Signed-off-by: Kartik Verma <vkartik97@gmail.com >
2019-05-21 01:52:14 +05:30
Nao YONASHIRO
75fdad7319
chore: fix typo
2019-05-17 03:17:08 +09:00
priyawadhwa
38c1735d92
Merge pull request #655 from GijsWeterings/master
...
Add `--digest-file` flag to output built digest to file.
2019-05-14 12:37:14 -07:00
Gijs
1c13829cda
Update README to reflect flag name change
2019-05-14 10:23:50 +02:00
Gijs
3686b65426
Process feedback of priyawadhwa regarding naming/nilcheck.
...
Changes the argument flag from `--digestfile` to `--digest-file`.
Skips an unneeded nil check.
2019-05-11 15:14:25 +02:00
Johannes 'fish' Ziemke
8c732f6f52
Fix kaniko caching ( #639 )
...
* Revert "Change cache key calculation to be more reproducible. (#525 )"
This reverts commit 1ffae47fdd .
* Add logging of composition key back
* Do not include build args in cache key
This should be save, given that the commands will have the args included
when the cache key gets built.
2019-05-10 09:57:03 -05:00
Jake Shadle
abd21669f8
Improve changelog dates ( #657 )
...
Use ISO-8601 date format for all the dates in the changelog.
2019-05-10 09:55:12 -05:00
Gijs
a6e3ddfc79
Add --digestfile flag to output built digest to file.
...
This flag, when set, takes a file in the container and writes the image digest to it. This can be used to extract the exact digest of the built image by surrounding tooling without having to parse the logs from Kaniko, for example by pointing the file to a mounted volume or to a file used durint exit status, such as with Kubernetes' [Termination message policy](https://kubernetes.io/docs/tasks/debug-application-cluster/determine-reason-pod-failure/ )]
When the flag is not set, the digest is not written to file and the executor behaves as before. The digest is also written to file in case of a tarball or a `--no-push`.
Closes #654
2019-05-02 14:57:44 +02:00
Akihiro Suda
404af20f7c
README.md: update BuildKit/img comparison ( #642 )
...
Latest BuildKit/img no longer necessarily requires procMount to be unmasked, by
not unsharing PID namespaces.
The current drawback of BuildKit/img compared to kaniko is that BuildKit/img
requires seccomp and AppArmor to be disabled so as to create nested containers.
https://github.com/moby/buildkit/pull/768
https://github.com/genuinetools/img/pull/221
Signed-off-by: Akihiro Suda <suda.akihiro@lab.ntt.co.jp >
2019-04-25 10:41:38 -07:00
Balint Pato
7901c76127
Update README.md
2019-04-16 15:53:20 -07:00
Johan Hernandez
841cfb3f53
Add documentation for --verbosity flag ( #634 )
2019-04-15 13:32:44 -07:00
Dirk Gustke
dd9d081447
this is quite spammy in my multistage build ( #640 )
...
.. and as i am surely not the only one, move it down to debug.
2019-04-15 13:22:46 -07:00
Kartik Verma
fa2a2c803b
Updated PR Branch with master
2019-04-09 02:18:28 +05:30
dlorenc
c8fabdf6e4
Fix arg handling for multi-stage images in COPY instructions. ( #621 )
2019-03-22 12:24:43 -05:00
Daisuke Taniwaki
1bf4421047
Fix parent directory permissions ( #619 )
...
* Add parent directories of adding files
* Add integration Dockerfile to test parent directory permissions
* Remove unnecessary helper method
* Use a file on the internet for integration Dockerfile
2019-03-19 12:40:15 -05:00
Jason Hall
3fa411ceb9
Check push permissions before building images ( #622 )
...
* Check push permissions before building images
* Fix doc comment
* improve error messages
2019-03-19 12:39:59 -05:00
Daisuke Taniwaki
28bfb75a31
Fix file mode bug ( #618 )
...
* Fix file mode
* Add Dockerfile for special file permission test
2019-03-18 13:28:24 -05:00
dlorenc
246cc92a33
Optimize file copying and stage saving between stages. ( #605 )
...
This change calculates the exact files and directories needed between
stages used in the COPY command. Instead of saving the entire
stage as a tarball, we now save only the necessary files.
2019-03-13 07:47:28 -07:00
Vincent Demeester
6ce3dfb93a
Bump go-containerregistry to 8c1640add99804503b4126abc718931a4d93c31a ( #609 )
...
The main reason is to include the fixes from
https://github.com/google/go-containerregistry/pull/401 . This should
fix the build+push to quay.io (with v2 schema enabled) cases.
Signed-off-by: Vincent Demeester <vdemeest@redhat.com >
2019-03-11 13:44:32 -07:00
dlorenc
9912ccbf8d
Fix USER handling. There were two issues: ( #600 )
...
- We were validating usernames/groupnames existed in etc/passwd. Docker does not do this
- We were incorrectly caching USER commands. This was fixed automatically by fixing the first part.
2019-03-07 07:05:24 -08:00
priyawadhwa
969321521e
Update go-containerregistry ( #599 )
...
* Update go-containerregistry
Update go-containerregistry since it can now handle image names of the
format repo:tag@digest.
Should fix #535 .
Thanks @ViceIce for the fix!
* update go-containerregistry again
2019-03-06 10:39:51 -08:00
priyawadhwa
cc5a4d2e45
Merge pull request #593 from AnthonyWeston/skip-tls-verify-pull-documentation
...
Added missing documentation for --skip-tls-verify-pull arg
2019-03-05 10:39:42 -08:00
Anthony Weston
6b1ac2ac96
Fixed spelling error
2019-03-04 18:14:35 -05:00
Anthony Weston
f6f26dfe80
Added missing documentation for --skip-tls-verify-pull arg
2019-03-03 10:38:42 -05:00
dlorenc
2abe109eb2
Environment variables should be replaced in URLs in ADD commands. ( #580 )
...
We were previously explicitly skipping this for some reason, but Docker
seems to expand these in URLs so we should too.
2019-02-25 10:42:34 -06:00
Valentin Rothberg
1d079e683e
README.me: update Buildah description ( #586 )
...
Use the latest description of Buildah from upstream.
Signed-off-by: Valentin Rothberg <rothberg@redhat.com >
2019-02-25 09:52:53 -06:00
Priya Wadhwa
8b459b57aa
Test git buildcontext
2019-02-21 13:03:02 -08:00
dlorenc
4b7e2b3a06
Update the cache warmer to also save manifests. ( #576 )
2019-02-21 14:09:22 -06:00
Priya Wadhwa
3da2fdf2d0
Merge branch 'issue#269' of https://github.com/vkartik97/kaniko into vkartik97-issue#269
2019-02-21 11:55:51 -08:00
Valentin Rothberg
94d7db884b
README.md: update Buildah description ( #573 )
...
The description of Buildah is a bit outdated, most importantly Buildah
does not require root privileges (anymore). Also provide a more
detailed description copied from github.com/containers/buildah.
Signed-off-by: Valentin Rothberg <rothberg@redhat.com >
2019-02-21 11:11:28 -06:00
dlorenc
378a3f9573
Look for manifests in the local cache next to the full images. ( #570 )
...
Calculating a manifest from a v1.tarball is very expensive. We can
store those locally as well, and use them if they exist.
This should eventually be replaced with oci layout support once that exists
in ggcr.
2019-02-19 13:54:41 -06:00
Jason Hall
faadb2af86
Log "Skipping paths under..." to debug ( #571 )
...
This reduces noise in the log output, since it isn't terribly useful to most end users.
2019-02-19 13:54:26 -06:00
priyawadhwa
f197a06ee9
Merge pull request #569 from frelon/master
...
Fix typo in error message
2019-02-19 11:43:11 -08:00
dlorenc
7c3947b08d
Make the run_in_docker script support caching. ( #564 )
2019-02-19 09:48:29 -06:00
Fredrik Lönnegren
1b54bda32e
Fix typo
2019-02-19 16:43:20 +01:00
Shuhei Kitagawa
e8564f0d28
Add missing tests for bucket util ( #565 )
...
* Add CheckDeepEqual test util
* Fix for srcContext with slash suffix
* Add tests for bucket_util.go
2019-02-19 09:05:23 -06:00
dlorenc
4feed0ff35
Stop storing a separate cache hash. ( #560 )
...
This is unrequired, mtimes should be taken into account during caching.
2019-02-14 12:24:43 -06:00
dlorenc
8d78db4842
Refactor snapshotting ( #561 )
2019-02-14 12:14:28 -06:00
dlorenc
15e70d4142
Speed up workdir by always returning an empty filelist (rather than a nil one). ( #557 )
...
Nil indicates that a full snapshot is required. Empty indicates that nothing should be snapshotted.
2019-02-13 11:55:08 -06:00