Commit Graph
1641 Commits
Author SHA1 Message Date
Mikhail Vasin 544abd7665 Fix typo (#1719)
* Fix typo

* Another typo
2021-10-18 23:56:04 -07:00
Gilbert Gilb'sandTejal Desai a42adb9bb4 Fix composite cache key for multi-stage copy command (#1735)
* chore: add workflows for pr tests

* fix unit tests

* fix formatting

* chore: fix gobuild

* change minikube script

* chore: fix lint install script

* chore: ignore and fix tests

* fix lint and run gofmt

* lint fixes

* k8s executor image only

* fix Makefile

* fix travis env variables

* more info on k8s tests

* fix travis run

* fix

* fix

* fix

* fix log

* some more changes

* increase timeout

* delete travis.yml and fix multiple copy tests

* fix registry mirror

* fix lint

* add concurency

* last attemot to fix k8 integrations

* diff id for diff workflows

* Fix composite cache key for multi-stage copy command (#1706)

PR #1518 reintroduced COPY layers caching using the `--cache-copy-layers`
flag. Unfortunately, this PR also introduced a bug by not including the
stage digest into the caching key of the COPY command when the
`--cache-copy-layers` flag was not set. As a result, kaniko would use
any previous (possibly stalled) layer from the cache because the digest
of the "COPY --from" command would never change.

PR author probably expected Go to fallthrough in the switch just like C
does. However, this is not the case. Go does not fallthrough in
switch-statements by default and requires the fallthrough keyword to be
used. Note that this keyword is not available in type-switches though,
because it wouldn't work properly with typings.

* refactor: add an abstract copy command interface to avoid code duplication

* fix typo in error message

Co-authored-by: Tejal Desai <tejal29@gmail.com>
2021-10-18 23:31:01 -07:00
Tejal Desai 1da17b6e9b chore: add workflows for pr tests (#1766)
* chore: add workflows for pr tests

* fix unit tests

* fix formatting

* chore: fix gobuild

* change minikube script

* chore: fix lint install script

* chore: ignore and fix tests

* fix lint and run gofmt

* lint fixes

* k8s executor image only

* fix Makefile

* fix travis env variables

* more info on k8s tests

* fix travis run

* fix

* fix

* fix

* fix log

* some more changes

* increase timeout

* delete travis.yml and fix multiple copy tests

* fix registry mirror

* fix lint

* add concurency

* last attemot to fix k8 integrations

* diff id for diff workflows
2021-10-18 23:22:44 -07:00
Anbraten d82d7368fb Make /bin/sh available to debug image (#1748) 2021-10-18 11:45:31 -07:00
priyawadhwa 03a9847ab5 Fix executor Dockerfile, which wasn't building (#1741)
The Makefile from the `docker-credential-gcr` repo was removed, so all builds were failing. This PR removes the `make` command and pins `docker-credential-gcr` to a specific commit so that this doesn't happen again.
2021-10-18 11:44:05 -07:00
Rhianna b525d1e27b Support force-building metadata layers into snapshot (#1731)
* feat: add support for forcing build metadata

* Chore: Added snapshot forceBuildMetadata flag tests.
2021-10-18 11:43:51 -07:00
Jake Sanders 7e3954ac73 add SECURITY.md (#1710)
Signed-off-by: Jake Sanders <jsand@google.com>
2021-08-10 22:07:33 -07:00
ejose19 b22e993224 refactor: adjust bpfd container runtime detection (#1686) 2021-08-10 22:07:11 -07:00
Jason Hall 4e218f2162 Support mirror registries with path component (#1707) 2021-08-10 22:06:51 -07:00
Yahav Itzhak 211d487e44 Add instructions for using Artifactory (#1715) 2021-08-10 22:01:12 -07:00
nihilo 682191f523 Bugfix/trailing path separator (#1683)
* Test_EnvReplacement: env of path ends in a slash

* Fix trailing path separator
2021-07-08 12:06:52 -07:00
Silvano Cirujano Cuesta 1d9bc175c2 Add support for CPU variants (#1676)
Signed-off-by: Silvano Cirujano Cuesta <silvano.cirujano-cuesta@siemens.com>
Inspired-by: mickkael 19755421+mickkael@users.noreply.github.com
2021-07-08 12:05:38 -07:00
ankitm123 9997cd4d40 docs: add missing cache-copy-layers arg in README (#1672)
Signed-off-by: ankitm123 <ankitmohapatra123@gmail.com>
2021-07-08 12:01:09 -07:00
Jose Donizetti 5b3fb84a22 Retry extracting filesystem from image (#1685)
* Retry extracting filesystem from image

* Add flag image-fs-extract-retry

* Add --image-fs-extract-retry documentation
2021-07-08 12:00:22 -07:00
Tejal Desai 094fe52b37 Revert "save snaphots to tmp dir (#1662)" (#1670)
This reverts commit 754253d375.
2021-06-14 12:09:07 -07:00
Patrick Barker 754253d375 save snaphots to tmp dir (#1662) 2021-06-14 12:08:47 -07:00
Tejal Desai 04fb2fd55e rename flag --whitelist-var-run to ignore-var-run (#1668)
* rename flag

* instead depcrecate

* add normalize function
2021-06-14 12:08:37 -07:00
Max Walther 1ee4140024 Try to warm all images and warn about errors (#1653)
When providing multiple images to warm, the warmer stops at the first error.
There are use cases however where an image is provided to the warmer which does not yet exist on purpose (e.g. CI/CD latest image only created at first release).
Thus we want to try all given images and only error if none of them work.
2021-06-04 10:07:57 -07:00
Kamal Nasser f21639daac Fix snapshotter ignore list; do not attempt to delete whiteouts of ignored paths (#1652)
* avoid deleting whiteouts if they are in ignore list

* fix snapshotter ignore list

* include filesystem mounts in ignorelist of snapshotter
* clean up ignore list logic

* add unit and integration tests for #1652

* fix tests and ignore list updates
2021-06-04 10:07:24 -07:00
Benjamin Krenn 57ea150cad Exit Code Propagation (#1655)
* exit codes of failed RUN commands may now be propagated to the caller by using the --propagate-exit-code flag

* removed exit code propagation flag; the exit function now unwraps the error and looks for an exit code

* added integration test for exit code propagation

* added trailing new line in test Dockerfile_exit_code_propagation; tidying up README.md removing all traces of error propagation flag

* moved exit code propagation test to integration_test.go; moved exit code propagation test files to 'testdata' to avoid interference with other integration tests
2021-06-01 10:43:49 -07:00
Tejal Desai 7b6495426d Update CHANGELOG.md 2021-05-13 15:54:04 -07:00
Liwen Guo 99285f73e3 Fix changelog headings (#1643) 2021-05-11 11:04:27 -07:00
Tejal Desai a0c96b4edc release v1.6 (#1634) v1.6.0 2021-04-26 09:38:29 -07:00
Colin b33f9655eb Support warming images by digest (#1629) 2021-04-22 11:51:33 -07:00
Chris Hoffman ac1fc88081 Copy dockerfile.dockerignore if it exists when copying Dockerfile (#1607) 2021-04-14 09:02:24 -07:00
Vivek Kumar 6028f1c5ec fix: create parent directories before writing digest files (#1612) 2021-04-13 14:41:54 -07:00
Jon Friesen d40a51f38f adds ignore-path command arguments to executor (#1622)
* adds ignore-path command

* add flag to README
2021-04-13 14:29:51 -07:00
Lars Gröber 0477900feb Fixes #1544 (#1597)
* Specifying a tarPath will push the image as well
2021-03-31 10:17:26 -07:00
priyawadhwa 298245c648 Check-in cosign public key and update README (#1611) 2021-03-31 09:14:07 -05:00
priyawadhwa e328b5057a fix yaml (#1610) v1.5.2 2021-03-30 15:10:04 -07:00
priyawadhwa ea8a448b41 Fix indentation in yaml (#1609) 2021-03-30 15:05:46 -07:00
priyawadhwa 588fd06564 Release 1.5.2 with signed kaniko images (#1608)
* Add cloudbuild job for signing releases

* Add cosign to github actions

* Update to 1.5.2 to release and sign images
2021-03-30 14:29:37 -07:00
Tejal Desai eda57e5400 release notes for v1.5.1 (#1589)
* release notes for v1.5.1

* release notes for v1.5.1
v1.5.1
2021-02-22 22:31:40 -08:00
Tejal Desai ea96245f64 Add references to the bottom 2021-02-22 22:23:49 -08:00
Viktor FarcicandTejal Desai 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
Sascha Schwarze 2d4db8e0ec Use up-to-date ca-certificates during build (#1580) 2021-02-22 21:25:00 -08:00
Tejal Desai adf5c7a810 Update CHANGELOG.md 2021-02-22 21:21:26 -08:00
Tejal Desai 2ef9c67bf4 Update CHANGELOG.md 2021-02-22 21:20:21 -08:00
Tejal Desai 4fb6a56b33 hopeful (#1582) v1.5.0 2021-02-16 16:33:25 -08:00
Tejal Desai b3223cc8f0 fix (#1581) 2021-02-16 15:58:54 -08:00
Max Wittig 09cac63b7b docs(readme): add dockerfile flag documentation (#1566) 2021-02-08 09:59:41 -08:00
Tejal Desai fc93da2f26 Fix release pipeline (#1561)
* fix debug cloud build

* fix cloudbuild release

* add workflow

* fix release

* use push action

* Trigger Build

* Trigger Build

* Trigger Build

* Trigger Build

* Trigger Build

* add

* add parallel steps

* add parallel steps

* fix pathc

* fix dockerfile

* fix dockerfile

* add executor

* deploy

* test
2021-02-08 09:59:16 -08:00
Tejal Desai b540dd0df2 fix debug cloud build (#1560) 2021-01-28 11:19:35 -08:00
Sascha Schwarze 0ef53aa1d3 Optimize access to image manifests (#1555)
Introduce an in-memory cache for retrieved manifests in remote.go
2021-01-28 11:10:13 -08:00
Tejal Desai 28591e2ebb release notes' (#1559) v1.4.0 2021-01-28 10:50:16 -08:00
Tejal Desai 9cd3a65900 fix busybox (#1557) 2021-01-28 10:45:04 -08:00
Tejal Desaiandankitm123 ffd35dbe12 Mutli-arch support (#1531)
* initial commit

* remove bazel jobs

* fix arch

* more fixes after testing and code review comments

* fix build platform

* add individual cloudbuild.yaml as its taking 45 mins for a cloud build trigger

* add buildx plugin

* add more debugging

* update busybox version to fix CVE-2018-1000500

* fix

* lint + more debug

* fix

* fix

* fix

* remove images from cloudbiuld

* move CI job back to docker

* one more fix

* lets see

* bring it back

* move CI job back to docker

* remove aerg from top

* live restart config

* remove live restore as minikube setup failed

* add --force-systemd

* add --force-systemd and docker driver none

* change the --run flag

* docker info and some logs removed

* fix docker command

* upgrade version for buildx to 0.5.1

* remove docker service from travis.yml and add systemd cgroup config

* move the docker config up

* move them back to docker build

* fix

* fix all dockerfiles

* fix warmer

* fix

* rm bazel jobs

* add more logs

* fix debug

Co-authored-by: ankitm123 <ankitmohapatra123@gmail.com>
2021-01-25 17:49:19 -08:00
Theofilos Papapanagiotou 24fd3b2ab0 Fetch a github pull request (#1543) 2021-01-22 11:43:39 -08:00
Or Geva b3e036aab2 Add --image-name-tag-with-digest flag (#1541) 2021-01-19 13:28:05 -08:00