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

Allow to stream build logs to files on per-image basis #3778

Open
petr-buchin opened this issue Mar 4, 2020 · 3 comments
Open

Allow to stream build logs to files on per-image basis #3778

petr-buchin opened this issue Mar 4, 2020 · 3 comments

Comments

@petr-buchin
Copy link

@petr-buchin petr-buchin commented Mar 4, 2020

Expected behavior

Before Skaffold supported parallel local builds, we used profiles for that matter, building profiles concurrently.
That allows us to stream build log for each profile (one profile per image) to file named like {LOGS_DIR}/build/{PROFILE_NAME}.log.
Now when Skaffold supports parallel local builds natively, we would like to use this functionality, but we want to stream build logs to files on per-image basis, because it's not very cool to look at one log for all images. Do you plan to add such functionality?

Actual behavior

It's impossible to stream logs on per-image basis - all build logs are streamed to stdout sequentially.

Information

  • Skaffold version: v1.4.0
  • Operating system: MacOs Catalina
  • Contents of skaffold.yaml: not needed here
@balopat
Copy link
Collaborator

@balopat balopat commented Mar 25, 2020

This is a great feature idea, we should do it! I would also love to get some help on it from the community!

@nkubala nkubala added this to the Icebox [P2+] milestone Sep 1, 2020
@nkubala
Copy link
Member

@nkubala nkubala commented Sep 2, 2020

indeed, we now support writing build logs for each image to a file using the --mute-logs=build flag. skaffold chooses a location to write these logs, usually somewhere in the /var directory. @petr-buchin is this good enough for you? we could consider making this location configurable as well

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
4 participants
You can’t perform that action at this time.