I've been building an image containing many files and directories and my build log is pretty much just Not adding /foo/bar because it was added by a prior layer, Copying file /foo/bar to /bar/foo and Taking snapshot of files [<thousands of filenames>]... messages. How about dropping log level for these messages to debug?
This still seems to be a problem when building images using gcr.io/kaniko-project/executor:debug.
Any clue when the fix will propagate?
Same here.
I'm also using the debug version (as specified here: https://docs.gitlab.com/ee/ci/docker/using_kaniko.html) and it is causing almost unusable build logs.
Kaniko executor has --verbosity flag, I assume setting it to warn will fix the issue for you (doing it now).
This line is the problem:
It was changed from debug to info between executor:latest (0.9.0) and executor:debug in this commit:
https://github.com/GoogleContainerTools/kaniko/commit/1bf4421047570790ced358f60118b58709628c15#diff-736acbb393b480a7c2fa1ab622672582R181
@priyawadhwa can this be reopened?
If not fixed, this is going to explode in the next release.
@jobec thanks for pointing this out, looks like @sharifelgamal is on it!
FYI, it's exploding now, I cannot build anymore: on gitlab, I get:
Job's log exceeded limit of 4194304 bytes
I will try the work-around like --verbosity warn (Ref. https://github.com/GoogleContainerTools/kaniko/issues/638)
And that actually worked, the logs are useful again.
This should now be fixed at HEAD.
Most helpful comment
This still seems to be a problem when building images using
gcr.io/kaniko-project/executor:debug.Any clue when the fix will propagate?