Skip to content
This repository has been archived by the owner on Feb 5, 2021. It is now read-only.

Improve log streaming #2

Open
dminkovsky opened this issue Dec 2, 2017 · 3 comments
Open

Improve log streaming #2

dminkovsky opened this issue Dec 2, 2017 · 3 comments

Comments

@dminkovsky
Copy link
Owner

dminkovsky commented Dec 2, 2017

Current mechanism (streaming output from a forked gcloud) seems unreliable. Examine the call gcloud container builds log --stream makes with --log-http and use that with an equivalent HTTP call.

@dminkovsky
Copy link
Owner Author

For now using this as a workaround to stream the latest build request:

gcloud container builds list | head -2 | awk 'NR>1{print $1}' | xargs gcloud container builds log --stream

@dminkovsky
Copy link
Owner Author

dminkovsky commented Dec 30, 2017

Having examined gcloud container builds log --stream with --log-http, it appears to works like this:

@dminkovsky
Copy link
Owner Author

dminkovsky commented Dec 31, 2017

Could also explore forking gcloud container builds log --stream using Node's spawn instead of currently used exec.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant