Skip to content

Instantly share code, notes, and snippets.

@BenHizak
Created August 16, 2019 02:19
Show Gist options
  • Select an option

  • Save BenHizak/fd807a39a0d937cf4bd4004cf6b8b6c4 to your computer and use it in GitHub Desktop.

Select an option

Save BenHizak/fd807a39a0d937cf4bd4004cf6b8b6c4 to your computer and use it in GitHub Desktop.
Example of Failing Kaniko Latest
#!/bin/bash
gcloud builds submit --dockerfile=./Dockerfile --config kaniko_latest.yml
FROM quay.io/roboll/helmfile:v0.79.1
# the same error was replicatd with later versions
steps:
- name: gcr.io/kaniko-project/executor:latest
args:
- --dockerfile=./Dockerfile
- --destination=my-build-name
starting build "adf18cb8-4a12-4749-abb6-2f73d174037c"
FETCHSOURCE
Fetching storage object: gs://myproject_cloudbuild/source/1565901660.57-ba1fb3ca8f3d48b6a4c22e8a39c63ded.tgz#1565901672116787
Copying gs://myproject_cloudbuild/source/1565901660.57-ba1fb3ca8f3d48b6a4c22e8a39c63ded.tgz#1565901672116787...
/ [0 files][ 0.0 B/ 33.8 MiB]
-
- [1 files][ 33.8 MiB/ 33.8 MiB]
Operation completed over 1 objects/33.8 MiB.
BUILD
Pulling image: gcr.io/kaniko-project/executor:latest
latest: Pulling from kaniko-project/executor
Digest: sha256:78d44ec4e9cb5545d7f85c1924695c89503ded86a59f92c7ae658afa3cff5400
Status: Downloaded newer image for gcr.io/kaniko-project/executor:latest
gcr.io/kaniko-project/executor:latest
INFO[0000] Resolved base name quay.io/roboll/helmfile:v0.79.1 to quay.io/roboll/helmfile:v0.79.1
INFO[0000] Resolved base name quay.io/roboll/helmfile:v0.79.1 to quay.io/roboll/helmfile:v0.79.1
INFO[0000] Downloading base image quay.io/roboll/helmfile:v0.79.1
2019/08/15 20:41:32 No matching credentials were found, falling back on anonymous
INFO[0000] Error while retrieving image from cache: getting file info: stat /cache/sha256:b7f6deeb9f36248fd2a4cb52ecdf402280770a428aaf7c8f91c3e42dadf63a6d: no such file or directory
INFO[0000] Downloading base image quay.io/roboll/helmfile:v0.79.1
2019/08/15 20:41:33 No matching credentials were found, falling back on anonymous
error building image: unsupported status code 405; body: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<title>405 Method Not Allowed</title>
<h1>Method Not Allowed</h1>
<p>The method is not allowed for the requested URL.</p>
ERROR
ERROR: build step 0 "gcr.io/kaniko-project/executor:latest" failed: exit status 1
@BenHizak
Copy link
Author

BenHizak commented Aug 16, 2019

kaniko executor image id

$ docker image ls gcr.io/kaniko-project/executor:latest
REPOSITORY                       TAG                 IMAGE ID            CREATED             SIZE
gcr.io/kaniko-project/executor   latest              900080124131        8 weeks ago         49MB

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment