Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Check --cache-repo is provided with --cache and --no-push #374

Merged
merged 1 commit into from
Sep 28, 2018

Conversation

priyawadhwa
Copy link
Collaborator

@priyawadhwa priyawadhwa commented Sep 28, 2018

As described in #373, kaniko panics when provided with --cache and --no-push since it tries to infer a cache repo from the destination, which doesn't exist.

To fix this, I added a check to make sure --cache-repo is passed in when both these flags are provided.

Should fix #373

As described in GoogleContainerTools#373, kaniko panics when provided with --cache and --no-push since it tries to infer a cache repo from the destination, which doesn't exist.

To fix this, I added a check to make sure --cache-repo is passed in when both these flags are provided.
@priyawadhwa priyawadhwa merged commit 139d372 into GoogleContainerTools:master Sep 28, 2018
@priyawadhwa priyawadhwa deleted the cachebug branch September 28, 2018 20:39
@james-mchugh
Copy link

Does Kaniko do any local caching without a remote repo? It would be nice to be able to cache base layers locally without having to push those layers to a repo.

moz-v2v-gh pushed a commit to mozilla/gecko-dev that referenced this pull request Jun 13, 2024
Adjust kaniko arguments passed in by build-image:
- pass --cache=true to kaniko, otherwise it seems to look for an image named
  "parent" on docker hub instead of looking at the tar we put in the cache dir
- pass a cache-repo to kaniko, otherwise it refuses to enable caching
  (GoogleContainerTools/kaniko#374)

Differential Revision: https://phabricator.services.mozilla.com/D213062
i3roly pushed a commit to i3roly/firefox-dynasty that referenced this pull request Jun 14, 2024
Adjust kaniko arguments passed in by build-image:
- pass --cache=true to kaniko, otherwise it seems to look for an image named
  "parent" on docker hub instead of looking at the tar we put in the cache dir
- pass a cache-repo to kaniko, otherwise it refuses to enable caching
  (GoogleContainerTools/kaniko#374)

Differential Revision: https://phabricator.services.mozilla.com/D213062
gecko-dev-updater pushed a commit to marco-c/gecko-dev-wordified-and-comments-removed that referenced this pull request Jun 16, 2024
Adjust kaniko arguments passed in by build-image:
- pass --cache=true to kaniko, otherwise it seems to look for an image named
  "parent" on docker hub instead of looking at the tar we put in the cache dir
- pass a cache-repo to kaniko, otherwise it refuses to enable caching
  (GoogleContainerTools/kaniko#374)

Differential Revision: https://phabricator.services.mozilla.com/D213062

UltraBlame original commit: 55df8fca8ebb22f4cda5fa8a8393c0f88626f65f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Kaniko panic when trying to use cache with --no-push
4 participants