defang icon indicating copy to clipboard operation
defang copied to clipboard

Image build logs have different names in BYOC vs Playground

Open lionello opened this issue 1 year ago • 1 comments

In playground, image builds can be seen using defang tail -n service1-image, but in BYOC it's defang tail -n kaniko. This is inconsistent.

BYOC should use he same naming as playground.

lionello avatar May 29 '24 19:05 lionello

Blocked by #426

lionello avatar Jun 27 '24 22:06 lionello

Some notes on what needs to be done here after #426 is fixed

  • [ ] Update the CLI to add a --build flag to the tail command which will let you get the build logs for a list of services: defang tail --build -n service-name
  • [ ] Exclude build logs from defang tail by default.
  • Implement build log partitioning for each platform:
    • [ ] BYOC DO: DigitalOcean already partitions build logs from runtime logs
    • [ ] BYOC AWS: Use AWS LogGroups
      • Build logs:
        • Tail from defang-cd-LogGroup-randomid and Defang/project-name/beta/builds
          • How can we find that defang-cd-LogGroup-*? I think we can find log groups by prefix.
      • Runtime logs:
        • Tail /Defang/project-name/beta/logs.
    • [ ] Playground (filtering happens in fabric)
      • Build logs:
        • Use the Loki Labels job=pulumi or job=kaniko. (Do not include job=ecs_status).
      • Runtime logs:
        • Use the Loki Labels job=service.

jordanstephens avatar Oct 22 '24 00:10 jordanstephens