- Changed docker-compose.yml to mount OrbStack Docker socket path (/Users/brunogao/.orbstack/run/docker.sock) - Updated GITEA_INSTANCE_URL to use 192.168.1.83:33000 instead of gitea:3000 for proper DNS resolution - Both runner-docker and runner-k8s now correctly point to OrbStack Docker daemon - This resolves the 'Cannot connect to the Docker daemon' error and DNS resolution failures
20 lines
805 B
Python
20 lines
805 B
Python
#!/usr/bin/env python3
|
|
"""Debug script to see the full environment variables."""
|
|
import os
|
|
import subprocess
|
|
|
|
# Check environment variable directly
|
|
model = os.environ.get('OPENROUTER_MODEL')
|
|
print(f"OPENROUTER_MODEL = {model}")
|
|
|
|
# Also check via shell command
|
|
result = subprocess.run(['echo', '$OPENROUTER_MODEL'], capture_output=True, text=True, shell=True)
|
|
print(f"Shell echo result: {result.stdout.strip()}")
|
|
|
|
# Also try bash to check environment
|
|
bash_result = subprocess.run(['bash', '-c', 'echo $OPENROUTER_MODEL'], capture_output=True, text=True)
|
|
print(f"Bash result: {bash_result.stdout.strip()}")
|
|
|
|
# Check the original shell variable in a direct way
|
|
os.environ['OPENROUTER_MODEL'] = 'anthropic/claude-haiku-4.5' # Override in Python
|
|
print(f"Python set model to: {os.environ['OPENROUTER_MODEL']}") |