Skip to content

Instantly share code, notes, and snippets.

@BenHizak
Created August 16, 2019 01:57
Show Gist options
  • Save BenHizak/bd2cce9b444b6ae16be9de721db345dc to your computer and use it in GitHub Desktop.
Save BenHizak/bd2cce9b444b6ae16be9de721db345dc to your computer and use it in GitHub Desktop.
Kaniko Debug Executor
#!/bin/bash
gcloud builds submit --dockerfile=./Dockerfile --config kaniko_debug.yml
FROM quay.io/roboll/helmfile:v0.79.1
steps:
- name: gcr.io/kaniko-project/executor:debug
args:
- --dockerfile=./Dockerfile
- --destination=my-build-name
starting build "b3def763-3eee-4957-81cb-bcca6bffaa3c"
FETCHSOURCE
Fetching storage object: gs://cherre-sandbox_cloudbuild/source/1565901876.87-f8118d21393b417eb0edd990f086ed67.tgz#1565901886922635
Copying gs://cherre-sandbox_cloudbuild/source/1565901876.87-f8118d21393b417eb0edd990f086ed67.tgz#1565901886922635...
/ [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:debug
debug: Pulling from kaniko-project/executor
f44ecaf34c46: Pulling fs layer
8cba4f447542: Pulling fs layer
9e5cb61fb40e: Pulling fs layer
a82d5f3d0219: Pulling fs layer
fe7541fd4a2a: Pulling fs layer
7ab00ead690a: Pulling fs layer
ad8e894c0078: Pulling fs layer
a82d5f3d0219: Waiting
fe7541fd4a2a: Waiting
7ab00ead690a: Waiting
ad8e894c0078: Waiting
9e5cb61fb40e: Verifying Checksum
9e5cb61fb40e: Download complete
8cba4f447542: Verifying Checksum
8cba4f447542: Download complete
a82d5f3d0219: Verifying Checksum
a82d5f3d0219: Download complete
fe7541fd4a2a: Verifying Checksum
fe7541fd4a2a: Download complete
7ab00ead690a: Verifying Checksum
7ab00ead690a: Download complete
f44ecaf34c46: Verifying Checksum
f44ecaf34c46: Download complete
ad8e894c0078: Verifying Checksum
ad8e894c0078: Download complete
f44ecaf34c46: Pull complete
8cba4f447542: Pull complete
9e5cb61fb40e: Pull complete
a82d5f3d0219: Pull complete
fe7541fd4a2a: Pull complete
7ab00ead690a: Pull complete
ad8e894c0078: Pull complete
Digest: sha256:629f801f9d35902776a3f4dff50558e14e56bc3f6367f0bd38fa6a437d8dfc0d
Status: Downloaded newer image for gcr.io/kaniko-project/executor:debug
gcr.io/kaniko-project/executor:debug
INFO[0003] Resolved base name quay.io/roboll/helmfile:v0.79.1 to quay.io/roboll/helmfile:v0.79.1
INFO[0003] Resolved base name quay.io/roboll/helmfile:v0.79.1 to quay.io/roboll/helmfile:v0.79.1
INFO[0003] Downloading base image quay.io/roboll/helmfile:v0.79.1
INFO[0003] Error while retrieving image from cache: unsupported MediaType: https://github.com/google/go-containerregistry/issues/377
INFO[0003] Downloading base image quay.io/roboll/helmfile:v0.79.1
error building image: unsupported MediaType: https://github.com/google/go-containerregistry/issues/377
ERROR
ERROR: build step 0 "gcr.io/kaniko-project/executor:debug" failed: exit status 1
@BenHizak
Copy link
Author

BenHizak commented Aug 16, 2019

Debug image id

$ docker image ls gcr.io/kaniko-project/executor:debug
REPOSITORY                       TAG                 IMAGE ID            CREATED             SIZE
gcr.io/kaniko-project/executor   debug               8745de21a1b1        6 days ago          72.6MB

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