chore: capture LiteLLM startup diagnostics

This commit is contained in:
Codex
2026-07-22 00:39:08 -07:00
parent 5c062643ab
commit 4ac58e587f
2 changed files with 6 additions and 0 deletions
+4
View File
@@ -12,10 +12,14 @@ services:
LITELLM_MASTER_KEY: ${LITELLM_MASTER_KEY}
volumes:
- ./config.yaml:/app/config.yaml:ro
- ./runtime:/runtime
entrypoint: ["python3", "-c"]
command:
- |
import base64, os
log_fd = os.open("/runtime/litellm.log", os.O_WRONLY | os.O_CREAT | os.O_TRUNC, 0o600)
os.dup2(log_fd, 1)
os.dup2(log_fd, 2)
path = "/tmp/application_default_credentials.json"
with open(path, "wb") as credential_file:
credential_file.write(base64.b64decode(os.environ["GOOGLE_ADC_B64"]))