chore: capture LiteLLM startup diagnostics
This commit is contained in:
@@ -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"]))
|
||||
|
||||
@@ -0,0 +1,2 @@
|
||||
*
|
||||
!.gitignore
|
||||
Reference in New Issue
Block a user