envbuilder icon indicating copy to clipboard operation
envbuilder copied to clipboard

enhancement: replace agentsdk.LogSender direct integration with external log sender

Open johnstcn opened this issue 1 year ago • 1 comments

Currently, envbuilder consumes CODER_AGENT_URL, CODER_AGENT_TOKEN, and CODER_AGENT_SUBSYSTEM environment variables to enable sending workspace build logs to Coder.

For Kubernetes, this can instead be handled by coder/coder-logstream-kube. Investigate an alternative approach for envbuilder usage outside of Kubernetes (e.g. Docker).

This is also kind important because envbuilder currently references on agentsdk.ExternalLogSourceID which is marked for use by 'legacy API consumers'.

johnstcn avatar May 16 '24 10:05 johnstcn

One possibility is a custom logging driver https://docs.docker.com/engine/extend/plugins_logging/

johnstcn avatar May 16 '24 11:05 johnstcn