zebra icon indicating copy to clipboard operation
zebra copied to clipboard

Include git metadata in docker logs and Google Cloud panic reports

Open teor2345 opened this issue 2 years ago • 0 comments

Motivation

Currently,

  • Zebra's Docker logs don't show the git commit
  • Zebra's Google Cloud and Docker panic reports only show the git commit, passed through an environmental variable.

But we'd like to see the branch name and other detailed git information via vergen.

The vergen git metadata is likely being disabled because:

  • there is no git binary installed in Docker
  • there is no .git directory in Google cloud builds, or
  • the path to that directory isn't where vergen or the zebrad build script expects it to be.

API Reference

https://docs.rs/vergen/5.1.14/vergen/index.html

teor2345 avatar Aug 03 '21 21:08 teor2345